RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.StrCharLength Function

Returns the length, in bytes, of a character.

Pascal
function StrCharLength(const Str: PChar): Integer;
C++
int StrCharLength(const const char * Str);

SysUtils

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!