getmap

Find a codepage map

Declaration

Source position: charset.pp line 76

  function getmap(const s: string) : punicodemap;
  function getmap(cp: Word) : punicodemap;

Description

getmap looks in the registered codepage mappings and returns the mapping for the requested codepage. The codepage can be specified using a name s or a numerical identifier cp. The search is case sensitive.

Errors

if the requested map is not found, Nil is returned.

See also

Name Description
mappingavailable Check if a mapping is available for a specified code page.
registerbinarymapping Load and register binary single-byte codepage to Unicode map from file
registermapping Register mapping