Home | History | Annotate | Download | only in cintltst

Lines Matching defs:myCollation

268 static void doTestVariant(UCollator* myCollation, const UChar source[], const UChar target[], UCollationResult result)
279 UColAttributeValue norm = ucol_getAttribute(myCollation, UCOL_NORMALIZATION_MODE, &status);
284 compareResultIter = ucol_strcollIter(myCollation, &sIter, &tIter, &status);
306 compareResultUTF8 = ucol_strcollIter(myCollation, &sIter, &tIter, &status);
307 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
310 compareResultUTF8Norm = ucol_strcollIter(myCollation, &sIter, &tIter, &status);
311 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, norm, &status);
340 partialSKResult = compareUsingPartials(myCollation, source, sLen, target, tLen, partialSizes[i], &status);
349 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
350 partialNormalizedSKResult = compareUsingPartials(myCollation, source, sLen, target, tLen, partialSizes[i], &status);
351 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, norm, &status);
362 compareResult = ucol_strcoll(myCollation, source, sLen, target, tLen);
363 compareResulta = ucol_strcoll(myCollation, source, -1, target, -1);
368 sortklen1=ucol_getSortKey(myCollation, source, sLen, NULL, 0);
369 sortklen2=ucol_getSortKey(myCollation, target, tLen, NULL, 0);
376 ucol_getSortKey(myCollation, source, sLen, sortKey1, sortklen1+1);
377 ucol_getSortKey(myCollation, source, -1, sortKey1a, sortklen1+1);
381 ucol_getSortKey(myCollation, target, tLen, sortKey2, sortklen2+1);
382 ucol_getSortKey(myCollation, target, -1, sortKey2a, sortklen2+1);
397 log_verbose("Generated sortkey: %s\n", sortKeyToString(myCollation, sortKey1, buffer, &len));
401 log_verbose("Generated sortkey: %s\n", sortKeyToString(myCollation, sortKey2, buffer, &len));
421 void doTest(UCollator* myCollation, const UChar source[], const UChar target[], UCollationResult result)
423 if(myCollation) {
424 doTestVariant(myCollation, source, target, result);
426 doTestVariant(myCollation, target, source, UCOL_GREATER);
428 doTestVariant(myCollation, target, source, UCOL_LESS);
430 doTestVariant(myCollation, target, source, UCOL_EQUAL);
710 UCollator *myCollation;
717 myCollation=ucol_openRules(rules, len, UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL, &status);
723 ucol_setStrength(myCollation, UCOL_TERTIARY);
726 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]);
728 ucol_close(myCollation);
729 myCollation = 0;
735 UCollator *myCollation;
742 myCollation=ucol_openRules(rules, len, UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status);
747 ucol_setStrength(myCollation, UCOL_PRIMARY);
752 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]);
754 ucol_close(myCollation);
755 myCollation = 0;
762 UCollator *myCollation;
769 myCollation=ucol_openRules(rules, len, UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status);
774 ucol_setStrength(myCollation, UCOL_SECONDARY);
777 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]);
779 ucol_close(myCollation);
780 myCollation = 0;
787 UCollator *myCollation;
794 myCollation=ucol_openRules(rules, len, UCOL_OFF, UCOL_IDENTICAL, NULL,&status);
801 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]);
803 ucol_close(myCollation);
804 myCollation = 0;
811 UCollator *myCollation;
818 myCollation=ucol_openRules(rules, len, UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status);
823 ucol_setStrength(myCollation, UCOL_TERTIARY);
829 doTest(myCollation, testCases[i], testCases[j], UCOL_LESS);
832 ucol_close(myCollation);
833 myCollation = 0;
988 UCollator *myCollation;
1004 myCollation = ucol_openRules(rules, len, UCOL_OFF,
1016 ucol_setAttribute(myCollation, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED,
1019 if (ucol_getAttribute(myCollation, UCOL_ALTERNATE_HANDLING, &status) !=
1038 len = ucol_getSortKey(myCollation, source, 1, result,
1048 ucol_close(myCollation);
1050 myCollation = NULL;
1065 UCollator *myCollation;
1085 myCollation = ucol_openRules(rules, rlen, UCOL_OFF,
1109 doTest(myCollation, source[count], target[count], UCOL_LESS);
1115 mylen = ucol_getSortKey(myCollation, source[3], 2, myresult, 20);
1122 ucol_close(myCollation);
1124 myCollation = NULL;