[fpc-devel] strcopy, strlcopy for PWideChar

Hans-Peter Diettrich DrDiettrich1 at aol.com
Tue Aug 16 12:26:06 CEST 2011


Felipe Monteiro de Carvalho schrieb:
> On Mon, Aug 15, 2011 at 6:41 PM, Hans-Peter Diettrich
> <DrDiettrich1 at aol.com> wrote:
>> The mix (or equivalence) of character and byte counts obviously is
>> inappropriate for "wide" versions. Perhaps "sizeof" should read "Length"?
> 
> Maybe Delphi supports only UCS-2 and not UTF-16

String encodings should not play a role, when e.g. memory has to be 
allocated or copied (see SetLength). The MaxLen parameter indicates the 
number of physical units (bytes or words).

DoDi




More information about the fpc-devel mailing list