The Main Manual Page Dynamic API Documentation CD-ROM API Documentation About Onix Types About Onix Errors Onix's Web Site at Lextek International Lextek International Onix Full Text Indexing and Retrieval Toolkit

ucInitializeNormalizationTable

NAME

ucInitializeNormalizationTable

SYNOPSIS

void ucInitializeNormalizationTable(UnicodeCharT *TableBuffer, size_t MaxChars, BooleanT Lower);

ARGUMENTS

TableBuffer -- A pointer to a buffer which is 2 times the value of the highest character to be normalized in size.

MaxChars  -- The value of the highest character expected to be normalized by this table.

Lower  -- If set to BooleanTrue, the table will normalize to lowercase.  Otherwise, it will normalize to upper case.

RETURNS

 Nothing

DESCRIPTION

ucInitializeNormalizationTable initializes a lookup table for use with ucTableNormalizeChar.  The buffer which is used must be 2 times the value of the highest valued character to normalize.  (The buffer can be greater in size if need be.) MaxChars tells the initialization routine how many characters to initialize in the table.  So, for example, if you wanted to normalize the first 128 characters of Unicode (which has the same values / character associations as ASCII), you would want to give ucInitializeNormalizationTable a TableBuffer 256 bytes (or larger) in size and MaxChars would be 128.  Lower determines whether the table will normalize characters to upper or lower case.  If set to BooleanTrue, Lower will normalize to lowercase and uppercase otherwise.

SEE ALSO

ucTableNormalizeChar, ucNormalizeChar