/external/icu/icu4c/source/test/intltest/ |
encoll.h | 43 Collator *myCollation;
|
allcoll.h | 52 RuleBasedCollator *myCollation;
|
decoll.h | 45 Collator *myCollation;
|
escoll.h | 44 Collator *myCollation;
|
ficoll.h | 43 Collator *myCollation;
|
frcoll.h | 47 Collator *myCollation;
|
lcukocol.h | 35 Collator *myCollation;
|
trcoll.h | 44 Collator *myCollation;
|
jacoll.h | 60 Collator *myCollation;
|
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); 173 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS); 177 delete myCollation; 194 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status) [all...] |
/external/icu/icu4c/source/test/cintltst/ |
cdetst.c | 36 static UCollator *myCollation; 105 myCollation = ucol_open("de_DE", &status); 111 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); 112 ucol_setStrength(myCollation, UCOL_TERTIARY); 115 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i][1]); 117 ucol_close(myCollation); 125 myCollation = ucol_open("de_DE", &status); 131 ucol_setStrength(myCollation, UCOL_PRIMARY); 134 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i][0]); 136 ucol_close(myCollation); [all...] |
cestst.c | 36 static UCollator *myCollation; 90 myCollation = ucol_open("es_ES", &status); 96 ucol_setStrength(myCollation, UCOL_TERTIARY); 99 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 101 ucol_close(myCollation); 109 myCollation = ucol_open("es_ES", &status); 115 ucol_setStrength(myCollation, UCOL_PRIMARY); 118 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 120 ucol_close(myCollation);
|
cfintst.c | 36 static UCollator *myCollation; 81 myCollation = ucol_open("fi_FI@collation=standard", &status); 86 ucol_setStrength(myCollation, UCOL_TERTIARY); 89 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 91 ucol_close(myCollation); 99 myCollation = ucol_open("fi_FI@collation=standard", &status); 104 ucol_setStrength(myCollation, UCOL_PRIMARY); 107 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 109 ucol_close(myCollation);
|
cturtst.c | 36 static UCollator *myCollation; 97 myCollation = ucol_open("tr", &status); 103 ucol_setStrength(myCollation, UCOL_TERTIARY); 106 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 108 ucol_close(myCollation); 117 myCollation = ucol_open("tr", &status); 123 ucol_setStrength(myCollation, UCOL_PRIMARY); 126 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 128 ucol_close(myCollation);
|
cjaptst.c | 39 static UCollator *myCollation; 120 myCollation = ucol_open("ja_JP", &status); 126 ucol_setStrength(myCollation, UCOL_TERTIARY); 127 ucol_setAttribute(myCollation, UCOL_CASE_LEVEL, UCOL_ON, &status); 130 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 132 ucol_close(myCollation); 140 myCollation = ucol_open("ja_JP", &status); 149 ucol_setStrength(myCollation, UCOL_PRIMARY); 151 doTest(myCollation, testBaseCases[i], testBaseCases[i + 1], UCOL_LESS); 153 ucol_close(myCollation); [all...] |
encoll.c | 36 static UCollator *myCollation = NULL; 268 myCollation = ucol_open("en_US", &status); 275 ucol_setStrength(myCollation, UCOL_TERTIARY); 278 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 287 doTest(myCollation, testBugs[i], testBugs[j], UCOL_LESS); 299 doTest(myCollation, testMore[i], testMore[j], expected ); 302 ucol_close(myCollation); 310 myCollation = ucol_open("en_US", &status); 315 ucol_setStrength(myCollation, UCOL_PRIMARY); 319 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]) [all...] |
cfrtst.c | 36 static UCollator *myCollation; 148 myCollation = ucol_open("fr_CA", &status); 149 if(U_FAILURE(status) || !myCollation){ 154 ucol_setAttribute(myCollation, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status); 160 ucol_setStrength(myCollation, UCOL_QUATERNARY); 163 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 165 ucol_close(myCollation); 173 myCollation = ucol_open("fr_CA", &status); 178 ucol_setAttribute(myCollation, UCOL_STRENGTH, UCOL_SECONDARY, &status); 193 doTest(myCollation, testAcute[i], testAcute[j], expected ) [all...] |
cg7coll.c | 138 UCollator *myCollation; 147 myCollation = ucol_open(locale, &status); 148 ucol_setAttribute(myCollation, UCOL_STRENGTH, UCOL_QUATERNARY, &status); 149 ucol_setAttribute(myCollation, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status); 154 ucol_close(myCollation); 158 defRules = ucol_getRules(myCollation, &rlen); 162 ucol_close(myCollation); 170 ucol_close(myCollation); 176 myCollation = tblColl1; 188 doTest(myCollation, testCases[results[i][j]], testCases[results[i][n]], UCOL_LESS) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
LotusCollationKoreanTest.java | 42 private Collator myCollation; 47 myCollation = Collator.getInstance(Locale.KOREAN); 48 myCollation.setDecomposition(Collator.CANONICAL_DECOMPOSITION); 53 myCollation.setStrength(Collator.TERTIARY); 63 int compareResult = myCollation.compare(s, t); 65 sortKey1 = myCollation.getCollationKey(s); 66 sortKey2 = myCollation.getCollationKey(t);
|
CollationEnglishTest.java | 245 private Collator myCollation = null; 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);
|
CollationFinnishTest.java | 54 private Collator myCollation = null; 59 myCollation = Collator.getInstance(new ULocale("fi_FI@collation=standard")); 66 myCollation.setStrength(Collator.PRIMARY); 75 myCollation.setStrength(Collator.TERTIARY); 85 int compareResult = myCollation.compare(s, t); 87 sortKey1 = myCollation.getCollationKey(s); 88 sortKey2 = myCollation.getCollationKey(t);
|
CollationGermanTest.java | 77 private Collator myCollation = null; 83 myCollation = Collator.getInstance(Locale.GERMAN); 84 if(myCollation == null) { 90 if(myCollation == null ) { 96 myCollation.setStrength(Collator.TERTIARY); 97 myCollation.setDecomposition(Collator.CANONICAL_DECOMPOSITION); 111 if(myCollation == null ) { 116 myCollation.setStrength(Collator.PRIMARY); 117 myCollation.setDecomposition(Collator.CANONICAL_DECOMPOSITION); 129 int compareResult = myCollation.compare(s, t) [all...] |
CollationSpanishTest.java | 67 //static public Collator myCollation = Collator.getInstance(new Locale("es", "ES")); 69 private Collator myCollation = null; 75 myCollation = Collator.getInstance(new Locale("es", "ES")); 79 myCollation.setStrength(Collator.TERTIARY); 87 myCollation.setStrength(Collator.PRIMARY); 97 int compareResult = myCollation.compare(s, t); 99 sortKey1 = myCollation.getCollationKey(s); 100 sortKey2 = myCollation.getCollationKey(t);
|
CollationTurkishTest.java | 73 private Collator myCollation = null; 79 myCollation = Collator.getInstance(new Locale("tr", "")); 84 myCollation.setStrength(Collator.TERTIARY); 92 myCollation.setStrength(Collator.PRIMARY); 103 int compareResult = myCollation.compare(s, t); 105 sortKey1 = myCollation.getCollationKey(s); 106 sortKey2 = myCollation.getCollationKey(t);
|
G7CollationTest.java | 76 RuleBasedCollator myCollation = null; 78 myCollation = new RuleBasedCollator(newRules); 87 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], -1); 102 RuleBasedCollator myCollation = null; 104 myCollation = new RuleBasedCollator(newRules); 113 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], -1); 129 RuleBasedCollator myCollation = null; 131 myCollation = new RuleBasedCollator(newRules); 140 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], -1); 155 RuleBasedCollator myCollation = null; [all...] |