Home | History | Annotate | Download | only in cintltst

Lines Matching full:coll

147 static char* U_EXPORT2 sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *buffer, uint32_t *len) {
157 while(strength <= UCOL_QUATERNARY && strength <= coll->strength) {
165 if(coll->caseLevel == UCOL_ON && strength == UCOL_SECONDARY && doneCase == FALSE) {
167 } else if(coll->caseLevel == UCOL_OFF || doneCase == TRUE || strength != UCOL_SECONDARY) {
173 if(strength == UCOL_QUATERNARY && coll->alternateHandling == UCOL_NON_IGNORABLE) {
178 if(coll->strength == UCOL_IDENTICAL) {
230 static UCollationResult compareUsingPartials(UCollator *coll, const UChar source[], int32_t sLen, const UChar target[], int32_t tLen, int32_t pieceSize, UErrorCode *status) {
248 sSize = ucol_nextSortKeyPart(coll, &sIter, sState, sBuf, pieceSize, status);
249 tSize = ucol_nextSortKeyPart(coll, &tIter, tState, tBuf, pieceSize, status);
562 void genericOrderingTestWithResult(UCollator *coll, const char * const s[], uint32_t size, UCollationResult result) {
574 iter = ucol_openElements(coll, t1, u_strlen(t1), &status);
582 doTest(coll, t1, t2, result);
593 void genericOrderingTest(UCollator *coll, const char * const s[], uint32_t size) {
594 genericOrderingTestWithResult(coll, s, size, UCOL_LESS);
599 UCollator *coll = ucol_open(locale, &status);
604 genericOrderingTest(coll, s, size);
611 ucol_close(coll);
616 UCollator *coll = ucol_open(locale, &status);
621 genericOrderingTestWithResult(coll, s, size, result);
628 ucol_close(coll);
638 UCollator *coll = ucol_openRules(rlz, rlen, UCOL_DEFAULT, UCOL_DEFAULT,NULL, &status);
645 ucol_setAttribute(coll, attrs[i], values[i], &status);
648 genericOrderingTestWithResult(coll, s, size, result);
652 ucol_close(coll);
659 UCollator *coll = ucol_open(locale, &status);
667 ucol_setAttribute(coll, attrs[i], values[i], &status);
670 genericOrderingTestWithResult(coll, s, size, result);
674 ucol_close(coll);
686 UCollator *coll = NULL;
687 coll = ucol_openRules(rlz, rlen, UCOL_DEFAULT, UCOL_DEFAULT,NULL, &status);
691 genericOrderingTestWithResult(coll, s, size, result);
692 ucol_close(coll);
1153 UCollator* coll=0;
1161 coll = ucol_openRules(rules,u_strlen(rules),UCOL_OFF,UCOL_DEFAULT_STRENGTH,&parseError,&status);
1233 UCollator *coll = ucol_open("es", &status);
1238 ucol_close(coll);
1239 coll = NULL;
1241 coll = ucol_open("de_DE", &status);
1246 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
1247 genericOrderingTest(coll, test, 2);
1248 ucol_close(coll);