Unit 'unixcp' Package
[Overview][Constants][Types][Procedures and functions][Index] [#rtl]

GetCodepageByName

Find code page by name.

Declaration

Source position: unixcp.pp line 643

function GetCodepageByName(

  cpname: rawbytestring

):TSystemCodePage;

Arguments

cpname

  

Name of code page.

Function result

Code page number corresponding to cpname or CP_NONE if none found.

Description

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.

Errors

If no matching code page name is found, CP_NONE is returned.

See also

UnixCpMap

  

Map with codepage names.

GetSystemCodepage

  

Return the system code page based on the program environment.

GetCodepageData

  

Return index of codepage.


Documentation generated on: Dec 26 2024