• Home
  • Raw
  • Download

Lines Matching refs:myCollation

273 static void doTestVariant(UCollator* myCollation, const UChar source[], const UChar target[], UColl…  in doTestVariant()  argument
284 UColAttributeValue norm = ucol_getAttribute(myCollation, UCOL_NORMALIZATION_MODE, &status); in doTestVariant()
288 compareResult = ucol_strcoll(myCollation, source, sLen, target, tLen); in doTestVariant()
293 compareResulta = ucol_strcoll(myCollation, source, -1, target, -1); in doTestVariant()
301 compareResultIter = ucol_strcollIter(myCollation, &sIter, &tIter, &status); in doTestVariant()
319 …compareResulta = ucol_strcollUTF8(myCollation, utf8Source, utf8SourceLen, utf8Target, utf8TargetLe… in doTestVariant()
327 … compareResulta = ucol_strcollUTF8(myCollation, utf8Source, -1, utf8Target, -1, &status); in doTestVariant()
343 compareResultUTF8Iter = ucol_strcollIter(myCollation, &sIter, &tIter, &status); in doTestVariant()
345 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in doTestVariant()
348 … compareResultUTF8IterNorm = ucol_strcollIter(myCollation, &sIter, &tIter, &status); in doTestVariant()
350 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, norm, &status); in doTestVariant()
380 …partialSKResult = compareUsingPartials(myCollation, source, sLen, target, tLen, partialSizes[i], &… in doTestVariant()
389 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in doTestVariant()
390 …partialNormalizedSKResult = compareUsingPartials(myCollation, source, sLen, target, tLen, partialS… in doTestVariant()
391 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, norm, &status); in doTestVariant()
401 sortklen1=ucol_getSortKey(myCollation, source, sLen, NULL, 0); in doTestVariant()
402 sortklen2=ucol_getSortKey(myCollation, target, tLen, NULL, 0); in doTestVariant()
410 ucol_getSortKey(myCollation, source, sLen, sortKey1, sortklen1+1); in doTestVariant()
411 ucol_getSortKey(myCollation, source, -1, sortKey1a, sortklen1+1); in doTestVariant()
415 ucol_getSortKey(myCollation, target, tLen, sortKey2, sortklen2+1); in doTestVariant()
416 ucol_getSortKey(myCollation, target, -1, sortKey2a, sortklen2+1); in doTestVariant()
431 … log_verbose("Generated sortkey: %s\n", sortKeyToString(myCollation, sortKey1, buffer, &len)); in doTestVariant()
435 … log_verbose("Generated sortkey: %s\n", sortKeyToString(myCollation, sortKey2, buffer, &len)); in doTestVariant()
455 void doTest(UCollator* myCollation, const UChar source[], const UChar target[], UCollationResult re… in doTest() argument
457 if(myCollation) { in doTest()
458 doTestVariant(myCollation, source, target, result); in doTest()
460 doTestVariant(myCollation, target, source, UCOL_GREATER); in doTest()
462 doTestVariant(myCollation, target, source, UCOL_LESS); in doTest()
464 doTestVariant(myCollation, target, source, UCOL_EQUAL); in doTest()
744 UCollator *myCollation; in TestTertiary() local
751 myCollation=ucol_openRules(rules, len, UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL, &status); in TestTertiary()
757 ucol_setStrength(myCollation, UCOL_TERTIARY); in TestTertiary()
760 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
762 ucol_close(myCollation); in TestTertiary()
763 myCollation = 0; in TestTertiary()
769 UCollator *myCollation; in TestPrimary() local
776 myCollation=ucol_openRules(rules, len, UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status); in TestPrimary()
781 ucol_setStrength(myCollation, UCOL_PRIMARY); in TestPrimary()
786 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary()
788 ucol_close(myCollation); in TestPrimary()
789 myCollation = 0; in TestPrimary()
796 UCollator *myCollation; in TestSecondary() local
803 myCollation=ucol_openRules(rules, len, UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status); in TestSecondary()
808 ucol_setStrength(myCollation, UCOL_SECONDARY); in TestSecondary()
811 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestSecondary()
813 ucol_close(myCollation); in TestSecondary()
814 myCollation = 0; in TestSecondary()
821 UCollator *myCollation; in TestIdentical() local
828 myCollation=ucol_openRules(rules, len, UCOL_OFF, UCOL_IDENTICAL, NULL,&status); in TestIdentical()
835 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestIdentical()
837 ucol_close(myCollation); in TestIdentical()
838 myCollation = 0; in TestIdentical()
845 UCollator *myCollation; in TestExtra() local
852 myCollation=ucol_openRules(rules, len, UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status); in TestExtra()
857 ucol_setStrength(myCollation, UCOL_TERTIARY); in TestExtra()
863 doTest(myCollation, testCases[i], testCases[j], UCOL_LESS); in TestExtra()
866 ucol_close(myCollation); in TestExtra()
867 myCollation = 0; in TestExtra()
1030 UCollator *myCollation; in TestVariableTop()
1046 myCollation = ucol_openRules(rules, len, UCOL_OFF, in TestVariableTop()
1058 ucol_setAttribute(myCollation, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, in TestVariableTop()
1061 if (ucol_getAttribute(myCollation, UCOL_ALTERNATE_HANDLING, &status) != in TestVariableTop()
1080 len = ucol_getSortKey(myCollation, source, 1, result, in TestVariableTop()
1090 ucol_close(myCollation); in TestVariableTop()
1092 myCollation = NULL; in TestVariableTop()
1108 UCollator *myCollation; in TestSurrogates() local
1128 myCollation = ucol_openRules(rules, rlen, UCOL_OFF, in TestSurrogates()
1152 doTest(myCollation, source[count], target[count], UCOL_LESS); in TestSurrogates()
1158 mylen = ucol_getSortKey(myCollation, source[3], 2, myresult, 20); in TestSurrogates()
1165 ucol_close(myCollation); in TestSurrogates()
1167 myCollation = NULL; in TestSurrogates()