RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.StrCharLength Function

Returns the length, in bytes, of a character.

Pascal
function StrCharLength(const Str: PAnsiChar): Integer; overload;
function StrCharLength(const Str: PWideChar): Integer; overload;
C++
int StrCharLength(const PAnsiChar Str);
int StrCharLength(const PWideChar Str);

StrCharLength returns the size, in bytes, of the first character in Str. This value can be 1 or 2 under Windows, 1 to 6 under Linux. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!