std.string and unicode
Todor Totev
umbra.tenebris at list.ru
Sun Dec 17 15:56:02 PST 2006
Thank you for your responses. First of all, i'm a beginner D programemer.
Actually my problem is with functions within std.path module.
I'm trying to figure out how to write them to have more robust support
for Windows NTFS file system and I noticed that fncharmatch() is
ascii-only.
So I started to look how to improve it and discovered std.string.icmp.
But it was ascii-only too and so I decided to posted my question.
The icmp function has different versions for Windows/linux but my
quick test with cyrillic letters showed that it is broken on Windows.
About the fncharmatch() function my best idea so far is to use either
std.uni.toUniUpper() and then compare or just upcase entire
strings with std.string.toupper().
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?
> Currently D does not try to be very Unicode friendly. I really don't
> know how it should be. There are several different opinions and
> implementation and this has been discussed before.
Could you pelase point me to these discussions? I'm very interested.
Regards,
Todor
More information about the Digitalmars-d
mailing list