Sign in Join
FPDoc Onlineexperiment

StringCodePage function

In unit System

Get the code page of a string.

Declaration

pascal
function StringCodePage(const S: RawByteString): TSystemCodePage
 ; overload

Description

StringCodePage returns the code page 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, DefaultSystemCodePage is returned.

See also

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