Home | History | Annotate | Download | only in cintltst

Lines Matching refs:coll

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