[fpc-devel] _wcsicmp
Chris Dryburgh
cdryburghca at netscape.net
Thu Dec 4 16:13:50 CET 2014
On 04/12/14 07:16 AM, Jonas Maebe wrote:
>
> The closest equivalent is probably sysutils.UnicodeCompareText(). It
> uses CompareStringW on Windows though, and on Unix it converts both
> strings to uppercase, locale-sensitive-wise, and compares those.
>
As a general rule it is better to convert to lower case before comparing
Unicode characters. Accents can get lost in conversion to uppercase.
Accent loss does not happen or is much more rare in conversion to lower
case.
More information about the fpc-devel
mailing list