Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79366 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78551 invoked from network); 2 Dec 2014 01:23:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Dec 2014 01:23:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.220.49 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.220.49 mail-pa0-f49.google.com Received: from [209.85.220.49] ([209.85.220.49:39147] helo=mail-pa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/97-32869-B841D745 for ; Mon, 01 Dec 2014 20:23:24 -0500 Received: by mail-pa0-f49.google.com with SMTP id eu11so12100620pac.8 for ; Mon, 01 Dec 2014 17:23:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=iQmfwK4XuAYYxTzMGT27UuwN2zf86GSR0v1KiOk8fqk=; b=IBxQJ8UWvvxHAixKMBQIIONwpqJrkZOUqUn0yl8WrhRl7PNSfmtQUez8eieFVo+TFP iO9KZpJYxt1ppXnHVRMKpGLvQm9siUgTVAQUBPlcf3TIglY9ENPckDFz2/9ADXP9Qelm zzl75zJc3HTBhsbUI86pJf3Vv3DzyHdQyj4KGouOVnJuZKqHwcPcKgQlVZ1DwTtnJkNG AIwGmgLSjuZYw9cscngb8flYb+jPI5tc/9iz9zVejGh/W3BKTNCUQ4bKY6U67Y50MmCO DsAtkcCF8wNE1IqOBkpBP6vapQjK34mhlL1laATSpAFzSRSs+m6UKrzl9xDMdbDruXWI KTbQ== X-Gm-Message-State: ALoCoQnYY4tnVIXw6We9dRmhQMI7iviEaZaWFFOU1tPt/76tqkZL3nxbAfNRZB0Dz/OVBCo6WMEY MIME-Version: 1.0 X-Received: by 10.70.50.102 with SMTP id b6mr4388572pdo.38.1417483400146; Mon, 01 Dec 2014 17:23:20 -0800 (PST) Sender: php@golemon.com Received: by 10.70.51.106 with HTTP; Mon, 1 Dec 2014 17:23:20 -0800 (PST) X-Originating-IP: [2620:10d:c082:1003:22c9:d0ff:fe87:295b] In-Reply-To: <5476DF5C.6040807@gmail.com> References: <54767CAC.9060608@gmail.com> <5476DF5C.6040807@gmail.com> Date: Mon, 1 Dec 2014 17:23:20 -0800 X-Google-Sender-Auth: 6MClZr4PgP9wp-D2jvlrbz2YbhM Message-ID: To: Stanislav Malyshev Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] IntlChar class and intl_char_*() functions From: pollita@php.net (Sara Golemon) On Thu, Nov 27, 2014 at 12:22 AM, Stanislav Malyshev wrote: > Looking into this and also reading the \u{} proposal, I also thought - > do we have a programmatic way of doing what \u would do? I.e. if we > assume $x holds an Unicode codepoint value (i.e., an integer) do we have > a good built-in way to generate the corresponding utf8 sequence? > If not, then I think this class may be a good place to put such a > function in. > Yeah, that's some of what this class and/or set of functions would expose. Numeric codepoint to utf8 sequence, codepoint name (e.g. "LATIN CAPITAL LETTER P") to utf8 sequence, numeric codepoint to codepoint name, utf8 sequence to numeric codepoint, etc... At this point I haven't heard any major directions so I'm going to start work on implementing it so that we have a more firm base to discuss and we can continue once I have that up for review. -Sara