[fpc-devel] new string - question on usage
Michael Schnell
mschnell at lumino.de
Thu Oct 13 09:55:06 CEST 2011
On 10/13/2011 02:05 AM, Hans-Peter Diettrich wrote:
>
>> - assignment will do a conversion (at least if the target encoding
>> ID is not zero.)
> ... conversion unless the target type is RawByteString, or has the
> same encoding.
Paul did inform us that encoding ID = 0 in the target means no
conversion but set the target's encoding ID to the source's encoding ID.
>
>
>> - the conversion will not happen if the source encoding ID is "Raw"
>
> There is no "Raw" source ID.
The Delphi doc says "the RawByteString Type is type ANSIString($FFFF)".
So the RawByte encoding ID in fact is $FFFF (if FPC wants to be Delphi
compatible in that behalf ).
-Michael
More information about the fpc-devel
mailing list