ICU4C API Addition Proposal: ucol_openFromBinary

Vladimir Weinstein <[email protected]> Fri, 08 Oct 2004 16:43:54 -0700
Newsgroups gmane.comp.lib.icu.general
Message-ID <[email protected]>
Expires: 10/15/2004


I am proposing to add the following API:

UCollator *ucol_openBinary(const uint8_t *bin, int32_t length, const UCollator 
*base, UErrorCode *pErrorCode);

This API would initialize a collator from a collator image bin. If length is 
less than zero, the API will preflight.

base is the collator that is used for fallback if a value is not found in the 
collator. It is usually UCA, but can be any other collator. If this value is 
NULL, no fallback will occur.

Status returnes error codes, if any.

Thank you!

Regards,
v.

-- 
Vladimir Weinstein, IBM GCoC-Unicode/ICU  San Jose, CA [email protected]