[fpc-pascal] Case insensitive comparison of strings with non-ascii characters
JoshyFun
joshyfun at gmail.com
Sat Jul 25 20:37:41 CEST 2009
Hello FPC-Pascal,
Saturday, July 25, 2009, 5:46:39 PM, you wrote:
t> @Luiz Americo
t> Your code
t> WideCompareText(UTF8Decode(Key), UTF8Decode(Str))
t> will work, but if speed matters, then it's rather bad.
That's not right, the assumption that:
lowercasemapping(a)=lowercasemapping(b)
is the same as:
IsSameText(a,b)
is wrong at unicode levels.
--
Best regards,
JoshyFun
More information about the fpc-pascal
mailing list