[fpc-devel] cpstrrtl/unicode branch merged to trunk
pascaldragon at googlemail.com
Fri Sep 6 18:30:34 CEST 2013
Am 06.09.2013 14:16 schrieb "Hans-Peter Diettrich" <DrDiettrich1 at aol.com>:
> I'm not sure how efficient a RawByteString version ever can be. By
default it has to convert the string into Unicode (Delphi: UTF-16), and the
result back to CP_ACP. In these cases it looks more efficient to call the
Unicode version immediately, and leave *eventual* further conversions to
the compiler. Some routines may implement common processing of true SBCS,
but I'm not sure how many these are.
Not every RTL will use a 16-bit API. On Windows the RawByteString variant
might be slower, but on Linux it will be faster as long as the string
passed in will be encoded in the system encoding (mostly UTF-8).
Also this merge is only a preparation of the RTL to be potentially used
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel