Re: unicode.semantics ad infinitum

From: Date: Wed, 14 May 2008 15:32:18 +0000
Subject: Re: unicode.semantics ad infinitum
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-37651@lists.php.net to get a copy of this message
Steph, On Wed, 2008-05-14 at 13:59 +0100, "Steph Fox" wrote: > I wrote a macro to allow us to use the same code for the extension in both > branches, but it occurs to me that the zstr union definition might change or > even disappear when PHP 6 becomes Unicode-only. Is that likely? I don't > know. So keeping it all together is total guesswork at present. In general: No. We still need both string types at most places, the effect of the u.s setting is the default type for strings in the engine. Most other functions still need to work with both kinds of string as parameter and such. (strlen(b"äöü") vs. atrlen(u"äöü")) johannes

« previous php.internals (#37651) next »