Indigo 0.95 |
indigo. icu.ucol
C API for locale-sensitive string comparison. See the official documentation at http://icu.sourceforge.net- /apiref- /icu4c- /ucol_8h.html. Summary
UCollatorCollator for use in C programs. Summary
UCollationResultPossible values for a comparison result. See ucol_strcoll(). ucol_open()
Open a UCollator for comparing strings, for the specified locale. status will signalize if that failed. Passing null for the locale sets the default locale to be used, passing an empty string set the UCA rules to be used. The UCollator pointer is used in all the calls to the Collation service. After finished, collator must be disposed of by calling ucol_close(). ucol_strcoll()
Compares the strings s1 and s2 with the collator coll. See also UCollationResult. ucol_stdColl
This is the collator for the standard locale retrieved from the operating system. It is automatically opened at program startup and closed at program closure. See <indigo.icu.uloc.uloc_getStandard()> and ucol_open(). |
Open a UCollator for comparing strings, for the specified locale.
UCollator* function( char * locale, UErrorCode * status ) ucol_open
Close the collator coll.
void function( UCollator * coll ) ucol_close
Compares the strings s1 and s2 with the collator coll.
UCollationResult function( UCollator * coll, UChar * s1, int32_t s1Len, UChar * s2, int32_t s2Len ) ucol_strcoll
This is the collator for the standard locale retrieved from the operating system.
UCollator* ucol_stdColl