Daniël Mantione wrote:
Instead UTF-8, you need to make sure the string has enough characters
left, and then compare multiple characters. Heck, you even need to take
care of the fact the the combining cedille can be encoded in 2, 3 or 4
bytes.
In this example it may be more efficient to encode three variants of
cedilla into utf8 and do three searches with Pos(), instead of decoding
the whole target string. It depends, of course - at least at how long
the target string is.
Regards,
Sergei
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel