System.StringElementSize
Delphi
function StringElementSize(const S: UnicodeString): Word; overload;
function StringElementSize(const S: _RawByteStr): Word; overload;
C++
extern DELPHI_PACKAGE Word __fastcall StringElementSize(const UnicodeString S)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.pas System.hpp |
System | System |
Description
Returns the number of bytes that represent a character in the string.
Call StringElementSize to obtain the number of bytes necessary to represent one character in the current string. Calling StringElementSize for Unicode strings always returns a result of 2.