December 18, 2006
Todor Totev schrieb am 2006-12-17:

<snip>

> It is compeltelly unrelated but I have a vague memory that the german
> letter "ß" (U+DF) when upcased is replaced with "SS". I'm not sure
> if this is true but if it is then std.uni.toUniUpper() has a bug because
> I don't see its code to check for this case. Could someone speaking
> german check this, please?

The uppercase version of "ß" is "SS". (At least accroding to Unicode and DIN, many Germans however treat "ß" as caseless ...). Unicode allows to types of toUpper/toLower: complete and simplified. The simplified version doesn't change the casing if the number of codepoints would change. Phobos currently excludes all changes where the simplified version would cause a change the length of the UTF-8 encoded string.

For an updated std.uni see http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=34218

Thomas

December 27, 2006
Todor Totev wrote:
> Hello all,
> are std.string functions supposed to be UNICODE aware?
> The documentation says nothing and looking at the source it appears that
> the functions work only for ASCII characters, despite the fact that
> their arguments are char[].
> If these functions are designed to be ascii only, where can I find the
> unicode ones?

Ok, there was some discussion on this issue, but still I can't get it... Will unicode support, and support for wchar/dchar be in std.sting on 1.0?

It is nice idea to have a roadmap for '1.0' (and at least a 'post 1.0') stuff.

-- 
serg.
1 2
Next ›   Last »