On 2016-04-27 15:59, Michael Van Canneyt wrote: > Simply said: No. The character iterator > > Will iterate bytes or words, not characters.
OK thanks. So I definitely need the IsSurrogatePair() like function then - in the case of UTF-16 encoded (UnicodeString) text. Do you know if such a function exists in the RTL? If not, I'll browse unicode.org to see what is required for such an implementation. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal