[fpc-devel] Memory consumed by strings

Sergei Gorelkin sergei_gorelkin at mail.ru
Sun Nov 23 14:02:35 CET 2008

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.


More information about the fpc-devel mailing list