/third_party/icu/icu4c/source/test/cintltst/ |
D | cjaptst.c | 41 static UCollator *myCollation; variable 122 myCollation = ucol_open("ja_JP", &status); in TestTertiary() 128 ucol_setStrength(myCollation, UCOL_TERTIARY); in TestTertiary() 129 ucol_setAttribute(myCollation, UCOL_CASE_LEVEL, UCOL_ON, &status); in TestTertiary() 132 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary() 134 ucol_close(myCollation); in TestTertiary() 142 myCollation = ucol_open("ja_JP", &status); in TestBase() 151 ucol_setStrength(myCollation, UCOL_PRIMARY); in TestBase() 153 doTest(myCollation, testBaseCases[i], testBaseCases[i + 1], UCOL_LESS); in TestBase() 155 ucol_close(myCollation); in TestBase() [all …]
|
D | cg7coll.c | 140 UCollator *myCollation; in TestG7Locales() local 149 myCollation = ucol_open(locale, &status); in TestG7Locales() 150 ucol_setAttribute(myCollation, UCOL_STRENGTH, UCOL_QUATERNARY, &status); in TestG7Locales() 151 ucol_setAttribute(myCollation, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status); in TestG7Locales() 156 ucol_close(myCollation); in TestG7Locales() 160 defRules = ucol_getRules(myCollation, &rlen); in TestG7Locales() 164 ucol_close(myCollation); in TestG7Locales() 172 ucol_close(myCollation); in TestG7Locales() 178 myCollation = tblColl1; in TestG7Locales() 190 doTest(myCollation, testCases[results[i][j]], testCases[results[i][n]], UCOL_LESS); in TestG7Locales() [all …]
|
D | callcoll.c | 274 static void doTestVariant(UCollator* myCollation, const UChar source[], const UChar target[], UColl… in doTestVariant() argument 285 UColAttributeValue norm = ucol_getAttribute(myCollation, UCOL_NORMALIZATION_MODE, &status); in doTestVariant() 289 compareResult = ucol_strcoll(myCollation, source, sLen, target, tLen); in doTestVariant() 294 compareResulta = ucol_strcoll(myCollation, source, -1, target, -1); in doTestVariant() 302 compareResultIter = ucol_strcollIter(myCollation, &sIter, &tIter, &status); in doTestVariant() 320 …compareResulta = ucol_strcollUTF8(myCollation, utf8Source, utf8SourceLen, utf8Target, utf8TargetLe… in doTestVariant() 328 … compareResulta = ucol_strcollUTF8(myCollation, utf8Source, -1, utf8Target, -1, &status); in doTestVariant() 344 compareResultUTF8Iter = ucol_strcollIter(myCollation, &sIter, &tIter, &status); in doTestVariant() 346 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in doTestVariant() 349 … compareResultUTF8IterNorm = ucol_strcollIter(myCollation, &sIter, &tIter, &status); in doTestVariant() [all …]
|
D | cfrtst.c | 39 static UCollator *myCollation; variable 151 myCollation = ucol_open("fr_CA", &status); in TestTertiary() 152 if(U_FAILURE(status) || !myCollation){ in TestTertiary() 157 ucol_setAttribute(myCollation, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status); in TestTertiary() 163 ucol_setStrength(myCollation, UCOL_QUATERNARY); in TestTertiary() 166 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary() 168 ucol_close(myCollation); in TestTertiary() 176 myCollation = ucol_open("fr_CA", &status); in TestSecondary() 181 ucol_setAttribute(myCollation, UCOL_STRENGTH, UCOL_SECONDARY, &status); in TestSecondary() 196 doTest(myCollation, testAcute[i], testAcute[j], expected ); in TestSecondary() [all …]
|
D | cdetst.c | 38 static UCollator *myCollation; variable 107 myCollation = ucol_open("de_DE", &status); in TestTertiary() 113 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in TestTertiary() 114 ucol_setStrength(myCollation, UCOL_TERTIARY); in TestTertiary() 117 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i][1]); in TestTertiary() 119 ucol_close(myCollation); in TestTertiary() 127 myCollation = ucol_open("de_DE", &status); in TestPrimary() 133 ucol_setStrength(myCollation, UCOL_PRIMARY); in TestPrimary() 136 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i][0]); in TestPrimary() 138 ucol_close(myCollation); in TestPrimary()
|
D | cfintst.c | 38 static UCollator *myCollation; variable 83 myCollation = ucol_open("fi_FI@collation=standard", &status); in TestTertiary() 88 ucol_setStrength(myCollation, UCOL_TERTIARY); in TestTertiary() 91 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary() 93 ucol_close(myCollation); in TestTertiary() 101 myCollation = ucol_open("fi_FI@collation=standard", &status); in TestPrimary() 106 ucol_setStrength(myCollation, UCOL_PRIMARY); in TestPrimary() 109 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary() 111 ucol_close(myCollation); in TestPrimary()
|
D | cestst.c | 38 static UCollator *myCollation; variable 92 myCollation = ucol_open("es_ES", &status); in TestTertiary() 98 ucol_setStrength(myCollation, UCOL_TERTIARY); in TestTertiary() 101 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary() 103 ucol_close(myCollation); in TestTertiary() 111 myCollation = ucol_open("es_ES", &status); in TestPrimary() 117 ucol_setStrength(myCollation, UCOL_PRIMARY); in TestPrimary() 120 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary() 122 ucol_close(myCollation); in TestPrimary()
|
D | cturtst.c | 38 static UCollator *myCollation; variable 99 myCollation = ucol_open("tr", &status); in TestTertiary() 105 ucol_setStrength(myCollation, UCOL_TERTIARY); in TestTertiary() 108 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary() 110 ucol_close(myCollation); in TestTertiary() 119 myCollation = ucol_open("tr", &status); in TestPrimary() 125 ucol_setStrength(myCollation, UCOL_PRIMARY); in TestPrimary() 128 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary() 130 ucol_close(myCollation); in TestPrimary()
|
/third_party/icu/icu4c/source/test/intltest/ |
D | jacoll.cpp | 22 : myCollation(0) in CollationKanaTest() 25 myCollation = Collator::createInstance(Locale::getJapan(), status); in CollationKanaTest() 26 if(!myCollation || U_FAILURE(status)) { in CollationKanaTest() 29 delete myCollation; in CollationKanaTest() 30 myCollation = NULL; in CollationKanaTest() 37 delete myCollation; in ~CollationKanaTest() 110 myCollation->setStrength(Collator::TERTIARY); in TestTertiary() 113 myCollation->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in TestTertiary() 114 myCollation->setAttribute(UCOL_CASE_LEVEL, UCOL_ON, status); in TestTertiary() 116 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary() [all …]
|
D | allcoll.cpp | 24 : myCollation(0) in CollationDummyTest() 35 if (myCollation != NULL) in CollationDummyTest() 37 delete myCollation; in CollationDummyTest() 39 myCollation = new RuleBasedCollator(ruleset, status); in CollationDummyTest() 42 delete myCollation; in CollationDummyTest() 43 myCollation = 0; in CollationDummyTest() 49 delete myCollation; in ~CollationDummyTest() 98 myCollation->setStrength(Collator::TERTIARY); in TestTertiary() 101 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary() 109 myCollation->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in TestPrimary() [all …]
|
D | frcoll.cpp | 30 : myCollation(0) in CollationFrenchTest() 33 myCollation = Collator::createInstance(Locale::getCanadaFrench(), status); in CollationFrenchTest() 34 if(!myCollation || U_FAILURE(status)) { in CollationFrenchTest() 37 delete myCollation; in CollationFrenchTest() 38 myCollation = NULL; in CollationFrenchTest() 44 delete myCollation; in ~CollationFrenchTest() 144 myCollation->setStrength(Collator::TERTIARY); in TestTertiary() 145 myCollation->setAttribute(UCOL_FRENCH_COLLATION, UCOL_ON, status); in TestTertiary() 146 myCollation->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, status); in TestTertiary() 154 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary() [all …]
|
D | decoll.cpp | 38 : myCollation(0) in CollationGermanTest() 41 myCollation = Collator::createInstance(Locale::getGermany(), status); in CollationGermanTest() 42 if(!myCollation || U_FAILURE(status)) { in CollationGermanTest() 45 delete myCollation; in CollationGermanTest() 46 myCollation = NULL; in CollationGermanTest() 52 delete myCollation; in ~CollationGermanTest() 107 if(myCollation == NULL ) { in TestTertiary() 114 myCollation->setStrength(Collator::TERTIARY); in TestTertiary() 115 myCollation->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in TestTertiary() 118 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i][1]); in TestTertiary() [all …]
|
D | g7coll.cpp | 102 LocalPointer<Collator> myCollation(Collator::createInstance(locale, status)); in TestG7Locales() local 107 myCollation->setStrength(Collator::QUATERNARY); in TestG7Locales() 108 myCollation->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, status); in TestG7Locales() 114 const UnicodeString &rules = ((RuleBasedCollator*)myCollation.getAlias())->getRules(); in TestG7Locales() 128 myCollation.adoptInstead(tblColl1); in TestG7Locales() 143 …doTest(myCollation.getAlias(), testCases[results[i][j]], testCases[results[i][n]], Collator::LESS); in TestG7Locales() 162 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo1() local 175 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS); in TestDemo1() 179 delete myCollation; in TestDemo1() 196 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo2() local [all …]
|
D | lcukocol.cpp | 34 : myCollation(0) in LotusCollationKoreanTest() 37 myCollation = Collator::createInstance("ko_kr", status); in LotusCollationKoreanTest() 39 myCollation->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in LotusCollationKoreanTest() 42 delete myCollation; in LotusCollationKoreanTest() 43 myCollation = 0; in LotusCollationKoreanTest() 50 delete myCollation; in ~LotusCollationKoreanTest() 69 myCollation->setStrength(Collator::TERTIARY); in TestTertiary() 72 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary() 79 if(myCollation) { in runIndexedTest()
|
D | trcoll.cpp | 21 : myCollation(0) in CollationTurkishTest() 24 myCollation = Collator::createInstance(Locale("tr", "", ""),status); in CollationTurkishTest() 29 delete myCollation; in ~CollationTurkishTest() 78 myCollation->setStrength(Collator::TERTIARY); in TestTertiary() 80 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary() 86 myCollation->setStrength(Collator::PRIMARY); in TestPrimary() 88 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary() 96 if((!myCollation) && exec) { in runIndexedTest()
|
D | ficoll.cpp | 35 : myCollation(0) in CollationFinnishTest() 38 myCollation = Collator::createInstance(Locale("fi", "FI", "", "collation=standard"),status); in CollationFinnishTest() 43 delete myCollation; in ~CollationFinnishTest() 74 myCollation->setStrength(Collator::TERTIARY); in TestTertiary() 76 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary() 82 myCollation->setStrength(Collator::PRIMARY); in TestPrimary() 84 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary() 92 if((!myCollation) && exec) { in runIndexedTest()
|
D | escoll.cpp | 37 : myCollation(0) in CollationSpanishTest() 40 myCollation = Collator::createInstance(Locale("es", "ES", ""),status); in CollationSpanishTest() 45 delete myCollation; in ~CollationSpanishTest() 88 myCollation->setStrength(Collator::TERTIARY); in TestTertiary() 90 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary() 96 myCollation->setStrength(Collator::PRIMARY); in TestPrimary() 98 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary() 106 if((!myCollation) && exec) { in runIndexedTest()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/ |
D | G7CollationTest.java | 78 RuleBasedCollator myCollation = null; in TestDemo1() local 80 myCollation = new RuleBasedCollator(newRules); in TestDemo1() 89 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], -1); in TestDemo1() 105 RuleBasedCollator myCollation = null; in TestDemo2() local 107 myCollation = new RuleBasedCollator(newRules); in TestDemo2() 116 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], -1); in TestDemo2() 133 RuleBasedCollator myCollation = null; in TestDemo3() local 135 myCollation = new RuleBasedCollator(newRules); in TestDemo3() 144 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], -1); in TestDemo3() 160 RuleBasedCollator myCollation = null; in TestDemo4() local [all …]
|
D | CollationGermanTest.java | 80 private Collator myCollation = null; field in CollationGermanTest 87 myCollation = Collator.getInstance(Locale.GERMAN); in init() 88 if(myCollation == null) { in init() 96 if(myCollation == null ) { in TestTertiary() 102 myCollation.setStrength(Collator.TERTIARY); in TestTertiary() 103 myCollation.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in TestTertiary() 119 if(myCollation == null ) { in TestPrimary() 124 myCollation.setStrength(Collator.PRIMARY); in TestPrimary() 125 myCollation.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in TestPrimary() 137 int compareResult = myCollation.compare(s, t); in doTest() [all …]
|
D | CollationMiscTest.java | 752 Collator myCollation; in TestCase() local 754 myCollation = Collator.getInstance(new Locale("en", "US")); in TestCase() 760 myCollation.setStrength(Collator.TERTIARY); in TestCase() 765 ((RuleBasedCollator)myCollation).setUpperCaseFirst(true); in TestCase() 769 ((RuleBasedCollator)myCollation).setLowerCaseFirst(true); in TestCase() 771 ((RuleBasedCollator)myCollation).setCaseLevel( in TestCase() 778 (RuleBasedCollator)myCollation, in TestCase() 785 myCollation = new RuleBasedCollator(gRules); in TestCase() 791 myCollation.setStrength(Collator.TERTIARY); in TestCase() 795 ((RuleBasedCollator)myCollation).setUpperCaseFirst(true); in TestCase() [all …]
|
D | CollationKanaTest.java | 101 private Collator myCollation = null; field in CollationKanaTest 108 if(myCollation==null){ in init() 109 myCollation = Collator.getInstance(Locale.JAPANESE); in init() 117 myCollation.setStrength(Collator.TERTIARY); in TestTertiary() 128 myCollation.setStrength(Collator.PRIMARY); in TestBase() 138 myCollation.setStrength(Collator.SECONDARY); in TestPlainDakutenHandakuten() 150 myCollation.setStrength(Collator.TERTIARY); in TestSmallLarge() 163 myCollation.setStrength(Collator.QUATERNARY); in TestKatakanaHiragana() 175 myCollation.setStrength(Collator.QUATERNARY); in TestChooonKigoo() 211 int compareResult = myCollation.compare(s, t); in doTest() [all …]
|
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | G7CollationTest.java | 75 RuleBasedCollator myCollation = null; in TestDemo1() local 77 myCollation = new RuleBasedCollator(newRules); in TestDemo1() 86 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], -1); in TestDemo1() 102 RuleBasedCollator myCollation = null; in TestDemo2() local 104 myCollation = new RuleBasedCollator(newRules); in TestDemo2() 113 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], -1); in TestDemo2() 130 RuleBasedCollator myCollation = null; in TestDemo3() local 132 myCollation = new RuleBasedCollator(newRules); in TestDemo3() 141 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], -1); in TestDemo3() 157 RuleBasedCollator myCollation = null; in TestDemo4() local [all …]
|
D | CollationGermanTest.java | 77 private Collator myCollation = null; field in CollationGermanTest 84 myCollation = Collator.getInstance(Locale.GERMAN); in init() 85 if(myCollation == null) { in init() 93 if(myCollation == null ) { in TestTertiary() 99 myCollation.setStrength(Collator.TERTIARY); in TestTertiary() 100 myCollation.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in TestTertiary() 116 if(myCollation == null ) { in TestPrimary() 121 myCollation.setStrength(Collator.PRIMARY); in TestPrimary() 122 myCollation.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in TestPrimary() 134 int compareResult = myCollation.compare(s, t); in doTest() [all …]
|
D | CollationMiscTest.java | 749 Collator myCollation; in TestCase() local 751 myCollation = Collator.getInstance(new Locale("en", "US")); in TestCase() 757 myCollation.setStrength(Collator.TERTIARY); in TestCase() 762 ((RuleBasedCollator)myCollation).setUpperCaseFirst(true); in TestCase() 766 ((RuleBasedCollator)myCollation).setLowerCaseFirst(true); in TestCase() 768 ((RuleBasedCollator)myCollation).setCaseLevel( in TestCase() 775 (RuleBasedCollator)myCollation, in TestCase() 782 myCollation = new RuleBasedCollator(gRules); in TestCase() 788 myCollation.setStrength(Collator.TERTIARY); in TestCase() 792 ((RuleBasedCollator)myCollation).setUpperCaseFirst(true); in TestCase() [all …]
|
D | CollationKanaTest.java | 98 private Collator myCollation = null; field in CollationKanaTest 105 if(myCollation==null){ in init() 106 myCollation = Collator.getInstance(Locale.JAPANESE); in init() 114 myCollation.setStrength(Collator.TERTIARY); in TestTertiary() 125 myCollation.setStrength(Collator.PRIMARY); in TestBase() 135 myCollation.setStrength(Collator.SECONDARY); in TestPlainDakutenHandakuten() 147 myCollation.setStrength(Collator.TERTIARY); in TestSmallLarge() 160 myCollation.setStrength(Collator.QUATERNARY); in TestKatakanaHiragana() 172 myCollation.setStrength(Collator.QUATERNARY); in TestChooonKigoo() 208 int compareResult = myCollation.compare(s, t); in doTest() [all …]
|