Lines Matching refs:coll
146 static char* U_EXPORT2 sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *buffer,… in sortKeyToString() argument
157 while(strength <= UCOL_QUATERNARY && strength <= ucol_getStrength(coll)) { in sortKeyToString()
165 …if(ucol_getAttribute(coll, UCOL_CASE_LEVEL, &errorCode) == UCOL_ON && strength == UCOL_SECONDARY &… in sortKeyToString()
167 …} else if(ucol_getAttribute(coll, UCOL_CASE_LEVEL, &errorCode) == UCOL_OFF || doneCase == TRUE || … in sortKeyToString()
173 …if(strength == UCOL_QUATERNARY && ucol_getAttribute(coll, UCOL_ALTERNATE_HANDLING, &errorCode) == … in sortKeyToString()
178 if(ucol_getStrength(coll) == UCOL_IDENTICAL) { in sortKeyToString()
230 static UCollationResult compareUsingPartials(UCollator *coll, const UChar source[], int32_t sLen, c… in compareUsingPartials() argument
248 sSize = ucol_nextSortKeyPart(coll, &sIter, sState, sBuf, pieceSize, status); in compareUsingPartials()
249 tSize = ucol_nextSortKeyPart(coll, &tIter, tState, tBuf, pieceSize, status); in compareUsingPartials()
565 void genericOrderingTestWithResult(UCollator *coll, const char * const s[], uint32_t size, UCollati… in genericOrderingTestWithResult() argument
577 iter = ucol_openElements(coll, t1, u_strlen(t1), &status); in genericOrderingTestWithResult()
585 doTest(coll, t1, t2, result); in genericOrderingTestWithResult()
596 void genericOrderingTest(UCollator *coll, const char * const s[], uint32_t size) { in genericOrderingTest() argument
597 genericOrderingTestWithResult(coll, s, size, UCOL_LESS); in genericOrderingTest()
602 UCollator *coll = ucol_open(locale, &status); in genericLocaleStarter() local
607 genericOrderingTest(coll, s, size); in genericLocaleStarter()
614 ucol_close(coll); in genericLocaleStarter()
619 UCollator *coll = ucol_open(locale, &status); in genericLocaleStarterWithResult() local
624 genericOrderingTestWithResult(coll, s, size, result); in genericLocaleStarterWithResult()
631 ucol_close(coll); in genericLocaleStarterWithResult()
641 UCollator *coll = ucol_openRules(rlz, rlen, UCOL_DEFAULT, UCOL_DEFAULT,NULL, &status); in genericRulesStarterWithOptionsAndResult() local
648 ucol_setAttribute(coll, attrs[i], values[i], &status); in genericRulesStarterWithOptionsAndResult()
651 genericOrderingTestWithResult(coll, s, size, result); in genericRulesStarterWithOptionsAndResult()
655 ucol_close(coll); in genericRulesStarterWithOptionsAndResult()
662 UCollator *coll = ucol_open(locale, &status); in genericLocaleStarterWithOptionsAndResult() local
670 ucol_setAttribute(coll, attrs[i], values[i], &status); in genericLocaleStarterWithOptionsAndResult()
673 genericOrderingTestWithResult(coll, s, size, result); in genericLocaleStarterWithOptionsAndResult()
677 ucol_close(coll); in genericLocaleStarterWithOptionsAndResult()
689 UCollator *coll = NULL; in genericRulesStarterWithResult() local
690 coll = ucol_openRules(rlz, rlen, UCOL_DEFAULT, UCOL_DEFAULT,NULL, &status); in genericRulesStarterWithResult()
694 genericOrderingTestWithResult(coll, s, size, result); in genericRulesStarterWithResult()
695 ucol_close(coll); in genericRulesStarterWithResult()
1156 UCollator* coll=0; in TestInvalidRules() local
1164 … coll = ucol_openRules(rules,u_strlen(rules),UCOL_OFF,UCOL_DEFAULT_STRENGTH,&parseError,&status); in TestInvalidRules()
1236 UCollator *coll = ucol_open("es", &status); in TestFCDCrash() local
1241 ucol_close(coll); in TestFCDCrash()
1242 coll = NULL; in TestFCDCrash()
1244 coll = ucol_open("de_DE", &status); in TestFCDCrash()
1249 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in TestFCDCrash()
1250 genericOrderingTest(coll, test, 2); in TestFCDCrash()
1251 ucol_close(coll); in TestFCDCrash()