Lines Matching refs:coll
87 UCollator *coll = NULL; in IncompleteCntTest() local
93 coll = ucol_openRules(temp, u_strlen(temp), UCOL_OFF, UCOL_DEFAULT_STRENGTH, NULL,&status); in IncompleteCntTest()
102 doTest(coll, t1, t2, UCOL_LESS); in IncompleteCntTest()
104 iter = ucol_openElements(coll, t2, u_strlen(t2), &status); in IncompleteCntTest()
115 ucol_close(coll); in IncompleteCntTest()
119 coll = ucol_openRules(temp, u_strlen(temp), UCOL_OFF, UCOL_DEFAULT_STRENGTH,NULL, &status); in IncompleteCntTest()
128 doTest(coll, t1, t2, UCOL_LESS); in IncompleteCntTest()
131 iter = ucol_openElements(coll, t2, u_strlen(t2), &status); in IncompleteCntTest()
142 ucol_close(coll); in IncompleteCntTest()
190 UCollator *coll = ucol_open("en_US", &status); in BlackBirdTest() local
192 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_OFF, &status); in BlackBirdTest()
193 ucol_setAttribute(coll, UCOL_ALTERNATE_HANDLING, UCOL_NON_IGNORABLE, &status); in BlackBirdTest()
201 doTest(coll, t1, t2, UCOL_LESS); in BlackBirdTest()
206 ucol_setAttribute(coll, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status); in BlackBirdTest()
207 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_QUATERNARY, &status); in BlackBirdTest()
215 doTest(coll, t1, t2, UCOL_LESS); in BlackBirdTest()
220 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_TERTIARY, &status); in BlackBirdTest()
226 doTest(coll, t1, t2, shiftedTert[i]); in BlackBirdTest()
230 ucol_close(coll); in BlackBirdTest()
337 UCollator *coll = ucol_open("en_US", &status);
357 ucol_setAttribute(coll, UCOL_CASE_FIRST, caseFirst[i], &status);
361 ucol_setAttribute(coll, UCOL_ALTERNATE_HANDLING, alternateHandling[i], &status);
365 ucol_setAttribute(coll, UCOL_CASE_LEVEL, caseLevel[j], &status);
369 ucol_setAttribute(coll, UCOL_STRENGTH, strengths[k], &status);
370 sortkeysize = ucol_getSortKey(coll, m, sizem, sortkey, 256);
372 fprintf(stderr, "%s\n", ucol_sortKeyToString(coll, sortkey, buffer, &len));
442 UCollator *coll = ucol_open("cs", &status); in TestChMove() local
450 doTest(coll, t1, t2, UCOL_LESS); in TestChMove()
457 ucol_close(coll); in TestChMove()
538 UCollator *coll = ucol_open("", &status); in TestFCDProblem() local
542 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_OFF, &status); in TestFCDProblem()
543 doTest(coll, t1, t2, UCOL_EQUAL); in TestFCDProblem()
545 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in TestFCDProblem()
546 doTest(coll, t1, t2, UCOL_EQUAL); in TestFCDProblem()
548 ucol_close(coll); in TestFCDProblem()
578 UCollator *coll = NULL; in TestComposeDecompose() local
588 coll = ucol_open("", &status); in TestComposeDecompose()
626 if(!ucol_equal(coll, t[u]->NFC, -1, t[u]->NFD, -1)) { in TestComposeDecompose()
628 doTest(coll, t[u]->NFC, t[u]->NFD, UCOL_EQUAL); in TestComposeDecompose()
648 ucol_close(coll); in TestComposeDecompose()
665 coll = ucol_open(locName, &status); in TestComposeDecompose()
666 ucol_setStrength(coll, UCOL_IDENTICAL); in TestComposeDecompose()
667 iter = ucol_openElements(coll, t[u]->NFD, u_strlen(t[u]->NFD), &status); in TestComposeDecompose()
670 if(!ucol_equal(coll, t[u]->NFC, -1, t[u]->NFD, -1)) { in TestComposeDecompose()
672 doTest(coll, t[u]->NFC, t[u]->NFD, UCOL_EQUAL); in TestComposeDecompose()
682 ucol_close(coll); in TestComposeDecompose()
694 UCollator *coll = ucol_openRules(rulez, 0, UCOL_OFF, UCOL_TERTIARY,NULL, &status); in TestEmptyRule() local
696 ucol_close(coll); in TestEmptyRule()
705 UCollator *coll = ucol_open("", &status); in TestUCARules() local
713 ruleLen = ucol_getRulesEx(coll, UCOL_FULL_RULES, rules, 256); in TestUCARules()
718 ruleLen = ucol_getRulesEx(coll, UCOL_FULL_RULES, rules, ruleLen); in TestUCARules()
731 ucol_close(coll); in TestUCARules()
970 UCollator *coll; in TestIncrementalNormalize() local
986 coll = ucol_open("en_US", &status); in TestIncrementalNormalize()
994 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in TestIncrementalNormalize()
1010 ucol_setStrength(coll, UCOL_TERTIARY); /* Do test with default strength, which runs*/ in TestIncrementalNormalize()
1011 doTest(coll, strA, strB, UCOL_EQUAL); /* optimized functions in the impl*/ in TestIncrementalNormalize()
1012 ucol_setStrength(coll, UCOL_IDENTICAL); /* Do again with the slow, general impl.*/ in TestIncrementalNormalize()
1013 doTest(coll, strA, strB, UCOL_EQUAL); in TestIncrementalNormalize()
1026 ucol_setStrength(coll, UCOL_TERTIARY); in TestIncrementalNormalize()
1027 doTest(coll, strA, strB, UCOL_EQUAL); in TestIncrementalNormalize()
1040 ucol_setStrength(coll, UCOL_TERTIARY); in TestIncrementalNormalize()
1041 doTest(coll, strA, strB, UCOL_GREATER); in TestIncrementalNormalize()
1057 result = ucol_strcoll(coll, strA, 3, strB, 3); in TestIncrementalNormalize()
1061 result = ucol_strcoll(coll, strA, -1, strB, -1); in TestIncrementalNormalize()
1066 ucol_getSortKey(coll, strA, 3, (uint8_t *)sortKeyA, sizeof(sortKeyA)); in TestIncrementalNormalize()
1067 ucol_getSortKey(coll, strA, -1, (uint8_t *)sortKeyAz, sizeof(sortKeyAz)); in TestIncrementalNormalize()
1068 ucol_getSortKey(coll, strB, 3, (uint8_t *)sortKeyB, sizeof(sortKeyB)); in TestIncrementalNormalize()
1069 ucol_getSortKey(coll, strB, -1, (uint8_t *)sortKeyBz, sizeof(sortKeyBz)); in TestIncrementalNormalize()
1084 ucol_setStrength(coll, UCOL_IDENTICAL); in TestIncrementalNormalize()
1085 ucol_getSortKey(coll, strA, 3, (uint8_t *)sortKeyA, sizeof(sortKeyA)); in TestIncrementalNormalize()
1086 ucol_getSortKey(coll, strA, -1, (uint8_t *)sortKeyAz, sizeof(sortKeyAz)); in TestIncrementalNormalize()
1087 ucol_getSortKey(coll, strB, 3, (uint8_t *)sortKeyB, sizeof(sortKeyB)); in TestIncrementalNormalize()
1088 ucol_getSortKey(coll, strB, -1, (uint8_t *)sortKeyBz, sizeof(sortKeyBz)); in TestIncrementalNormalize()
1102 ucol_setStrength(coll, UCOL_TERTIARY); in TestIncrementalNormalize()
1117 result = ucol_strcoll(coll, strA, 6, strB, 6); in TestIncrementalNormalize()
1121 result = ucol_strcoll(coll, strA, -1, strB, -1); in TestIncrementalNormalize()
1126 ucol_getSortKey(coll, strA, 6, (uint8_t *)sortKeyA, sizeof(sortKeyA)); in TestIncrementalNormalize()
1127 ucol_getSortKey(coll, strA, -1, (uint8_t *)sortKeyAz, sizeof(sortKeyAz)); in TestIncrementalNormalize()
1128 ucol_getSortKey(coll, strB, 6, (uint8_t *)sortKeyB, sizeof(sortKeyB)); in TestIncrementalNormalize()
1129 ucol_getSortKey(coll, strB, -1, (uint8_t *)sortKeyBz, sizeof(sortKeyBz)); in TestIncrementalNormalize()
1144 ucol_setStrength(coll, UCOL_IDENTICAL); in TestIncrementalNormalize()
1145 ucol_getSortKey(coll, strA, 6, (uint8_t *)sortKeyA, sizeof(sortKeyA)); in TestIncrementalNormalize()
1146 ucol_getSortKey(coll, strA, -1, (uint8_t *)sortKeyAz, sizeof(sortKeyAz)); in TestIncrementalNormalize()
1147 ucol_getSortKey(coll, strB, 6, (uint8_t *)sortKeyB, sizeof(sortKeyB)); in TestIncrementalNormalize()
1148 ucol_getSortKey(coll, strB, -1, (uint8_t *)sortKeyBz, sizeof(sortKeyBz)); in TestIncrementalNormalize()
1162 ucol_setStrength(coll, UCOL_TERTIARY); in TestIncrementalNormalize()
1172 result = ucol_strcoll(coll, strA, 5, strB, 5); in TestIncrementalNormalize()
1176 result = ucol_strcoll(coll, strA, -1, strB, -1); in TestIncrementalNormalize()
1182 ucol_close(coll); in TestIncrementalNormalize()
1238 UCollator *coll = ucol_openRules(rlz, rlen, UCOL_DEFAULT, UCOL_DEFAULT,NULL, &status); in TestHangulTailoring() local
1250 genericOrderingTest(coll, koreanData, UPRV_LENGTHOF(koreanData)); in TestHangulTailoring()
1255 ucol_close(coll); in TestHangulTailoring()
1276 UCollator *coll; in TestCompressOverlap() local
1282 coll = ucol_open("", &status); in TestCompressOverlap()
1302 resultlen = ucol_getSortKey(coll, secstr, 150, result, UPRV_LENGTHOF(result)); in TestCompressOverlap()
1316 resultlen = ucol_getSortKey(coll, tertstr, 150, result, UPRV_LENGTHOF(result)); in TestCompressOverlap()
1330 resultlen = ucol_getSortKey(coll, secstr, 150, result, UPRV_LENGTHOF(result)); in TestCompressOverlap()
1343 resultlen = ucol_getSortKey(coll, tertstr, 150, result, UPRV_LENGTHOF(result)); in TestCompressOverlap()
1354 ucol_close(coll); in TestCompressOverlap()
1433 UCollator *coll; in TestContraction() local
1443 coll = ucol_openRules(rule, rlen, UCOL_ON, UCOL_TERTIARY,NULL, &status); in TestContraction()
1448 iter1 = ucol_openElements(coll, testdata[i], 2, &status); in TestContraction()
1454 UCollationElements *iter2 = ucol_openElements(coll, in TestContraction()
1478 ucol_close(coll); in TestContraction()
1482 coll = ucol_openRules(rule, rlen, UCOL_ON, UCOL_TERTIARY,NULL, &status); in TestContraction()
1483 if (ucol_strcoll(coll, testdata2[0], 2, testdata2[1], 2) != UCOL_LESS) { in TestContraction()
1489 if (ucol_strcoll(coll, testdata2[1], 2, testdata2[2], 2) != UCOL_LESS) { in TestContraction()
1495 ucol_close(coll); in TestContraction()
1576 UCollator *coll; in TestExpansion() local
1585 coll = ucol_openRules(rule, rlen, UCOL_ON, UCOL_TERTIARY,NULL, &status); in TestExpansion()
1592 doTest(coll, testdata[j], testdata[j + 1], UCOL_LESS); in TestExpansion()
1594 ucol_close(coll); in TestExpansion()
1698 UCollator *coll = ucol_open("", &status); in TestBocsuCoverage() local
1700 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_IDENTICAL, &status); in TestBocsuCoverage()
1702 klen = ucol_getSortKey(coll, test, tlen, key, 256); in TestBocsuCoverage()
1705 ucol_close(coll); in TestBocsuCoverage()
1714 UCollator *coll = ucol_open("", &status); in TestVariableTopSetting() local
1724 varTopOriginal = ucol_getVariableTop(coll, &status); in TestVariableTopSetting()
1726 ucol_setAttribute(coll, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status); in TestVariableTopSetting()
1728 varTop1 = ucol_setVariableTop(coll, &space, 1, &status); in TestVariableTopSetting()
1729 varTop2 = ucol_getVariableTop(coll, &status); in TestVariableTopSetting()
1732 !ucol_equal(coll, &nul, 0, &space, 1) || in TestVariableTopSetting()
1733 ucol_equal(coll, &nul, 0, &dot, 1) || in TestVariableTopSetting()
1734 ucol_equal(coll, &nul, 0, °ree, 1) || in TestVariableTopSetting()
1735 ucol_equal(coll, &nul, 0, &dollar, 1) || in TestVariableTopSetting()
1736 ucol_equal(coll, &nul, 0, &zero, 1) || in TestVariableTopSetting()
1737 ucol_greaterOrEqual(coll, &space, 1, &dot, 1)) { in TestVariableTopSetting()
1741 varTop1 = ucol_setVariableTop(coll, &dot, 1, &status); in TestVariableTopSetting()
1742 varTop2 = ucol_getVariableTop(coll, &status); in TestVariableTopSetting()
1745 !ucol_equal(coll, &nul, 0, &space, 1) || in TestVariableTopSetting()
1746 !ucol_equal(coll, &nul, 0, &dot, 1) || in TestVariableTopSetting()
1747 ucol_equal(coll, &nul, 0, °ree, 1) || in TestVariableTopSetting()
1748 ucol_equal(coll, &nul, 0, &dollar, 1) || in TestVariableTopSetting()
1749 ucol_equal(coll, &nul, 0, &zero, 1) || in TestVariableTopSetting()
1750 ucol_greaterOrEqual(coll, &dot, 1, °ree, 1)) { in TestVariableTopSetting()
1754 varTop1 = ucol_setVariableTop(coll, °ree, 1, &status); in TestVariableTopSetting()
1755 varTop2 = ucol_getVariableTop(coll, &status); in TestVariableTopSetting()
1758 !ucol_equal(coll, &nul, 0, &space, 1) || in TestVariableTopSetting()
1759 !ucol_equal(coll, &nul, 0, &dot, 1) || in TestVariableTopSetting()
1760 !ucol_equal(coll, &nul, 0, °ree, 1) || in TestVariableTopSetting()
1761 ucol_equal(coll, &nul, 0, &dollar, 1) || in TestVariableTopSetting()
1762 ucol_equal(coll, &nul, 0, &zero, 1) || in TestVariableTopSetting()
1763 ucol_greaterOrEqual(coll, °ree, 1, &dollar, 1)) { in TestVariableTopSetting()
1767 varTop1 = ucol_setVariableTop(coll, &dollar, 1, &status); in TestVariableTopSetting()
1768 varTop2 = ucol_getVariableTop(coll, &status); in TestVariableTopSetting()
1771 !ucol_equal(coll, &nul, 0, &space, 1) || in TestVariableTopSetting()
1772 !ucol_equal(coll, &nul, 0, &dot, 1) || in TestVariableTopSetting()
1773 !ucol_equal(coll, &nul, 0, °ree, 1) || in TestVariableTopSetting()
1774 !ucol_equal(coll, &nul, 0, &dollar, 1) || in TestVariableTopSetting()
1775 ucol_equal(coll, &nul, 0, &zero, 1) || in TestVariableTopSetting()
1776 ucol_greaterOrEqual(coll, &dollar, 1, &zero, 1)) { in TestVariableTopSetting()
1788 ucol_setVariableTop(coll, first, -1, &status); in TestVariableTopSetting()
1799 ucol_restoreVariableTop(coll, varTopOriginal, &status); in TestVariableTopSetting()
1800 if(varTopOriginal != ucol_getVariableTop(coll, &status)) { in TestVariableTopSetting()
1807 varTop1 = ucol_setVariableTop(coll, &space, 1, &status); in TestVariableTopSetting()
1808 varTop2 = ucol_getVariableTop(coll, &status); in TestVariableTopSetting()
1809 ucol_restoreVariableTop(coll, varTop2, &status); in TestVariableTopSetting()
1816 ucol_close(coll); in TestVariableTopSetting()
1825 UCollator *coll; in TestMaxVariable() local
1834 coll = ucol_open("", &status); in TestMaxVariable()
1840 oldMax = ucol_getMaxVariable(coll); in TestMaxVariable()
1842 ucol_setAttribute(coll, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status); in TestMaxVariable()
1844 ucol_setMaxVariable(coll, UCOL_REORDER_CODE_SPACE, &status); in TestMaxVariable()
1845 max = ucol_getMaxVariable(coll); in TestMaxVariable()
1848 !ucol_equal(coll, &nul, 0, &space, 1) || in TestMaxVariable()
1849 ucol_equal(coll, &nul, 0, &dot, 1) || in TestMaxVariable()
1850 ucol_equal(coll, &nul, 0, °ree, 1) || in TestMaxVariable()
1851 ucol_equal(coll, &nul, 0, &dollar, 1) || in TestMaxVariable()
1852 ucol_equal(coll, &nul, 0, &zero, 1) || in TestMaxVariable()
1853 ucol_greaterOrEqual(coll, &space, 1, &dot, 1)) { in TestMaxVariable()
1857 ucol_setMaxVariable(coll, UCOL_REORDER_CODE_PUNCTUATION, &status); in TestMaxVariable()
1858 max = ucol_getMaxVariable(coll); in TestMaxVariable()
1861 !ucol_equal(coll, &nul, 0, &space, 1) || in TestMaxVariable()
1862 !ucol_equal(coll, &nul, 0, &dot, 1) || in TestMaxVariable()
1863 ucol_equal(coll, &nul, 0, °ree, 1) || in TestMaxVariable()
1864 ucol_equal(coll, &nul, 0, &dollar, 1) || in TestMaxVariable()
1865 ucol_equal(coll, &nul, 0, &zero, 1) || in TestMaxVariable()
1866 ucol_greaterOrEqual(coll, &dot, 1, °ree, 1)) { in TestMaxVariable()
1870 ucol_setMaxVariable(coll, UCOL_REORDER_CODE_SYMBOL, &status); in TestMaxVariable()
1871 max = ucol_getMaxVariable(coll); in TestMaxVariable()
1874 !ucol_equal(coll, &nul, 0, &space, 1) || in TestMaxVariable()
1875 !ucol_equal(coll, &nul, 0, &dot, 1) || in TestMaxVariable()
1876 !ucol_equal(coll, &nul, 0, °ree, 1) || in TestMaxVariable()
1877 ucol_equal(coll, &nul, 0, &dollar, 1) || in TestMaxVariable()
1878 ucol_equal(coll, &nul, 0, &zero, 1) || in TestMaxVariable()
1879 ucol_greaterOrEqual(coll, °ree, 1, &dollar, 1)) { in TestMaxVariable()
1883 ucol_setMaxVariable(coll, UCOL_REORDER_CODE_CURRENCY, &status); in TestMaxVariable()
1884 max = ucol_getMaxVariable(coll); in TestMaxVariable()
1887 !ucol_equal(coll, &nul, 0, &space, 1) || in TestMaxVariable()
1888 !ucol_equal(coll, &nul, 0, &dot, 1) || in TestMaxVariable()
1889 !ucol_equal(coll, &nul, 0, °ree, 1) || in TestMaxVariable()
1890 !ucol_equal(coll, &nul, 0, &dollar, 1) || in TestMaxVariable()
1891 ucol_equal(coll, &nul, 0, &zero, 1) || in TestMaxVariable()
1892 ucol_greaterOrEqual(coll, &dollar, 1, &zero, 1)) { in TestMaxVariable()
1898 ucol_setMaxVariable(coll, oldMax, &status); in TestMaxVariable()
1899 if(oldMax != ucol_getMaxVariable(coll)) { in TestMaxVariable()
1905 ucol_setMaxVariable(coll, UCOL_REORDER_CODE_SPACE, &status); in TestMaxVariable()
1906 max = ucol_getMaxVariable(coll); in TestMaxVariable()
1910 ucol_close(coll); in TestMaxVariable()
1937 UCollator *coll = ucol_open("en_US", &status); in TestNonChars() local
1942 genericOrderingTestWithResult(coll, test, 35, UCOL_LESS); in TestNonChars()
1947 ucol_close(coll); in TestNonChars()
1978 UCollator *coll = ucol_open("en_US", status);
2292 UCollator *coll = NULL; in TestBeforePrefixFailure()
2296 coll = ucol_openRules(string, uStringLen, UCOL_DEFAULT, UCOL_DEFAULT, NULL, &status); in TestBeforePrefixFailure()
2299 it = ucol_openElements(coll, string, 0, &status); in TestBeforePrefixFailure()
2314 ucol_close(coll); in TestBeforePrefixFailure()
2335 UCollator *coll = NULL; in TestPrefixCompose() local
2339 coll = ucol_openRules(string, uStringLen, UCOL_DEFAULT, UCOL_DEFAULT, NULL, &status); in TestPrefixCompose()
2340 ucol_close(coll); in TestPrefixCompose()
2541 UCollator *coll = ucol_open("", &status);
2565 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
2567 resU16 = ucol_strcollIter(coll, &iterU161, &iterU162, &status);
2568 resU8 = ucol_strcollIter(coll, &iterU81, &iterU82, &status);
2575 ucol_close(coll);
2611 UCollator *coll = ucol_open("", &status); in Alexis2() local
2619 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in Alexis2()
2625 resU16 = ucol_strcoll(coll, U16Source, U16LenS, U16Target, U16LenT); in Alexis2()
2638 resU16BE = ucol_strcollIter(coll, &U16BEItS, &U16BEItT, &status); in Alexis2()
2652 resU8 = ucol_strcollIter(coll, &U8ItS, &U8ItT, &status); in Alexis2()
2660 ucol_close(coll); in Alexis2()
2679 UCollator *coll = ucol_open("", &status); in TestHebrewUCA() local
2698 doTest(coll, utf16String[i], utf16String[j], UCOL_LESS); in TestHebrewUCA()
2702 ucol_close(coll); in TestHebrewUCA()
2716 UCollator *coll = ucol_open("", &status); in TestPartialSortKeyTermination() local
2730 pKeyLen = ucol_nextSortKeyPart(coll, &iter, state, key, 256, &status); in TestPartialSortKeyTermination()
2736 ucol_close(coll); in TestPartialSortKeyTermination()
2918 UCollator *coll = ucol_open("en", &status); in TestJ2726() local
2919 ucol_setAttribute(coll, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status); in TestJ2726()
2920 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_PRIMARY, &status); in TestJ2726()
2921 doTest(coll, a, aSpace, UCOL_EQUAL); in TestJ2726()
2922 doTest(coll, aSpace, a, UCOL_EQUAL); in TestJ2726()
2923 doTest(coll, a, spaceA, UCOL_EQUAL); in TestJ2726()
2924 doTest(coll, spaceA, a, UCOL_EQUAL); in TestJ2726()
2925 doTest(coll, spaceA, aSpace, UCOL_EQUAL); in TestJ2726()
2926 doTest(coll, aSpace, spaceA, UCOL_EQUAL); in TestJ2726()
2927 ucol_close(coll); in TestJ2726()
2933 UCollator *coll = ucol_openRules(r, 1, UCOL_DEFAULT, UCOL_DEFAULT, NULL, &status); in NullRule() local
2936 ucol_close(coll); in NullRule()
2940 coll = ucol_openRules(r, 0, UCOL_DEFAULT, UCOL_DEFAULT, NULL, &status); in NullRule()
2944 ucol_close(coll); in NullRule()
3042 UCollator* coll = ucol_open("root", &status); in TestNumericCollation() local
3056 ucol_setAttribute(coll, UCOL_NUMERIC_COLLATION, UCOL_ON, &status); in TestNumericCollation()
3067 …genericOrderingTestWithResult(coll, preZeroTestStrings, UPRV_LENGTHOF(preZeroTestStrings), UCOL_EQ… in TestNumericCollation()
3069 ucol_close(coll); in TestNumericCollation()
3080 UCollator *coll = ucol_open("", &status); in TestTibetanConformance() local
3084 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in TestTibetanConformance()
3088 doTest(coll, source, target, UCOL_EQUAL); in TestTibetanConformance()
3089 result = ucol_strcoll(coll, source, -1, target, -1); in TestTibetanConformance()
3095 ucol_close(coll); in TestTibetanConformance()
3323 UCollator *coll = NULL; in TestBeforeTightening() local
3328 coll = ucol_openRules(rlz, rlen, UCOL_DEFAULT, UCOL_DEFAULT,NULL, &status); in TestBeforeTightening()
3333 ucol_close(coll); in TestBeforeTightening()
3456 UCollator *coll = NULL; in TestTailorNULL() local
3460 coll = ucol_openRules(rlz, rlen, UCOL_DEFAULT, UCOL_DEFAULT,NULL, &status); in TestTailorNULL()
3465 res = ucol_strcoll(coll, &a, 1, &null, 1); in TestTailorNULL()
3472 ucol_close(coll); in TestTailorNULL()
3513 static UCollator *coll = NULL; in TestJ5223() local
3514 coll = ucol_open("root", &status); in TestJ5223()
3519 ucol_setStrength(coll, UCOL_PRIMARY); in TestJ5223()
3520 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_PRIMARY, &status); in TestJ5223()
3521 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in TestJ5223()
3526 sortkey_length = ucol_getSortKey(coll, ustr, ustr_length, NULL, 0); in TestJ5223()
3533 sortkey_length = ucol_getSortKey(coll, ustr, ustr_length, sortkey, in TestJ5223()
3545 sortkey_length = ucol_getSortKey(coll, ustr, ustr_length, sortkey, in TestJ5223()
3553 ucol_close(coll); in TestJ5223()
3581 UCollator *coll =NULL; in TestVI5913() local
3633 coll = ucol_open("vi", &status); in TestVI5913()
3639 if ( !ucol_equal(coll, tData[0], u_strlen(tData[0]), tData[2], u_strlen(tData[2])) ) { in TestVI5913()
3642 if ( !ucol_equal(coll, tData[0], u_strlen(tData[0]), tData[3], u_strlen(tData[3])) ) { in TestVI5913()
3645 if ( !ucol_equal(coll, tData[5], u_strlen(tData[5]), tData[4], u_strlen(tData[4])) ) { in TestVI5913()
3648 if ( !ucol_equal(coll, tData[7], u_strlen(tData[7]), tData[6], u_strlen(tData[6])) ) { in TestVI5913()
3655 rLen = ucol_getSortKey(coll, tData[j], tLen, resColl, 100); in TestVI5913()
3661 ucol_close(coll); in TestVI5913()
3664 coll = ucol_open("ro", &status); in TestVI5913()
3666 if ( !ucol_equal(coll, tData[0], u_strlen(tData[0]), tData[1], u_strlen(tData[1])) ) { in TestVI5913()
3669 if ( !ucol_equal(coll, tData[4], u_strlen(tData[4]), tData[5], u_strlen(tData[5])) ) { in TestVI5913()
3672 if ( !ucol_equal(coll, tData[6], u_strlen(tData[6]), tData[7], u_strlen(tData[7])) ) { in TestVI5913()
3679 rLen = ucol_getSortKey(coll, tData[j], tLen, resColl, 100); in TestVI5913()
3684 ucol_close(coll); in TestVI5913()
3689 coll = ucol_openRules(rule, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestVI5913()
3697 if ( !ucol_equal(coll, tailorData[0], sLen, tailorData[j], tLen)) { in TestVI5913()
3703 kLen=ucol_getSortKey(coll, tailorData[0], tLen, expColl, 100); in TestVI5913()
3706 rLen = ucol_getSortKey(coll, tailorData[j], tLen, resColl, 100); in TestVI5913()
3714 ucol_close(coll); in TestVI5913()
3718 coll = ucol_openRules(rule2, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestVI5913()
3720 kLen=ucol_getSortKey(coll, tailorData2[0], tLen, expColl, 100); in TestVI5913()
3723 rLen = ucol_getSortKey(coll, tailorData2[j], tLen, resColl, 100); in TestVI5913()
3731 ucol_close(coll); in TestVI5913()
3735 coll = ucol_openRules(rule3, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestVI5913()
3737 kLen=ucol_getSortKey(coll, tailorData3[3], tLen, expColl, 100); in TestVI5913()
3744 rLen = ucol_getSortKey(coll, tailorData3[j], tLen, resColl, 100); in TestVI5913()
3758 ucol_close(coll); in TestVI5913()
3766 UCollator *coll =NULL; in TestTailor6179() local
3811 coll = ucol_openRules(rule1, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestTailor6179()
3817 rLen = ucol_getSortKey(coll, tData1[0], tLen, resColl, 100); in TestTailor6179()
3826 rLen = ucol_getSortKey(coll, tData1[1], tLen, resColl, 100); in TestTailor6179()
3834 ucol_close(coll); in TestTailor6179()
3840 coll = ucol_openRules(rule2, ruleLen, UCOL_OFF, UCOL_TERTIARY, &parseError, &status); in TestTailor6179()
3848 rLen = ucol_getSortKey(coll, tData2[0], tLen, resColl, 100); in TestTailor6179()
3857 rLen = ucol_getSortKey(coll, tData2[1], tLen, resColl, 100); in TestTailor6179()
3865 ucol_close(coll); in TestTailor6179()
3873 UCollator *coll =NULL; in TestUCAPrecontext() local
3895 coll = ucol_open("en", &status); in TestUCAPrecontext()
3902 rLen = ucol_getSortKey(coll, tData1[j], tLen, resColl, 100); in TestUCAPrecontext()
3913 ucol_close(coll); in TestUCAPrecontext()
3917 coll = ucol_open("ja", &status); in TestUCAPrecontext()
3924 rLen = ucol_getSortKey(coll, tData1[j], tLen, resColl, 100); in TestUCAPrecontext()
3935 ucol_close(coll); in TestUCAPrecontext()
3940 coll = ucol_openRules(rule1, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestUCAPrecontext()
3947 rLen = ucol_getSortKey(coll, tData1[j], tLen, resColl, 100); in TestUCAPrecontext()
3958 ucol_close(coll); in TestUCAPrecontext()
3963 coll = ucol_openRules(rule2, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestUCAPrecontext()
3970 rLen = ucol_getSortKey(coll, tData1[j], tLen, resColl, 100); in TestUCAPrecontext()
3985 ucol_close(coll); in TestUCAPrecontext()
3997 static UCollator *coll = NULL; in TestOutOfBuffer5468() local
3999 coll = ucol_open("root", &status); in TestOutOfBuffer5468()
4004 ucol_setStrength(coll, UCOL_PRIMARY); in TestOutOfBuffer5468()
4005 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_PRIMARY, &status); in TestOutOfBuffer5468()
4006 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in TestOutOfBuffer5468()
4012 sortkey_length = ucol_getSortKey(coll, ustr, ustr_length, shortKeyBuf, sizeof(shortKeyBuf)); in TestOutOfBuffer5468()
4017 ucol_close(coll); in TestOutOfBuffer5468()
5838 UCollator *coll; in TestNextSortKeyPartJaIdentical() local
5844 coll = ucol_open("ja", &status); in TestNextSortKeyPartJaIdentical()
5845 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_IDENTICAL, &status); in TestNextSortKeyPartJaIdentical()
5854 keyPartLen = ucol_nextSortKeyPart(coll, &iter, state, keyPart, KEY_PART_SIZE, &status); in TestNextSortKeyPartJaIdentical()
5861 ucol_close(coll); in TestNextSortKeyPartJaIdentical()