Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73067 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83191 invoked from network); 11 Mar 2014 17:43:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Mar 2014 17:43:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.196 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.196 imap4.ox.registrar-servers.com Received: from [192.64.116.196] ([192.64.116.196:43561] helo=imap4.ox.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/F7-29501-73B4F135 for ; Tue, 11 Mar 2014 12:43:20 -0500 Received: from localhost (localhost [127.0.0.1]) by oxmail.registrar-servers.com (Postfix) with ESMTP id 7DE83560086; Tue, 11 Mar 2014 13:43:17 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap4.ox.registrar-servers.com Received: from oxmail.registrar-servers.com ([127.0.0.1]) by localhost (imap4.ox.registrar-servers.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sJFNAXt1y8PV; Tue, 11 Mar 2014 13:43:17 -0400 (EDT) Received: from [192.168.0.8] (unknown [90.203.28.187]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id 6087A560080; Tue, 11 Mar 2014 13:43:15 -0400 (EDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_36C46E33-94C4-454B-81D2-2AC51C5FDF8F" Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) In-Reply-To: <531F0146.5010701@lsces.co.uk> Date: Tue, 11 Mar 2014 17:43:13 +0000 Cc: PHP Developers Mailing List Message-ID: <5CCEE9FE-A031-4CC3-9A86-C633D24BE56A@ajf.me> References: <531EE602.3090207@lsces.co.uk> <531EEE2A.2000602@googlemail.com> <531F0146.5010701@lsces.co.uk> To: Lester Caine X-Mailer: Apple Mail (2.1874) Subject: Re: [PHP-DEV] Unicode strings? From: ajf@ajf.me (Andrea Faulds) --Apple-Mail=_36C46E33-94C4-454B-81D2-2AC51C5FDF8F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 11 Mar 2014, at 12:27, Lester Caine wrote: > How do you provide a holder for the various additional items required = for a unicode 'object'? While I can see one would get away with calling = functions all the time on a single string object, having calculated = different versions of the same string or complex character counts, they = need to be cached so they can be used again? Or does one maintain each = answer in different variables? ???? What other data? You could stick a Unicode string in the same space we = currently stick a byte string, just encode it in UTF-8. That=92s all you = need. -- Andrea Faulds http://ajf.me/ --Apple-Mail=_36C46E33-94C4-454B-81D2-2AC51C5FDF8F--