In unit sysutils
sysutils
Length (in bytes) of a unicodestring.
function ByteLength(const S: UnicodeString): SizeInt
ByteLength
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.