Sign in Join
FPDoc Onlineexperiment

unixcp unit

Code Page name to number conversions.

The unixcp unit provides routines to handle mapping of code page names to numerical values as used in libiconv>. The GetCodepageByName function is the main function for this. The GetCodepageData can be used to map a code page number to a name. These function can be used for instance to map code page information in environment variables to code page numbers used in string encodings. The supported code page names are the ones commonly in use in libiconv.

This unit is used for example in unit cwstring.

Classes and records

TUnixCpDatarecordStructure to map code page number to name.

Procedures and functions

GetCodepageByNamefunctionFind code page by name.
GetCodepageDatafunctionReturn index of codepage.
GetSystemCodepagefunctionReturn the system code page based on the program environment.

Constants

UnixCpMapconstantMap with codepage names.
UnixCpMapLimitconstantNumber of code pages in map UnixCpMap.

Uses

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