Lines Matching defs:coll
80 UCollator *coll = ucol_open(LOCALES[i], &status);
81 UCollationElements *pitr = ucol_openElements(coll, pattern, -1,
83 UCollationElements *titer = ucol_openElements(coll, text, -1,
129 ucol_close(coll);
153 UCollator *coll = ucol_open(LOCALES[i], &status);
157 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
159 pitr = ucol_openElements(coll, pattern, -1, &status);
160 titer = ucol_openElements(coll, text, -1, &status);
205 ucol_close(coll);
356 UCollator *coll;
372 coll = ucol_openRules(rule, rulelen, UCOL_ON, UCOL_TERTIARY, NULL, &status);
373 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
381 iter = ucol_openElements(coll, source, srclen, &status);
386 iter = ucol_openElements(coll, source, srclen, &status);
392 iter = ucol_openElements(coll, source, srclen, &status);
402 iter = ucol_openElements(coll, source, -1, &status);
413 ucol_close(coll);
424 UCollator *coll=NULL;
435 coll = ucol_open("en_US", &status);
437 iter=ucol_openElements(coll, test1, u_strlen(test1), &status);
442 ucol_close(coll);
448 ucol_close(coll);
525 coll = ucol_open("th_TH", &status);
527 iter=ucol_openElements(coll, source, u_strlen(source), &status);
535 ucol_close(coll);
544 coll = ucol_open("ja_JP", &status);
546 iter=ucol_openElements(coll, source, u_strlen(source), &status);
554 ucol_close(coll);
788 UCollator *coll ;/*= ucol_open("en_US", &status);*/
795 UCollationElements *iter ;/*= ucol_openElements(coll, &ch, 1, &status);*/
800 coll = ucol_openRules(rule, u_strlen(rule), UCOL_DEFAULT,
802 if(U_SUCCESS(status) && coll) {
803 iter = ucol_openElements(coll, &ch, 1, &status);
884 ucol_close(coll);
898 coll = ucol_openRules(rule, u_strlen(rule), UCOL_DEFAULT,
900 iter = ucol_openElements(coll, &ch, 1, &status);
909 ucol_close(coll);
945 UCollator *coll;
967 coll = ucol_open("th_TH", &status);
968 if(U_SUCCESS(status) && coll) {
969 testiter = ucol_openElements(coll, teststr, 500, &status);
970 iter = ucol_openElements(coll, str, 2, &status);
1006 ucol_close(coll);
1272 UCollator *coll = ucol_open("", &status);
1311 iter = ucol_openElements(coll, contextCPs, -1, &status);
1327 iter = ucol_openElements(coll, codepoints, -1, &status);
1356 ucol_close(coll);
1399 UCollator *coll;
1405 coll = ucol_openRules(rule, rulelen, UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status);
1406 iter = ucol_openElements(coll, rule, 1, &status);
1407 resultiter = ucol_openElements(coll, rule, 1, &status);
1466 ucol_close(coll);
1474 UCollator *coll;
1478 coll = ucol_openRules(rule, u_strlen(rule), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL,&status);
1490 iter = ucol_openElements(coll, str, UCOL_EXPAND_CE_BUFFER_SIZE + 1,
1497 ucol_close(coll);
1521 static UBool checkCEValidity(const UCollator *coll, const UChar *codepoints,
1525 UCollationElements *iter = ucol_openElements(coll, codepoints, length,
1535 collLocale = ucol_getLocale(coll, ULOC_VALID_LOCALE, &status);
1694 UCollator *coll = ucol_open("root", &status);
1724 checkCEValidity(coll, codepoints, u_strlen(codepoints));
1731 checkCEValidity(coll, codepoints, 1);
1738 checkCEValidity(coll, codepoints, i);
1742 ucol_close(coll);
1783 coll = ucol_open(loc, &status);
1790 rules = ucol_getRules(coll, &ruleLen);
1817 checkCEValidity(coll, codepoints, chLen);
1822 ucol_close(coll);
1849 static UBool checkSortKeyValidity(UCollator *coll,
1863 ucol_setAttribute(coll, UCOL_CASE_LEVEL, UCOL_OFF, &status);
1866 ucol_setAttribute(coll, UCOL_CASE_LEVEL, UCOL_ON, &status);
1875 ucol_setStrength(coll, strength[strengthIndex]);
1876 sklen = ucol_getSortKey(coll, codepoints, length, sortkey, 128);
1904 UCollator *coll = ucol_open("en_US", &status);
1935 checkSortKeyValidity(coll, codepoints, u_strlen(codepoints));
1943 checkSortKeyValidity(coll, codepoints, 1);
1948 ucol_close(coll);
1973 coll = ucol_open(locale[count], &status);
1980 rules = ucol_getRules(coll, &ruleLen);
2011 checkSortKeyValidity(coll, codepoints, chLen);
2016 ucol_close(coll);