Unit 'unicodedata' Package
[Overview][Resource strings][Constants][Types][Procedures and functions][Index] [#rtl]

LoadCollation

Load a binary collation data file from file.

Declaration

Source position: unicodedata.pas line 580

function LoadCollation(

  const AData: Pointer;

  const ADataLength: Integer;

  var AAliases: TUnicodeStringArray

):PUCA_DataBook; overload;

function LoadCollation(

  const AData: Pointer;

  const ADataLength: Integer

):PUCA_DataBook; overload;

function LoadCollation(

  const AFileName: UnicodeString;

  var AAliases: TUnicodeStringArray

):PUCA_DataBook; overload;

function LoadCollation(

  const AFileName: UnicodeString

):PUCA_DataBook; overload;

function LoadCollation(

  const ADirectory: UnicodeString;

  const ALanguage: UnicodeString;

  var AAliases: TUnicodeStringArray

):PUCA_DataBook; overload;

function LoadCollation(

  const ADirectory: UnicodeString;

  const ALanguage: UnicodeString

):PUCA_DataBook; overload;

Arguments

AData

  

Memory area containing encoded collation data.

ADataLength

  

Length of memory area AData.

Function result

Pointer to prepared collation data.

Arguments

AData

  

Memory area containing encoded collation data.

ADataLength

  

Length of memory area AData.

Arguments

AFileName

  

Filename to read data from.

Arguments

AFileName

  

Filename to read data from.

Arguments

ADirectory

  

Directory containing collations.

ALanguage

  

Language for which to load collation.

Arguments

ADirectory

  

Directory containing collations.

ALanguage

  

Language for which to load collation.

Description

LoadCollation loads collation data from file AFileName, or from a memory block AData with length ADataLength. If successful, it returns a pointer which can be used to register the collation using RegisterCollation. if there is a problem with the data, Nil is returned.

The filename can also be specified as a Directory and language name ALanguage. The latter is prepended with collation_ and appended with the native endianness of the current platform, and has extension .bco

Errors

If the file containing data does not exist or has a size which is less than the encoded header size, Nil is returned.

See also

RegisterCollation

  

Register a new collation.


Documentation generated on: Nov 23 2024