Skip to content

loadbinaryunicodemapping

Load binary single-byte codepage to Unicode map from file or memory

Declaration

Source position: charset.pp line 68

  function loadbinaryunicodemapping(const directory: string; 
                                   const cpname: string) : punicodemap
                                   ;  Overload;
  function loadbinaryunicodemapping(const filename: string) : punicodemap
                                   ;  Overload;
  function loadbinaryunicodemapping(const AData: Pointer; 
                                   const ADataLength: Integer)
                                    : punicodemap;  Overload;

Description

loadbinaryunicodemapping loads a binary description of a single-byte Unicode mapping. The mapping can reside in a file, in which case the file to load can be specified using a filename filename or using a directory directory and codepage name cpname. In the latter case, a suffix consisting of _le or _be depending on the endianness of the current platform will be appended, and the filename extension is .bcm. Note that the file names may be case sensitive.

The data can also be loaded from a memory block AData with size ADataLength.

It will produce an in-memory map of the file. It returns a pointer to the map, or Nil if something went wrong. The resulting mapping can be registered using registermapping .

Errors

On error, Nil is returned.

See also

Name Description
loadunicodemapping Load textual single-byte codepage to Unicode map from file
registermapping Register mapping