GetByteLength(string) Method
Retrieves the byte length of a unicode string.
function GetByteLength(const s: string): Integer; overload; inline;
Parameters
- s
- Type: string
the unicode string.
Return Value
Type: Integer
The byte length of the unicode string.
Although there is already a routine SysUtils.ByteLength(string)
function, it only supports unicode strings and doesn't provide overloads
for WideStrings and AnsiStrings.