Lines Matching defs:myCollation
265 UCollator *myCollation;
266 myCollation = ucol_open("en_US", &status);
272 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
273 ucol_setStrength(myCollation, UCOL_TERTIARY);
276 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]);
278 ucol_close(myCollation);
864 UCollator *myCollation;
865 myCollation = ucol_open("en_US", &status);
872 ucol_setStrength(myCollation, UCOL_TERTIARY);
875 ucol_setAttribute(myCollation, UCOL_CASE_FIRST, caseTestAttributes[k][0], &status);
876 ucol_setAttribute(myCollation, UCOL_CASE_LEVEL, caseTestAttributes[k][1], &status);
880 doTest(myCollation, testCase[i], testCase[j], caseTestResults[k][3*i+j-1]);
884 ucol_close(myCollation);
886 myCollation = ucol_openRules(gRules, u_strlen(gRules), UCOL_OFF, UCOL_TERTIARY,NULL, &status);
892 ucol_setStrength(myCollation, UCOL_TERTIARY);
895 ucol_setAttribute(myCollation, UCOL_CASE_FIRST, caseTestAttributes[k][0], &status);
896 ucol_setAttribute(myCollation, UCOL_CASE_LEVEL, caseTestAttributes[k][1], &status);
900 doTest(myCollation, testCase[i], testCase[j], caseTestResults[k][3*i+j-1]);
901 iter=ucol_openElements(myCollation, testCase[i], u_strlen(testCase[i]), &status);
904 iter=ucol_openElements(myCollation, testCase[j], u_strlen(testCase[j]), &status);
910 ucol_close(myCollation);
4222 UCollator *myCollation;
4231 myCollation = ucol_openRules(rule, length, UCOL_ON, UCOL_TERTIARY, &parse_error, &status);
4241 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
4242 ucol_setStrength(myCollation, UCOL_TERTIARY);
4244 doTest(myCollation,
4250 ucol_close(myCollation);
4510 UCollator *myCollation;
4519 myCollation = ucol_openRules(rule, length, UCOL_ON, UCOL_TERTIARY, &parse_error, &status);
4520 (void)myCollation; /* Suppress set but not used warning. */
4536 UCollator *myCollation;
4566 myCollation = ucol_openRules(rules, rulesLength, UCOL_ON, UCOL_TERTIARY, &error, &status);
4573 collResult = ucol_strcoll(myCollation, base, baseLen, before, beforeLen);
4579 baseKeyLength = ucol_getSortKey(myCollation, base, baseLen, baseKey, 256);
4580 beforeKeyLength = ucol_getSortKey(myCollation, before, beforeLen, beforeKey, 256);
4586 ucol_setReorderCodes(myCollation, reorderCodes, 1, &status);
4593 collResult = ucol_strcoll(myCollation, base, baseLen, before, beforeLen);
4599 ucol_getSortKey(myCollation, base, baseLen, baseKey, 256);
4600 ucol_getSortKey(myCollation, before, beforeLen, beforeKey, 256);
4605 ucol_close(myCollation);
4614 UCollator *myCollation;
4630 myCollation = ucol_open("", &status);
4631 ucol_setStrength(myCollation, UCOL_TERTIARY);
4636 baseKeyLength = ucol_getSortKey(myCollation, testString, LEN(testString), baseKey, 256);
4638 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status);
4643 reorderKeyLength = ucol_getSortKey(myCollation, testString, LEN(testString), reorderKey, 256);
4656 ucol_close(myCollation);
4659 myCollation = ucol_open("", &status);
4660 ucol_setStrength(myCollation, UCOL_QUATERNARY);
4665 myCollation, testString, LEN(testString), baseKey, 256);
4667 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status);
4672 reorderKeyLength = ucol_getSortKey(myCollation, testString, LEN(testString), reorderKey, 256);
4685 ucol_close(myCollation);
4694 UCollator *myCollation;
4709 myCollation = ucol_open("", &status);
4710 ucol_setStrength(myCollation, UCOL_TERTIARY);
4717 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status);
4724 retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, NULL, 0, &status);
4735 retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, retrievedReorderCodes, LEN(retrievedReorderCodes), &status);
4750 collResult = ucol_strcoll(myCollation, greekString, LEN(greekString), punctuationString, LEN(punctuationString));
4757 ucol_setReorderCodes(myCollation, NULL, 0, &status);
4764 retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, NULL, 0, &status);
4770 collResult = ucol_strcoll(myCollation, greekString, LEN(greekString), punctuationString, LEN(punctuationString));
4777 ucol_setReorderCodes(myCollation, &reorderCodeNone, 1, &status);
4784 retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, NULL, 0, &status);
4793 ucol_setReorderCodes(myCollation, duplicateReorderCodes, LEN(duplicateReorderCodes), &status);
4801 ucol_setReorderCodes(myCollation, reorderCodesStartingWithDefault, LEN(reorderCodesStartingWithDefault), &status);
4807 ucol_close(myCollation);
4816 UCollator *myCollation;
4833 myCollation = ucol_openRules(rules, u_strlen(rules), UCOL_DEFAULT, UCOL_TERTIARY, NULL, &status);
4840 retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, retrievedReorderCodes, LEN(retrievedReorderCodes), &status);
4855 collResult = ucol_strcoll(myCollation, greekString, LEN(greekString), hanString, LEN(hanString));
4862 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status);
4869 retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, NULL, 0, &status);
4880 retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, retrievedReorderCodes, LEN(retrievedReorderCodes), &status);
4895 collResult = ucol_strcoll(myCollation, greekString, LEN(greekString), punctuationString, LEN(punctuationString));
4902 ucol_setReorderCodes(myCollation, NULL, 0, &status);
4909 retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, NULL, 0, &status);
4915 collResult = ucol_strcoll(myCollation, greekString, LEN(greekString), punctuationString, LEN(punctuationString));
4922 ucol_setReorderCodes(myCollation, onlyDefault, 1, &status);
4927 retrievedReorderCodesLength = ucol_getReorderCodes(myCollation, retrievedReorderCodes, LEN(retrievedReorderCodes), &status);
4943 ucol_close(myCollation);
5071 UCollator *myCollation;
5081 myCollation = ucol_open("", &status);
5082 ucol_setStrength(myCollation, UCOL_TERTIARY);
5089 ucol_setReorderCodes(myCollation, reorderCodes, LEN(reorderCodes), &status);
5096 clonedCollation = ucol_safeClone(myCollation, NULL, NULL, &status);
5120 ucol_close(myCollation);
5135 UCollator *myCollation;
5137 myCollation = ucol_open("", &status);
5142 ucol_setReorderCodes(myCollation, reorderTokens, reorderTokensLen, &status);
5149 doTest(myCollation,
5155 ucol_close(myCollation);
5315 UCollator *myCollation;
5336 myCollation = ucol_open("", &status);
5338 ucol_setStrength(myCollation, UCOL_TERTIARY);
5340 ucol_setAttribute(myCollation, UCOL_NUMERIC_COLLATION, UCOL_ON, &status);
5358 fortyS_sortKey_Length = ucol_getSortKey(myCollation, fortyS, LEN(fortyS), fortyS_sortKey, 128);
5359 fortyThreeP_sortKey_Length = ucol_getSortKey(myCollation, fortyThreeP, LEN(fortyThreeP), fortyThreeP_sortKey, 128);
5367 collResult = ucol_strcoll(myCollation, fortyS, LEN(fortyS), fortyThreeP, LEN(fortyThreeP));
5386 ucol_close(myCollation);