ByteToCharLen
Convert a length in bytes to a length in characters.
Declaration
Source position: sysstrh.inc line 260
function ByteToCharLen(const S: string; MaxLen: SizeInt) : SizeInt;
Description
ByteToCharLen returns the number of bytes in S, but limits the result to MaxLen
Errors
This function does not take into account MBCS yet.
See also
Name | Description |
---|---|
ByteToCharIndex | Convert a character index in Bytes to an Index in characters |
CharToByteLen | Convert a length in characters to a length in bytes. |