Skip to content

GetCodepageData

Return index of codepage.

Declaration

Source position: unixcp.pp line 636

  function GetCodepageData(cp: TSystemCodePage) : LongInt;

Description

GetCodepageData returns the index of the first entry in UnixCpMap which matches cp. Since the entries are ordered by code page number, this means the entries can be scanned for alternate code names starting at this index.

Errors

If no matching code page is found, -1 is returned.

See also

Name Description
GetCodepageByName Find code page by name
GetSystemCodepage Return the system code page based on the program environment.
UnixCpMap Map with codepage names.