[Lazarus] UTF8 string compare with correct locale sorting
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Fri Oct 18 19:02:13 CEST 2013
Jürgen Hestermann schrieb:
> Am 2013-10-18 11:39, schrieb Hans-Peter Diettrich:
> > Sorting can be done not only by locale and alphabetically, but also
> in phone book and more sort orders.
>
> But I don't know any sort order that sorts german umlauts at the end of
> the whole list (as UTF8CompareText does).
Most probably it sorts by codepoints, or by bytes.
> Such a sort order is not usable for me.
Such sorting is useless in almost every language.
> > Just in German you have a couple of options to sort umlauts, and such
> national stuff is covered by unicode standard libraries.
>
> As it seems these libraries are not available for UTF8 directly (only
> after time consuming conversion to UTF16).
Perhaps the new UnicodeStrings will provide more useful solutions?
DoDi
More information about the Lazarus
mailing list