Find code page by name
Source position: unixcp.pp line 637
function GetCodepageByName(
cpname: RawByteString
):TSystemCodePage ;
cpname
Name of code page.
Code page number corresponding to cpname or CP_NONE if none found.
GetCodepageByName returns the code page number matching cpname. The supported code page names are the ones commonly in use in libiconv. Names are searched case-sensitively, with the exception that 'cpN' is converted to 'CPN', where N is a digit.
If no matching code page name is found, CP_NONE is returned.
Map with codepage names.
Return the system code page based on the program environment.
Return index of codepage.