Hi ,

For sorting , ICU use locale base sorting.

Locale can be given using ucol_open(const char* loc,UErrorCode* status)
function/API like :
    collator = ucol_open(en_US, &status)

Now i want to customize collation rule also like :
const static char* rule = "& f < a " ;

Now, for this customize rule , i use function ucol_openRules ( ) ...like :
  collator = ucol_openRules(rlz, rlen, UCOL_OFF,UCOL_TERTIARY,NULL,
&status);

Both of these functions return
UCollator<http://icu-project.org/apiref/icu4c/ucol_8h.html#a3c4eeb412a5fd72762e6245aa75ca081>
.

In Sample programs i seen that , both of these function are not use at same
time /simultaneously  , like :
if (opt_rules != 0) {
        u_unescape(opt_rules, rules, 100);
        collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY,
                              NULL, &status);
    }
    else {
        collator = ucol_open(opt_locale, &status);


So how to make sure that ICU use specific locale like Zh & customize
collation rules  simultaneously ?


Thanks & Regards
        Ashish
"Be a Part of Solution"
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to