/external/icu/icu4c/source/test/intltest/ |
H A D | g7coll.cpp | 100 LocalPointer<Collator> myCollation(Collator::createInstance(locale, status)); 105 myCollation->setStrength(Collator::QUATERNARY); 106 myCollation->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, status); 112 const UnicodeString &rules = ((RuleBasedCollator*)myCollation.getAlias())->getRules(); 126 myCollation.adoptInstead(tblColl1); 141 doTest(myCollation.getAlias(), testCases[results[i][j]], testCases[results[i][n]], Collator::LESS); 160 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); local 173 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS); 177 delete myCollation; 194 RuleBasedCollator *myCollation local 228 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); local 263 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); local [all...] |
H A D | mnkytst.cpp | 225 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); local 231 doTest(myCollation, testSourceCases[i], testTargetCases[i], Collator::LESS); 233 delete myCollation; 240 myCollation = new RuleBasedCollator(newRules, status); 246 doTest(myCollation, testSourceCases[i], testTargetCases[i], Collator::LESS); 248 delete myCollation;
|
H A D | tscoll.cpp | 130 UCollator *myCollation = col->toUCollator(); local 144 UColAttributeValue norm = ucol_getAttribute(myCollation, UCOL_NORMALIZATION_MODE, &status); 155 compareResultIter = ucol_strcollIter(myCollation, &sIter, &tIter, &status); 177 compareResultUTF8 = ucol_strcollIter(myCollation, &sIter, &tIter, &status); 178 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); 181 compareResultUTF8Norm = ucol_strcollIter(myCollation, &sIter, &tIter, &status); 182 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, norm, &status); 211 partialSKResult = compareUsingPartials(myCollation, src, sLen, trg, tLen, partialSizes[i], status); 218 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); 219 partialNormalizedSKResult = compareUsingPartials(myCollation, sr [all...] |
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
H A D | CollationFinnishTest.java | 50 private Collator myCollation = null; field in class:CollationFinnishTest 55 myCollation = Collator.getInstance(new ULocale("fi_FI@collation=standard")); 62 myCollation.setStrength(Collator.PRIMARY); 71 myCollation.setStrength(Collator.TERTIARY); 81 int compareResult = myCollation.compare(s, t); 83 sortKey1 = myCollation.getCollationKey(s); 84 sortKey2 = myCollation.getCollationKey(t);
|
H A D | CollationGermanTest.java | 73 private Collator myCollation = null; field in class:CollationGermanTest 79 myCollation = Collator.getInstance(Locale.GERMAN); 80 if(myCollation == null) { 86 if(myCollation == null ) { 92 myCollation.setStrength(Collator.TERTIARY); 93 myCollation.setDecomposition(Collator.CANONICAL_DECOMPOSITION); 107 if(myCollation == null ) { 112 myCollation.setStrength(Collator.PRIMARY); 113 myCollation.setDecomposition(Collator.CANONICAL_DECOMPOSITION); 125 int compareResult = myCollation [all...] |
H A D | CollationSpanishTest.java | 63 //static public Collator myCollation = Collator.getInstance(new Locale("es", "ES")); 65 private Collator myCollation = null; field in class:CollationSpanishTest 71 myCollation = Collator.getInstance(new Locale("es", "ES")); 75 myCollation.setStrength(Collator.TERTIARY); 83 myCollation.setStrength(Collator.PRIMARY); 93 int compareResult = myCollation.compare(s, t); 95 sortKey1 = myCollation.getCollationKey(s); 96 sortKey2 = myCollation.getCollationKey(t);
|
H A D | CollationTurkishTest.java | 69 private Collator myCollation = null; field in class:CollationTurkishTest 75 myCollation = Collator.getInstance(new Locale("tr", "")); 80 myCollation.setStrength(Collator.TERTIARY); 88 myCollation.setStrength(Collator.PRIMARY); 99 int compareResult = myCollation.compare(s, t); 101 sortKey1 = myCollation.getCollationKey(s); 102 sortKey2 = myCollation.getCollationKey(t);
|
H A D | LotusCollationKoreanTest.java | 38 private Collator myCollation; field in class:LotusCollationKoreanTest 43 myCollation = Collator.getInstance(Locale.KOREAN); 44 myCollation.setDecomposition(Collator.CANONICAL_DECOMPOSITION); 49 myCollation.setStrength(Collator.TERTIARY); 59 int compareResult = myCollation.compare(s, t); 61 sortKey1 = myCollation.getCollationKey(s); 62 sortKey2 = myCollation.getCollationKey(t);
|
H A D | CollationDummyTest.java | 171 public RuleBasedCollator myCollation; field in class:CollationDummyTest 178 myCollation = null; 179 myCollation = new RuleBasedCollator(ruleset); 185 myCollation.setStrength(Collator.TERTIARY); 187 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 194 myCollation.setStrength(Collator.PRIMARY); 196 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 203 myCollation.setStrength(Collator.SECONDARY); 205 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 212 myCollation [all...] |
H A D | CollationEnglishTest.java | 241 private Collator myCollation = null; field in class:CollationEnglishTest 246 myCollation = Collator.getInstance(Locale.ENGLISH); 252 myCollation.setStrength(Collator.PRIMARY); 261 myCollation.setStrength(Collator.SECONDARY); 286 myCollation.setStrength(Collator.TERTIARY); 324 int compareResult = myCollation.compare(s, t); 326 sortKey1 = myCollation.getCollationKey(s); 327 sortKey2 = myCollation.getCollationKey(t);
|
H A D | CollationFrenchTest.java | 116 private Collator myCollation = null; field in class:CollationFrenchTest 122 myCollation = Collator.getInstance(Locale.CANADA_FRENCH); 128 myCollation.setStrength(Collator.TERTIARY); 142 myCollation.setStrength(Collator.SECONDARY); 161 myCollation.setStrength(Collator.TERTIARY); 191 int compareResult = myCollation.compare(s, t); 193 sortKey1 = myCollation.getCollationKey(s); 194 sortKey2 = myCollation.getCollationKey(t);
|
H A D | CollationFrozenMonkeyTest.java | 230 RuleBasedCollator myCollation = null; 232 myCollation = new RuleBasedCollator(newRules); 239 doTest(myCollation, testSourceCases[i], testTargetCases[i], -1); 245 myCollation = new RuleBasedCollator(newRules); 251 doTest(myCollation, testSourceCases[i], testTargetCases[i], -1); 255 void doTest(RuleBasedCollator myCollation, String mysource, String target, int result) { argument 256 int compareResult = myCollation.compare(source, target); 260 sortKey1 = myCollation.getCollationKey(source); 261 sortKey2 = myCollation.getCollationKey(target);
|
H A D | CollationKanaTest.java | 94 private Collator myCollation = null; field in class:CollationKanaTest 99 if(myCollation==null){ 100 myCollation = Collator.getInstance(Locale.JAPANESE); 106 myCollation.setStrength(Collator.TERTIARY); 116 myCollation.setStrength(Collator.PRIMARY); 125 myCollation.setStrength(Collator.SECONDARY); 136 myCollation.setStrength(Collator.TERTIARY); 148 myCollation.setStrength(Collator.QUATERNARY); 159 myCollation.setStrength(Collator.QUATERNARY); 194 int compareResult = myCollation [all...] |
H A D | CollationMonkeyTest.java | 205 RuleBasedCollator myCollation = null; 207 myCollation = new RuleBasedCollator(newRules); 214 doTest(myCollation, testSourceCases[i], testTargetCases[i], -1); 220 myCollation = new RuleBasedCollator(newRules); 226 doTest(myCollation, testSourceCases[i], testTargetCases[i], -1); 230 void doTest(RuleBasedCollator myCollation, String mysource, String target, int result) { argument 231 int compareResult = myCollation.compare(source, target); 235 sortKey1 = myCollation.getCollationKey(source); 236 sortKey2 = myCollation.getCollationKey(target);
|
H A D | G7CollationTest.java | 72 RuleBasedCollator myCollation = null; 74 myCollation = new RuleBasedCollator(newRules); 83 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], -1); 98 RuleBasedCollator myCollation = null; 100 myCollation = new RuleBasedCollator(newRules); 109 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], -1); 125 RuleBasedCollator myCollation = null; 127 myCollation = new RuleBasedCollator(newRules); 136 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], -1); 151 RuleBasedCollator myCollation 201 doTest(Collator myCollation, String source, String target, int result) argument [all...] |
H A D | CollationTest.java | 207 RuleBasedCollator myCollation, 211 int compareResult = myCollation.compare(source, target); 228 CollationKey ssk = myCollation.getCollationKey(source); 229 CollationKey tsk = myCollation.getCollationKey(target); 243 myCollation.getRawCollationKey(source, srsk); 245 myCollation.getRawCollationKey(target, trsk); 206 doTestVariant(TestFmwk test, RuleBasedCollator myCollation, String source, String target, int result) argument
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
H A D | CollationDummyTest.java | 175 public RuleBasedCollator myCollation; field in class:CollationDummyTest 182 myCollation = null; 183 myCollation = new RuleBasedCollator(ruleset); 189 myCollation.setStrength(Collator.TERTIARY); 191 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 198 myCollation.setStrength(Collator.PRIMARY); 200 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 207 myCollation.setStrength(Collator.SECONDARY); 209 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 216 myCollation [all...] |
H A D | CollationEnglishTest.java | 245 private Collator myCollation = null; field in class:CollationEnglishTest 250 myCollation = Collator.getInstance(Locale.ENGLISH); 256 myCollation.setStrength(Collator.PRIMARY); 265 myCollation.setStrength(Collator.SECONDARY); 290 myCollation.setStrength(Collator.TERTIARY); 328 int compareResult = myCollation.compare(s, t); 330 sortKey1 = myCollation.getCollationKey(s); 331 sortKey2 = myCollation.getCollationKey(t);
|
H A D | CollationFrenchTest.java | 120 private Collator myCollation = null; field in class:CollationFrenchTest 126 myCollation = Collator.getInstance(Locale.CANADA_FRENCH); 132 myCollation.setStrength(Collator.TERTIARY); 146 myCollation.setStrength(Collator.SECONDARY); 165 myCollation.setStrength(Collator.TERTIARY); 195 int compareResult = myCollation.compare(s, t); 197 sortKey1 = myCollation.getCollationKey(s); 198 sortKey2 = myCollation.getCollationKey(t);
|
H A D | CollationKanaTest.java | 98 private Collator myCollation = null; field in class:CollationKanaTest 103 if(myCollation==null){ 104 myCollation = Collator.getInstance(Locale.JAPANESE); 110 myCollation.setStrength(Collator.TERTIARY); 120 myCollation.setStrength(Collator.PRIMARY); 129 myCollation.setStrength(Collator.SECONDARY); 140 myCollation.setStrength(Collator.TERTIARY); 152 myCollation.setStrength(Collator.QUATERNARY); 163 myCollation.setStrength(Collator.QUATERNARY); 198 int compareResult = myCollation [all...] |
H A D | CollationTest.java | 211 RuleBasedCollator myCollation, 215 int compareResult = myCollation.compare(source, target); 232 CollationKey ssk = myCollation.getCollationKey(source); 233 CollationKey tsk = myCollation.getCollationKey(target); 247 myCollation.getRawCollationKey(source, srsk); 249 myCollation.getRawCollationKey(target, trsk); 210 doTestVariant(TestFmwk test, RuleBasedCollator myCollation, String source, String target, int result) argument
|
/external/icu/icu4c/source/test/cintltst/ |
H A D | callcoll.c | 268 static void doTestVariant(UCollator* myCollation, const UChar source[], const UChar target[], UCollationResult result) argument 279 UColAttributeValue norm = ucol_getAttribute(myCollation, UCOL_NORMALIZATION_MODE, &status); 283 compareResult = ucol_strcoll(myCollation, source, sLen, target, tLen); 288 compareResulta = ucol_strcoll(myCollation, source, -1, target, -1); 296 compareResultIter = ucol_strcollIter(myCollation, &sIter, &tIter, &status); 314 compareResulta = ucol_strcollUTF8(myCollation, utf8Source, utf8SourceLen, utf8Target, utf8TargetLen, &status); 322 compareResulta = ucol_strcollUTF8(myCollation, utf8Source, -1, utf8Target, -1, &status); 338 compareResultUTF8Iter = ucol_strcollIter(myCollation, &sIter, &tIter, &status); 340 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); 343 compareResultUTF8IterNorm = ucol_strcollIter(myCollation, 450 doTest(UCollator* myCollation, const UChar source[], const UChar target[], UCollationResult result) argument 739 UCollator *myCollation; local 764 UCollator *myCollation; local 791 UCollator *myCollation; local 816 UCollator *myCollation; local 840 UCollator *myCollation; local 1103 UCollator *myCollation; local [all...] |
H A D | cmsccoll.c | 265 UCollator *myCollation; local 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; local 865 myCollation = ucol_open("en_US", &status); 872 ucol_setStrength(myCollation, UCOL_TERTIARY); 875 ucol_setAttribute(myCollation, UCOL_CASE_FIRS 4222 UCollator *myCollation; local 4510 UCollator *myCollation; local 4536 UCollator *myCollation; local 4614 UCollator *myCollation; local 4694 UCollator *myCollation; local 4816 UCollator *myCollation; local 5071 UCollator *myCollation; local 5135 UCollator *myCollation; local 5315 UCollator *myCollation; local [all...] |