[fpc-devel] new string - question on usage
Michael Schnell
mschnell at lumino.de
Tue Oct 11 10:42:01 CEST 2011
On 10/11/2011 07:33 AM, Hans-Peter Diettrich wrote:
>
> Concrete types are required when strings are manipulated (parsed...),
> and the implementation assumes a certain encoding.
Why do you think so. when parsing, a 32 bit Unicode character can be
extracted from a new string with any (not raw) encoding. When
manipulating partial strings and assignments get the encoding of the
original string, when comparing strings, conversion is done automatically.
For speed, the user might want to do his code appropriately (e.g. by
anticipating conversions).
-Michael
More information about the fpc-devel
mailing list