Sign in Join
FPDoc Onlineexperiment

CharToByteLen function

In unit sysutils

Convert a length in characters to a length in bytes.

Declaration

pascal
function CharToByteLen(const S: string; MaxLen: SizeInt): SizeInt

Description

CharToByteLen 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.