std.string and unicode

Jari-Matti Mäkelä jmjmak at utu.fi.invalid
Sat Dec 16 15:50:32 PST 2006


Frits van Bommel wrote:
> Todor Totev wrote:
>> Hello all,
>> are std.string functions supposed to be UNICODE aware?
> 
> Yes.

No they are not. The string constants (lowercase, letters, etc.) only
feature ASCII characters. Some functions have "BUG: only works with
ASCII" attached to them. Many of the functions expect that the char[]
string consists of 8 bit characters.

Mango project (http://dsource.org/projects/mango) has functions with
better Unicode compatibility.



More information about the Digitalmars-d mailing list