Re: ICU4C API Addition Proposal: ucol_openFromBinary

George Rhoten <[email protected]> Fri, 8 Oct 2004 17:17:43 -0700
Newsgroups gmane.comp.lib.icu.general
Message-ID <OF3C037CF5.8A35BD2C-ON86256F28.000141B0-88256F28.00019C0B@us.ibm.com>
Can you make this API work like the BreakIterator?

    RuleBasedBreakIterator(UDataMemory* image, UErrorCode &status);


Also why is length needed?  Shouldn't the binary image already have the 
length within the structure?

George Rhoten
IBM Globalization Center of Competency/ICU  San José, CA, USA
ICU main website: http://oss.software.ibm.com/icu/index.html



Vladimir Weinstein <[email protected]> 
Sent by: [email protected]
10/08/2004 04:43 PM

To
icu list <[email protected]>
cc

Subject
ICU4C API Addition Proposal: ucol_openFromBinary






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]
_______________________________________________
icu mailing list
[email protected]
http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu