• Home
  • Raw
  • Download

Lines Matching refs:myCollation

270 static void doTestVariant(UCollator* myCollation, const UChar source[], const UChar target[], UColl…  in doTestVariant()  argument
281 UColAttributeValue norm = ucol_getAttribute(myCollation, UCOL_NORMALIZATION_MODE, &status); in doTestVariant()
285 compareResult = ucol_strcoll(myCollation, source, sLen, target, tLen); in doTestVariant()
290 compareResulta = ucol_strcoll(myCollation, source, -1, target, -1); in doTestVariant()
298 compareResultIter = ucol_strcollIter(myCollation, &sIter, &tIter, &status); in doTestVariant()
316 …compareResulta = ucol_strcollUTF8(myCollation, utf8Source, utf8SourceLen, utf8Target, utf8TargetLe… in doTestVariant()
324 … compareResulta = ucol_strcollUTF8(myCollation, utf8Source, -1, utf8Target, -1, &status); in doTestVariant()
340 compareResultUTF8Iter = ucol_strcollIter(myCollation, &sIter, &tIter, &status); in doTestVariant()
342 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in doTestVariant()
345 … compareResultUTF8IterNorm = ucol_strcollIter(myCollation, &sIter, &tIter, &status); in doTestVariant()
347 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, norm, &status); in doTestVariant()
377 …partialSKResult = compareUsingPartials(myCollation, source, sLen, target, tLen, partialSizes[i], &… in doTestVariant()
386 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in doTestVariant()
387 …partialNormalizedSKResult = compareUsingPartials(myCollation, source, sLen, target, tLen, partialS… in doTestVariant()
388 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, norm, &status); in doTestVariant()
398 sortklen1=ucol_getSortKey(myCollation, source, sLen, NULL, 0); in doTestVariant()
399 sortklen2=ucol_getSortKey(myCollation, target, tLen, NULL, 0); in doTestVariant()
407 ucol_getSortKey(myCollation, source, sLen, sortKey1, sortklen1+1); in doTestVariant()
408 ucol_getSortKey(myCollation, source, -1, sortKey1a, sortklen1+1); in doTestVariant()
412 ucol_getSortKey(myCollation, target, tLen, sortKey2, sortklen2+1); in doTestVariant()
413 ucol_getSortKey(myCollation, target, -1, sortKey2a, sortklen2+1); in doTestVariant()
428 … log_verbose("Generated sortkey: %s\n", sortKeyToString(myCollation, sortKey1, buffer, &len)); in doTestVariant()
432 … log_verbose("Generated sortkey: %s\n", sortKeyToString(myCollation, sortKey2, buffer, &len)); in doTestVariant()
452 void doTest(UCollator* myCollation, const UChar source[], const UChar target[], UCollationResult re… in doTest() argument
454 if(myCollation) { in doTest()
455 doTestVariant(myCollation, source, target, result); in doTest()
457 doTestVariant(myCollation, target, source, UCOL_GREATER); in doTest()
459 doTestVariant(myCollation, target, source, UCOL_LESS); in doTest()
461 doTestVariant(myCollation, target, source, UCOL_EQUAL); in doTest()
741 UCollator *myCollation; in TestTertiary() local
748 myCollation=ucol_openRules(rules, len, UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL, &status); in TestTertiary()
754 ucol_setStrength(myCollation, UCOL_TERTIARY); in TestTertiary()
757 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
759 ucol_close(myCollation); in TestTertiary()
760 myCollation = 0; in TestTertiary()
766 UCollator *myCollation; in TestPrimary() local
773 myCollation=ucol_openRules(rules, len, UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status); in TestPrimary()
778 ucol_setStrength(myCollation, UCOL_PRIMARY); in TestPrimary()
783 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary()
785 ucol_close(myCollation); in TestPrimary()
786 myCollation = 0; in TestPrimary()
793 UCollator *myCollation; in TestSecondary() local
800 myCollation=ucol_openRules(rules, len, UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status); in TestSecondary()
805 ucol_setStrength(myCollation, UCOL_SECONDARY); in TestSecondary()
808 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestSecondary()
810 ucol_close(myCollation); in TestSecondary()
811 myCollation = 0; in TestSecondary()
818 UCollator *myCollation; in TestIdentical() local
825 myCollation=ucol_openRules(rules, len, UCOL_OFF, UCOL_IDENTICAL, NULL,&status); in TestIdentical()
832 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestIdentical()
834 ucol_close(myCollation); in TestIdentical()
835 myCollation = 0; in TestIdentical()
842 UCollator *myCollation; in TestExtra() local
849 myCollation=ucol_openRules(rules, len, UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status); in TestExtra()
854 ucol_setStrength(myCollation, UCOL_TERTIARY); in TestExtra()
860 doTest(myCollation, testCases[i], testCases[j], UCOL_LESS); in TestExtra()
863 ucol_close(myCollation); in TestExtra()
864 myCollation = 0; in TestExtra()
1027 UCollator *myCollation; in TestVariableTop()
1043 myCollation = ucol_openRules(rules, len, UCOL_OFF, in TestVariableTop()
1055 ucol_setAttribute(myCollation, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, in TestVariableTop()
1058 if (ucol_getAttribute(myCollation, UCOL_ALTERNATE_HANDLING, &status) != in TestVariableTop()
1077 len = ucol_getSortKey(myCollation, source, 1, result, in TestVariableTop()
1087 ucol_close(myCollation); in TestVariableTop()
1089 myCollation = NULL; in TestVariableTop()
1105 UCollator *myCollation; in TestSurrogates() local
1125 myCollation = ucol_openRules(rules, rlen, UCOL_OFF, in TestSurrogates()
1149 doTest(myCollation, source[count], target[count], UCOL_LESS); in TestSurrogates()
1155 mylen = ucol_getSortKey(myCollation, source[3], 2, myresult, 20); in TestSurrogates()
1162 ucol_close(myCollation); in TestSurrogates()
1164 myCollation = NULL; in TestSurrogates()