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()
628 if(!ucol_equal(coll, t[u]->NFC, -1, t[u]->NFD, -1)) { in TestComposeDecompose()
630 doTest(coll, t[u]->NFC, t[u]->NFD, UCOL_EQUAL); in TestComposeDecompose()
650 ucol_close(coll); in TestComposeDecompose()
667 coll = ucol_open(locName, &status); in TestComposeDecompose()
668 ucol_setStrength(coll, UCOL_IDENTICAL); in TestComposeDecompose()
669 iter = ucol_openElements(coll, t[u]->NFD, u_strlen(t[u]->NFD), &status); in TestComposeDecompose()
672 if(!ucol_equal(coll, t[u]->NFC, -1, t[u]->NFD, -1)) { in TestComposeDecompose()
674 doTest(coll, t[u]->NFC, t[u]->NFD, UCOL_EQUAL); in TestComposeDecompose()
684 ucol_close(coll); in TestComposeDecompose()
696 UCollator *coll = ucol_openRules(rulez, 0, UCOL_OFF, UCOL_TERTIARY,NULL, &status); in TestEmptyRule() local
698 ucol_close(coll); in TestEmptyRule()
707 UCollator *coll = ucol_open("", &status); in TestUCARules() local
715 ruleLen = ucol_getRulesEx(coll, UCOL_FULL_RULES, rules, 256); in TestUCARules()
720 ruleLen = ucol_getRulesEx(coll, UCOL_FULL_RULES, rules, ruleLen); in TestUCARules()
733 ucol_close(coll); in TestUCARules()
972 UCollator *coll; in TestIncrementalNormalize() local
988 coll = ucol_open("en_US", &status); in TestIncrementalNormalize()
996 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in TestIncrementalNormalize()
1012 ucol_setStrength(coll, UCOL_TERTIARY); /* Do test with default strength, which runs*/ in TestIncrementalNormalize()
1013 doTest(coll, strA, strB, UCOL_EQUAL); /* optimized functions in the impl*/ in TestIncrementalNormalize()
1014 ucol_setStrength(coll, UCOL_IDENTICAL); /* Do again with the slow, general impl.*/ in TestIncrementalNormalize()
1015 doTest(coll, strA, strB, UCOL_EQUAL); in TestIncrementalNormalize()
1028 ucol_setStrength(coll, UCOL_TERTIARY); in TestIncrementalNormalize()
1029 doTest(coll, strA, strB, UCOL_EQUAL); in TestIncrementalNormalize()
1042 ucol_setStrength(coll, UCOL_TERTIARY); in TestIncrementalNormalize()
1043 doTest(coll, strA, strB, UCOL_GREATER); in TestIncrementalNormalize()
1059 result = ucol_strcoll(coll, strA, 3, strB, 3); in TestIncrementalNormalize()
1063 result = ucol_strcoll(coll, strA, -1, strB, -1); in TestIncrementalNormalize()
1068 ucol_getSortKey(coll, strA, 3, (uint8_t *)sortKeyA, sizeof(sortKeyA)); in TestIncrementalNormalize()
1069 ucol_getSortKey(coll, strA, -1, (uint8_t *)sortKeyAz, sizeof(sortKeyAz)); in TestIncrementalNormalize()
1070 ucol_getSortKey(coll, strB, 3, (uint8_t *)sortKeyB, sizeof(sortKeyB)); in TestIncrementalNormalize()
1071 ucol_getSortKey(coll, strB, -1, (uint8_t *)sortKeyBz, sizeof(sortKeyBz)); in TestIncrementalNormalize()
1086 ucol_setStrength(coll, UCOL_IDENTICAL); in TestIncrementalNormalize()
1087 ucol_getSortKey(coll, strA, 3, (uint8_t *)sortKeyA, sizeof(sortKeyA)); in TestIncrementalNormalize()
1088 ucol_getSortKey(coll, strA, -1, (uint8_t *)sortKeyAz, sizeof(sortKeyAz)); in TestIncrementalNormalize()
1089 ucol_getSortKey(coll, strB, 3, (uint8_t *)sortKeyB, sizeof(sortKeyB)); in TestIncrementalNormalize()
1090 ucol_getSortKey(coll, strB, -1, (uint8_t *)sortKeyBz, sizeof(sortKeyBz)); in TestIncrementalNormalize()
1104 ucol_setStrength(coll, UCOL_TERTIARY); in TestIncrementalNormalize()
1119 result = ucol_strcoll(coll, strA, 6, strB, 6); in TestIncrementalNormalize()
1123 result = ucol_strcoll(coll, strA, -1, strB, -1); in TestIncrementalNormalize()
1128 ucol_getSortKey(coll, strA, 6, (uint8_t *)sortKeyA, sizeof(sortKeyA)); in TestIncrementalNormalize()
1129 ucol_getSortKey(coll, strA, -1, (uint8_t *)sortKeyAz, sizeof(sortKeyAz)); in TestIncrementalNormalize()
1130 ucol_getSortKey(coll, strB, 6, (uint8_t *)sortKeyB, sizeof(sortKeyB)); in TestIncrementalNormalize()
1131 ucol_getSortKey(coll, strB, -1, (uint8_t *)sortKeyBz, sizeof(sortKeyBz)); in TestIncrementalNormalize()
1146 ucol_setStrength(coll, UCOL_IDENTICAL); in TestIncrementalNormalize()
1147 ucol_getSortKey(coll, strA, 6, (uint8_t *)sortKeyA, sizeof(sortKeyA)); in TestIncrementalNormalize()
1148 ucol_getSortKey(coll, strA, -1, (uint8_t *)sortKeyAz, sizeof(sortKeyAz)); in TestIncrementalNormalize()
1149 ucol_getSortKey(coll, strB, 6, (uint8_t *)sortKeyB, sizeof(sortKeyB)); in TestIncrementalNormalize()
1150 ucol_getSortKey(coll, strB, -1, (uint8_t *)sortKeyBz, sizeof(sortKeyBz)); in TestIncrementalNormalize()
1164 ucol_setStrength(coll, UCOL_TERTIARY); in TestIncrementalNormalize()
1174 result = ucol_strcoll(coll, strA, 5, strB, 5); in TestIncrementalNormalize()
1178 result = ucol_strcoll(coll, strA, -1, strB, -1); in TestIncrementalNormalize()
1184 ucol_close(coll); in TestIncrementalNormalize()
1240 UCollator *coll = ucol_openRules(rlz, rlen, UCOL_DEFAULT, UCOL_DEFAULT,NULL, &status); in TestHangulTailoring() local
1252 genericOrderingTest(coll, koreanData, UPRV_LENGTHOF(koreanData)); in TestHangulTailoring()
1257 ucol_close(coll); in TestHangulTailoring()
1278 UCollator *coll; in TestCompressOverlap() local
1284 coll = ucol_open("", &status); in TestCompressOverlap()
1304 resultlen = ucol_getSortKey(coll, secstr, 150, result, UPRV_LENGTHOF(result)); in TestCompressOverlap()
1318 resultlen = ucol_getSortKey(coll, tertstr, 150, result, UPRV_LENGTHOF(result)); in TestCompressOverlap()
1332 resultlen = ucol_getSortKey(coll, secstr, 150, result, UPRV_LENGTHOF(result)); in TestCompressOverlap()
1345 resultlen = ucol_getSortKey(coll, tertstr, 150, result, UPRV_LENGTHOF(result)); in TestCompressOverlap()
1356 ucol_close(coll); in TestCompressOverlap()
1435 UCollator *coll; in TestContraction() local
1445 coll = ucol_openRules(rule, rlen, UCOL_ON, UCOL_TERTIARY,NULL, &status); in TestContraction()
1450 iter1 = ucol_openElements(coll, testdata[i], 2, &status); in TestContraction()
1456 UCollationElements *iter2 = ucol_openElements(coll, in TestContraction()
1480 ucol_close(coll); in TestContraction()
1484 coll = ucol_openRules(rule, rlen, UCOL_ON, UCOL_TERTIARY,NULL, &status); in TestContraction()
1485 if (ucol_strcoll(coll, testdata2[0], 2, testdata2[1], 2) != UCOL_LESS) { in TestContraction()
1491 if (ucol_strcoll(coll, testdata2[1], 2, testdata2[2], 2) != UCOL_LESS) { in TestContraction()
1497 ucol_close(coll); in TestContraction()
1578 UCollator *coll; in TestExpansion() local
1587 coll = ucol_openRules(rule, rlen, UCOL_ON, UCOL_TERTIARY,NULL, &status); in TestExpansion()
1594 doTest(coll, testdata[j], testdata[j + 1], UCOL_LESS); in TestExpansion()
1596 ucol_close(coll); in TestExpansion()
1700 UCollator *coll = ucol_open("", &status); in TestBocsuCoverage() local
1702 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_IDENTICAL, &status); in TestBocsuCoverage()
1704 klen = ucol_getSortKey(coll, test, tlen, key, 256); in TestBocsuCoverage()
1707 ucol_close(coll); in TestBocsuCoverage()
1716 UCollator *coll = ucol_open("", &status); in TestVariableTopSetting() local
1726 varTopOriginal = ucol_getVariableTop(coll, &status); in TestVariableTopSetting()
1728 ucol_setAttribute(coll, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status); in TestVariableTopSetting()
1730 varTop1 = ucol_setVariableTop(coll, &space, 1, &status); in TestVariableTopSetting()
1731 varTop2 = ucol_getVariableTop(coll, &status); in TestVariableTopSetting()
1734 !ucol_equal(coll, &nul, 0, &space, 1) || in TestVariableTopSetting()
1735 ucol_equal(coll, &nul, 0, &dot, 1) || in TestVariableTopSetting()
1736 ucol_equal(coll, &nul, 0, °ree, 1) || in TestVariableTopSetting()
1737 ucol_equal(coll, &nul, 0, &dollar, 1) || in TestVariableTopSetting()
1738 ucol_equal(coll, &nul, 0, &zero, 1) || in TestVariableTopSetting()
1739 ucol_greaterOrEqual(coll, &space, 1, &dot, 1)) { in TestVariableTopSetting()
1743 varTop1 = ucol_setVariableTop(coll, &dot, 1, &status); in TestVariableTopSetting()
1744 varTop2 = ucol_getVariableTop(coll, &status); in TestVariableTopSetting()
1747 !ucol_equal(coll, &nul, 0, &space, 1) || in TestVariableTopSetting()
1748 !ucol_equal(coll, &nul, 0, &dot, 1) || in TestVariableTopSetting()
1749 ucol_equal(coll, &nul, 0, °ree, 1) || in TestVariableTopSetting()
1750 ucol_equal(coll, &nul, 0, &dollar, 1) || in TestVariableTopSetting()
1751 ucol_equal(coll, &nul, 0, &zero, 1) || in TestVariableTopSetting()
1752 ucol_greaterOrEqual(coll, &dot, 1, °ree, 1)) { in TestVariableTopSetting()
1756 varTop1 = ucol_setVariableTop(coll, °ree, 1, &status); in TestVariableTopSetting()
1757 varTop2 = ucol_getVariableTop(coll, &status); in TestVariableTopSetting()
1760 !ucol_equal(coll, &nul, 0, &space, 1) || in TestVariableTopSetting()
1761 !ucol_equal(coll, &nul, 0, &dot, 1) || in TestVariableTopSetting()
1762 !ucol_equal(coll, &nul, 0, °ree, 1) || in TestVariableTopSetting()
1763 ucol_equal(coll, &nul, 0, &dollar, 1) || in TestVariableTopSetting()
1764 ucol_equal(coll, &nul, 0, &zero, 1) || in TestVariableTopSetting()
1765 ucol_greaterOrEqual(coll, °ree, 1, &dollar, 1)) { in TestVariableTopSetting()
1769 varTop1 = ucol_setVariableTop(coll, &dollar, 1, &status); in TestVariableTopSetting()
1770 varTop2 = ucol_getVariableTop(coll, &status); in TestVariableTopSetting()
1773 !ucol_equal(coll, &nul, 0, &space, 1) || in TestVariableTopSetting()
1774 !ucol_equal(coll, &nul, 0, &dot, 1) || in TestVariableTopSetting()
1775 !ucol_equal(coll, &nul, 0, °ree, 1) || in TestVariableTopSetting()
1776 !ucol_equal(coll, &nul, 0, &dollar, 1) || in TestVariableTopSetting()
1777 ucol_equal(coll, &nul, 0, &zero, 1) || in TestVariableTopSetting()
1778 ucol_greaterOrEqual(coll, &dollar, 1, &zero, 1)) { in TestVariableTopSetting()
1790 ucol_setVariableTop(coll, first, -1, &status); in TestVariableTopSetting()
1801 ucol_restoreVariableTop(coll, varTopOriginal, &status); in TestVariableTopSetting()
1802 if(varTopOriginal != ucol_getVariableTop(coll, &status)) { in TestVariableTopSetting()
1809 varTop1 = ucol_setVariableTop(coll, &space, 1, &status); in TestVariableTopSetting()
1810 varTop2 = ucol_getVariableTop(coll, &status); in TestVariableTopSetting()
1811 ucol_restoreVariableTop(coll, varTop2, &status); in TestVariableTopSetting()
1818 ucol_close(coll); in TestVariableTopSetting()
1827 UCollator *coll; in TestMaxVariable() local
1836 coll = ucol_open("", &status); in TestMaxVariable()
1842 oldMax = ucol_getMaxVariable(coll); in TestMaxVariable()
1844 ucol_setAttribute(coll, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status); in TestMaxVariable()
1846 ucol_setMaxVariable(coll, UCOL_REORDER_CODE_SPACE, &status); in TestMaxVariable()
1847 max = ucol_getMaxVariable(coll); in TestMaxVariable()
1850 !ucol_equal(coll, &nul, 0, &space, 1) || in TestMaxVariable()
1851 ucol_equal(coll, &nul, 0, &dot, 1) || in TestMaxVariable()
1852 ucol_equal(coll, &nul, 0, °ree, 1) || in TestMaxVariable()
1853 ucol_equal(coll, &nul, 0, &dollar, 1) || in TestMaxVariable()
1854 ucol_equal(coll, &nul, 0, &zero, 1) || in TestMaxVariable()
1855 ucol_greaterOrEqual(coll, &space, 1, &dot, 1)) { in TestMaxVariable()
1859 ucol_setMaxVariable(coll, UCOL_REORDER_CODE_PUNCTUATION, &status); in TestMaxVariable()
1860 max = ucol_getMaxVariable(coll); in TestMaxVariable()
1863 !ucol_equal(coll, &nul, 0, &space, 1) || in TestMaxVariable()
1864 !ucol_equal(coll, &nul, 0, &dot, 1) || in TestMaxVariable()
1865 ucol_equal(coll, &nul, 0, °ree, 1) || in TestMaxVariable()
1866 ucol_equal(coll, &nul, 0, &dollar, 1) || in TestMaxVariable()
1867 ucol_equal(coll, &nul, 0, &zero, 1) || in TestMaxVariable()
1868 ucol_greaterOrEqual(coll, &dot, 1, °ree, 1)) { in TestMaxVariable()
1872 ucol_setMaxVariable(coll, UCOL_REORDER_CODE_SYMBOL, &status); in TestMaxVariable()
1873 max = ucol_getMaxVariable(coll); in TestMaxVariable()
1876 !ucol_equal(coll, &nul, 0, &space, 1) || in TestMaxVariable()
1877 !ucol_equal(coll, &nul, 0, &dot, 1) || in TestMaxVariable()
1878 !ucol_equal(coll, &nul, 0, °ree, 1) || in TestMaxVariable()
1879 ucol_equal(coll, &nul, 0, &dollar, 1) || in TestMaxVariable()
1880 ucol_equal(coll, &nul, 0, &zero, 1) || in TestMaxVariable()
1881 ucol_greaterOrEqual(coll, °ree, 1, &dollar, 1)) { in TestMaxVariable()
1885 ucol_setMaxVariable(coll, UCOL_REORDER_CODE_CURRENCY, &status); in TestMaxVariable()
1886 max = ucol_getMaxVariable(coll); in TestMaxVariable()
1889 !ucol_equal(coll, &nul, 0, &space, 1) || in TestMaxVariable()
1890 !ucol_equal(coll, &nul, 0, &dot, 1) || in TestMaxVariable()
1891 !ucol_equal(coll, &nul, 0, °ree, 1) || in TestMaxVariable()
1892 !ucol_equal(coll, &nul, 0, &dollar, 1) || in TestMaxVariable()
1893 ucol_equal(coll, &nul, 0, &zero, 1) || in TestMaxVariable()
1894 ucol_greaterOrEqual(coll, &dollar, 1, &zero, 1)) { in TestMaxVariable()
1900 ucol_setMaxVariable(coll, oldMax, &status); in TestMaxVariable()
1901 if(oldMax != ucol_getMaxVariable(coll)) { in TestMaxVariable()
1907 ucol_setMaxVariable(coll, UCOL_REORDER_CODE_SPACE, &status); in TestMaxVariable()
1908 max = ucol_getMaxVariable(coll); in TestMaxVariable()
1912 ucol_close(coll); in TestMaxVariable()
1939 UCollator *coll = ucol_open("en_US", &status); in TestNonChars() local
1944 genericOrderingTestWithResult(coll, test, 35, UCOL_LESS); in TestNonChars()
1949 ucol_close(coll); in TestNonChars()
1980 UCollator *coll = ucol_open("en_US", status);
2294 UCollator *coll = NULL; in TestBeforePrefixFailure()
2298 coll = ucol_openRules(string, uStringLen, UCOL_DEFAULT, UCOL_DEFAULT, NULL, &status); in TestBeforePrefixFailure()
2301 it = ucol_openElements(coll, string, 0, &status); in TestBeforePrefixFailure()
2316 ucol_close(coll); in TestBeforePrefixFailure()
2337 UCollator *coll = NULL; in TestPrefixCompose() local
2341 coll = ucol_openRules(string, uStringLen, UCOL_DEFAULT, UCOL_DEFAULT, NULL, &status); in TestPrefixCompose()
2342 ucol_close(coll); in TestPrefixCompose()
2543 UCollator *coll = ucol_open("", &status);
2567 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
2569 resU16 = ucol_strcollIter(coll, &iterU161, &iterU162, &status);
2570 resU8 = ucol_strcollIter(coll, &iterU81, &iterU82, &status);
2577 ucol_close(coll);
2613 UCollator *coll = ucol_open("", &status); in Alexis2() local
2621 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in Alexis2()
2627 resU16 = ucol_strcoll(coll, U16Source, U16LenS, U16Target, U16LenT); in Alexis2()
2640 resU16BE = ucol_strcollIter(coll, &U16BEItS, &U16BEItT, &status); in Alexis2()
2654 resU8 = ucol_strcollIter(coll, &U8ItS, &U8ItT, &status); in Alexis2()
2662 ucol_close(coll); in Alexis2()
2681 UCollator *coll = ucol_open("", &status); in TestHebrewUCA() local
2700 doTest(coll, utf16String[i], utf16String[j], UCOL_LESS); in TestHebrewUCA()
2704 ucol_close(coll); in TestHebrewUCA()
2718 UCollator *coll = ucol_open("", &status); in TestPartialSortKeyTermination() local
2732 pKeyLen = ucol_nextSortKeyPart(coll, &iter, state, key, 256, &status); in TestPartialSortKeyTermination()
2738 ucol_close(coll); in TestPartialSortKeyTermination()
2920 UCollator *coll = ucol_open("en", &status); in TestJ2726() local
2921 ucol_setAttribute(coll, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status); in TestJ2726()
2922 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_PRIMARY, &status); in TestJ2726()
2923 doTest(coll, a, aSpace, UCOL_EQUAL); in TestJ2726()
2924 doTest(coll, aSpace, a, UCOL_EQUAL); in TestJ2726()
2925 doTest(coll, a, spaceA, UCOL_EQUAL); in TestJ2726()
2926 doTest(coll, spaceA, a, UCOL_EQUAL); in TestJ2726()
2927 doTest(coll, spaceA, aSpace, UCOL_EQUAL); in TestJ2726()
2928 doTest(coll, aSpace, spaceA, UCOL_EQUAL); in TestJ2726()
2929 ucol_close(coll); in TestJ2726()
2935 UCollator *coll = ucol_openRules(r, 1, UCOL_DEFAULT, UCOL_DEFAULT, NULL, &status); in NullRule() local
2938 ucol_close(coll); in NullRule()
2942 coll = ucol_openRules(r, 0, UCOL_DEFAULT, UCOL_DEFAULT, NULL, &status); in NullRule()
2946 ucol_close(coll); in NullRule()
3044 UCollator* coll = ucol_open("root", &status); in TestNumericCollation() local
3058 ucol_setAttribute(coll, UCOL_NUMERIC_COLLATION, UCOL_ON, &status); in TestNumericCollation()
3069 …genericOrderingTestWithResult(coll, preZeroTestStrings, UPRV_LENGTHOF(preZeroTestStrings), UCOL_EQ… in TestNumericCollation()
3071 ucol_close(coll); in TestNumericCollation()
3082 UCollator *coll = ucol_open("", &status); in TestTibetanConformance() local
3086 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in TestTibetanConformance()
3090 doTest(coll, source, target, UCOL_EQUAL); in TestTibetanConformance()
3091 result = ucol_strcoll(coll, source, -1, target, -1); in TestTibetanConformance()
3097 ucol_close(coll); in TestTibetanConformance()
3325 UCollator *coll = NULL; in TestBeforeTightening() local
3330 coll = ucol_openRules(rlz, rlen, UCOL_DEFAULT, UCOL_DEFAULT,NULL, &status); in TestBeforeTightening()
3335 ucol_close(coll); in TestBeforeTightening()
3458 UCollator *coll = NULL; in TestTailorNULL() local
3462 coll = ucol_openRules(rlz, rlen, UCOL_DEFAULT, UCOL_DEFAULT,NULL, &status); in TestTailorNULL()
3467 res = ucol_strcoll(coll, &a, 1, &null, 1); in TestTailorNULL()
3474 ucol_close(coll); in TestTailorNULL()
3515 static UCollator *coll = NULL; in TestJ5223() local
3516 coll = ucol_open("root", &status); in TestJ5223()
3521 ucol_setStrength(coll, UCOL_PRIMARY); in TestJ5223()
3522 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_PRIMARY, &status); in TestJ5223()
3523 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in TestJ5223()
3528 sortkey_length = ucol_getSortKey(coll, ustr, ustr_length, NULL, 0); in TestJ5223()
3535 sortkey_length = ucol_getSortKey(coll, ustr, ustr_length, sortkey, in TestJ5223()
3547 sortkey_length = ucol_getSortKey(coll, ustr, ustr_length, sortkey, in TestJ5223()
3555 ucol_close(coll); in TestJ5223()
3583 UCollator *coll =NULL; in TestVI5913() local
3635 coll = ucol_open("vi", &status); in TestVI5913()
3641 if ( !ucol_equal(coll, tData[0], u_strlen(tData[0]), tData[2], u_strlen(tData[2])) ) { in TestVI5913()
3644 if ( !ucol_equal(coll, tData[0], u_strlen(tData[0]), tData[3], u_strlen(tData[3])) ) { in TestVI5913()
3647 if ( !ucol_equal(coll, tData[5], u_strlen(tData[5]), tData[4], u_strlen(tData[4])) ) { in TestVI5913()
3650 if ( !ucol_equal(coll, tData[7], u_strlen(tData[7]), tData[6], u_strlen(tData[6])) ) { in TestVI5913()
3657 rLen = ucol_getSortKey(coll, tData[j], tLen, resColl, 100); in TestVI5913()
3663 ucol_close(coll); in TestVI5913()
3666 coll = ucol_open("ro", &status); in TestVI5913()
3668 if ( !ucol_equal(coll, tData[0], u_strlen(tData[0]), tData[1], u_strlen(tData[1])) ) { in TestVI5913()
3671 if ( !ucol_equal(coll, tData[4], u_strlen(tData[4]), tData[5], u_strlen(tData[5])) ) { in TestVI5913()
3674 if ( !ucol_equal(coll, tData[6], u_strlen(tData[6]), tData[7], u_strlen(tData[7])) ) { in TestVI5913()
3681 rLen = ucol_getSortKey(coll, tData[j], tLen, resColl, 100); in TestVI5913()
3686 ucol_close(coll); in TestVI5913()
3691 coll = ucol_openRules(rule, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestVI5913()
3699 if ( !ucol_equal(coll, tailorData[0], sLen, tailorData[j], tLen)) { in TestVI5913()
3705 kLen=ucol_getSortKey(coll, tailorData[0], tLen, expColl, 100); in TestVI5913()
3708 rLen = ucol_getSortKey(coll, tailorData[j], tLen, resColl, 100); in TestVI5913()
3716 ucol_close(coll); in TestVI5913()
3720 coll = ucol_openRules(rule2, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestVI5913()
3722 kLen=ucol_getSortKey(coll, tailorData2[0], tLen, expColl, 100); in TestVI5913()
3725 rLen = ucol_getSortKey(coll, tailorData2[j], tLen, resColl, 100); in TestVI5913()
3733 ucol_close(coll); in TestVI5913()
3737 coll = ucol_openRules(rule3, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestVI5913()
3739 kLen=ucol_getSortKey(coll, tailorData3[3], tLen, expColl, 100); in TestVI5913()
3746 rLen = ucol_getSortKey(coll, tailorData3[j], tLen, resColl, 100); in TestVI5913()
3760 ucol_close(coll); in TestVI5913()
3768 UCollator *coll =NULL; in TestTailor6179() local
3813 coll = ucol_openRules(rule1, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestTailor6179()
3819 rLen = ucol_getSortKey(coll, tData1[0], tLen, resColl, 100); in TestTailor6179()
3828 rLen = ucol_getSortKey(coll, tData1[1], tLen, resColl, 100); in TestTailor6179()
3836 ucol_close(coll); in TestTailor6179()
3842 coll = ucol_openRules(rule2, ruleLen, UCOL_OFF, UCOL_TERTIARY, &parseError, &status); in TestTailor6179()
3850 rLen = ucol_getSortKey(coll, tData2[0], tLen, resColl, 100); in TestTailor6179()
3859 rLen = ucol_getSortKey(coll, tData2[1], tLen, resColl, 100); in TestTailor6179()
3867 ucol_close(coll); in TestTailor6179()
3875 UCollator *coll =NULL; in TestUCAPrecontext() local
3897 coll = ucol_open("en", &status); in TestUCAPrecontext()
3904 rLen = ucol_getSortKey(coll, tData1[j], tLen, resColl, 100); in TestUCAPrecontext()
3915 ucol_close(coll); in TestUCAPrecontext()
3919 coll = ucol_open("ja", &status); in TestUCAPrecontext()
3926 rLen = ucol_getSortKey(coll, tData1[j], tLen, resColl, 100); in TestUCAPrecontext()
3937 ucol_close(coll); in TestUCAPrecontext()
3942 coll = ucol_openRules(rule1, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestUCAPrecontext()
3949 rLen = ucol_getSortKey(coll, tData1[j], tLen, resColl, 100); in TestUCAPrecontext()
3960 ucol_close(coll); in TestUCAPrecontext()
3965 coll = ucol_openRules(rule2, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status); in TestUCAPrecontext()
3972 rLen = ucol_getSortKey(coll, tData1[j], tLen, resColl, 100); in TestUCAPrecontext()
3987 ucol_close(coll); in TestUCAPrecontext()
3999 static UCollator *coll = NULL; in TestOutOfBuffer5468() local
4001 coll = ucol_open("root", &status); in TestOutOfBuffer5468()
4006 ucol_setStrength(coll, UCOL_PRIMARY); in TestOutOfBuffer5468()
4007 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_PRIMARY, &status); in TestOutOfBuffer5468()
4008 ucol_setAttribute(coll, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in TestOutOfBuffer5468()
4014 sortkey_length = ucol_getSortKey(coll, ustr, ustr_length, shortKeyBuf, sizeof(shortKeyBuf)); in TestOutOfBuffer5468()
4019 ucol_close(coll); in TestOutOfBuffer5468()
5840 UCollator *coll; in TestNextSortKeyPartJaIdentical() local
5846 coll = ucol_open("ja", &status); in TestNextSortKeyPartJaIdentical()
5847 ucol_setAttribute(coll, UCOL_STRENGTH, UCOL_IDENTICAL, &status); in TestNextSortKeyPartJaIdentical()
5856 keyPartLen = ucol_nextSortKeyPart(coll, &iter, state, keyPart, KEY_PART_SIZE, &status); in TestNextSortKeyPartJaIdentical()
5863 ucol_close(coll); in TestNextSortKeyPartJaIdentical()