Sign in Join
FPDoc Onlineexperiment

StringElementSize function

In unit System

Get the character size of a string.

Declaration

pascal
function StringElementSize(const S: RawByteString): Word; overload

Description

StringCodePage returns the character size of a string ( S), regardless of the string type. It accesses the internal structures of the string to retrieve this information. For an empty string, SizeOf(AnsiChar) (normally 1) is returned.

See also

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