Home
last modified time | relevance | path

Searched refs:myCollation (Results 1 – 25 of 45) sorted by relevance

12

/external/icu/icu4c/source/test/cintltst/
Dcjaptst.c39 static UCollator *myCollation; variable
120 myCollation = ucol_open("ja_JP", &status); in TestTertiary()
126 ucol_setStrength(myCollation, UCOL_TERTIARY); in TestTertiary()
127 ucol_setAttribute(myCollation, UCOL_CASE_LEVEL, UCOL_ON, &status); in TestTertiary()
130 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
132 ucol_close(myCollation); in TestTertiary()
140 myCollation = ucol_open("ja_JP", &status); in TestBase()
149 ucol_setStrength(myCollation, UCOL_PRIMARY); in TestBase()
151 doTest(myCollation, testBaseCases[i], testBaseCases[i + 1], UCOL_LESS); in TestBase()
153 ucol_close(myCollation); in TestBase()
[all …]
Dcg7coll.c138 UCollator *myCollation; in TestG7Locales() local
147 myCollation = ucol_open(locale, &status); in TestG7Locales()
148 ucol_setAttribute(myCollation, UCOL_STRENGTH, UCOL_QUATERNARY, &status); in TestG7Locales()
149 ucol_setAttribute(myCollation, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status); in TestG7Locales()
154 ucol_close(myCollation); in TestG7Locales()
158 defRules = ucol_getRules(myCollation, &rlen); in TestG7Locales()
162 ucol_close(myCollation); in TestG7Locales()
170 ucol_close(myCollation); in TestG7Locales()
176 myCollation = tblColl1; in TestG7Locales()
188 doTest(myCollation, testCases[results[i][j]], testCases[results[i][n]], UCOL_LESS); in TestG7Locales()
[all …]
Dcfrtst.c36 static UCollator *myCollation; variable
148 myCollation = ucol_open("fr_CA", &status); in TestTertiary()
149 if(U_FAILURE(status) || !myCollation){ in TestTertiary()
154 ucol_setAttribute(myCollation, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status); in TestTertiary()
160 ucol_setStrength(myCollation, UCOL_QUATERNARY); in TestTertiary()
163 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
165 ucol_close(myCollation); in TestTertiary()
173 myCollation = ucol_open("fr_CA", &status); in TestSecondary()
178 ucol_setAttribute(myCollation, UCOL_STRENGTH, UCOL_SECONDARY, &status); in TestSecondary()
193 doTest(myCollation, testAcute[i], testAcute[j], expected ); in TestSecondary()
[all …]
Dcallcoll.c268 static void doTestVariant(UCollator* myCollation, const UChar source[], const UChar target[], UColl… in doTestVariant() argument
279 UColAttributeValue norm = ucol_getAttribute(myCollation, UCOL_NORMALIZATION_MODE, &status); in doTestVariant()
283 compareResult = ucol_strcoll(myCollation, source, sLen, target, tLen); in doTestVariant()
288 compareResulta = ucol_strcoll(myCollation, source, -1, target, -1); in doTestVariant()
296 compareResultIter = ucol_strcollIter(myCollation, &sIter, &tIter, &status); in doTestVariant()
314 …compareResulta = ucol_strcollUTF8(myCollation, utf8Source, utf8SourceLen, utf8Target, utf8TargetLe… in doTestVariant()
322 … compareResulta = ucol_strcollUTF8(myCollation, utf8Source, -1, utf8Target, -1, &status); in doTestVariant()
338 compareResultUTF8Iter = ucol_strcollIter(myCollation, &sIter, &tIter, &status); in doTestVariant()
340 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in doTestVariant()
343 … compareResultUTF8IterNorm = ucol_strcollIter(myCollation, &sIter, &tIter, &status); in doTestVariant()
[all …]
Dcdetst.c36 static UCollator *myCollation; variable
105 myCollation = ucol_open("de_DE", &status); in TestTertiary()
111 ucol_setAttribute(myCollation, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in TestTertiary()
112 ucol_setStrength(myCollation, UCOL_TERTIARY); in TestTertiary()
115 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i][1]); in TestTertiary()
117 ucol_close(myCollation); in TestTertiary()
125 myCollation = ucol_open("de_DE", &status); in TestPrimary()
131 ucol_setStrength(myCollation, UCOL_PRIMARY); in TestPrimary()
134 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i][0]); in TestPrimary()
136 ucol_close(myCollation); in TestPrimary()
Dcturtst.c36 static UCollator *myCollation; variable
97 myCollation = ucol_open("tr", &status); in TestTertiary()
103 ucol_setStrength(myCollation, UCOL_TERTIARY); in TestTertiary()
106 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
108 ucol_close(myCollation); in TestTertiary()
117 myCollation = ucol_open("tr", &status); in TestPrimary()
123 ucol_setStrength(myCollation, UCOL_PRIMARY); in TestPrimary()
126 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary()
128 ucol_close(myCollation); in TestPrimary()
Dcfintst.c36 static UCollator *myCollation; variable
81 myCollation = ucol_open("fi_FI@collation=standard", &status); in TestTertiary()
86 ucol_setStrength(myCollation, UCOL_TERTIARY); in TestTertiary()
89 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
91 ucol_close(myCollation); in TestTertiary()
99 myCollation = ucol_open("fi_FI@collation=standard", &status); in TestPrimary()
104 ucol_setStrength(myCollation, UCOL_PRIMARY); in TestPrimary()
107 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary()
109 ucol_close(myCollation); in TestPrimary()
Dcestst.c36 static UCollator *myCollation; variable
90 myCollation = ucol_open("es_ES", &status); in TestTertiary()
96 ucol_setStrength(myCollation, UCOL_TERTIARY); in TestTertiary()
99 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
101 ucol_close(myCollation); in TestTertiary()
109 myCollation = ucol_open("es_ES", &status); in TestPrimary()
115 ucol_setStrength(myCollation, UCOL_PRIMARY); in TestPrimary()
118 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary()
120 ucol_close(myCollation); in TestPrimary()
Dencoll.c36 static UCollator *myCollation = NULL; variable
268 myCollation = ucol_open("en_US", &status); in TestTertiary()
275 ucol_setStrength(myCollation, UCOL_TERTIARY); in TestTertiary()
278 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
287 doTest(myCollation, testBugs[i], testBugs[j], UCOL_LESS); in TestTertiary()
299 doTest(myCollation, testMore[i], testMore[j], expected ); in TestTertiary()
302 ucol_close(myCollation); in TestTertiary()
310 myCollation = ucol_open("en_US", &status); in TestPrimary()
315 ucol_setStrength(myCollation, UCOL_PRIMARY); in TestPrimary()
319 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary()
[all …]
/external/icu/icu4c/source/test/intltest/
Djacoll.cpp20 : myCollation(0) in CollationKanaTest()
23 myCollation = Collator::createInstance(Locale::getJapan(), status); in CollationKanaTest()
24 if(!myCollation || U_FAILURE(status)) { in CollationKanaTest()
27 delete myCollation; in CollationKanaTest()
28 myCollation = NULL; in CollationKanaTest()
35 delete myCollation; in ~CollationKanaTest()
108 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
111 myCollation->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in TestTertiary()
112 myCollation->setAttribute(UCOL_CASE_LEVEL, UCOL_ON, status); in TestTertiary()
114 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
[all …]
Dallcoll.cpp21 : myCollation(0) in CollationDummyTest()
32 if (myCollation != NULL) in CollationDummyTest()
34 delete myCollation; in CollationDummyTest()
36 myCollation = new RuleBasedCollator(ruleset, status); in CollationDummyTest()
39 delete myCollation; in CollationDummyTest()
40 myCollation = 0; in CollationDummyTest()
46 delete myCollation; in ~CollationDummyTest()
95 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
98 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
106 myCollation->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in TestPrimary()
[all …]
Ddecoll.cpp36 : myCollation(0) in CollationGermanTest()
39 myCollation = Collator::createInstance(Locale::getGermany(), status); in CollationGermanTest()
40 if(!myCollation || U_FAILURE(status)) { in CollationGermanTest()
43 delete myCollation; in CollationGermanTest()
44 myCollation = NULL; in CollationGermanTest()
50 delete myCollation; in ~CollationGermanTest()
105 if(myCollation == NULL ) { in TestTertiary()
112 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
113 myCollation->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in TestTertiary()
116 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i][1]); in TestTertiary()
[all …]
Dfrcoll.cpp27 : myCollation(0) in CollationFrenchTest()
30 myCollation = Collator::createInstance(Locale::getCanadaFrench(), status); in CollationFrenchTest()
31 if(!myCollation || U_FAILURE(status)) { in CollationFrenchTest()
34 delete myCollation; in CollationFrenchTest()
35 myCollation = NULL; in CollationFrenchTest()
41 delete myCollation; in ~CollationFrenchTest()
141 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
142 myCollation->setAttribute(UCOL_FRENCH_COLLATION, UCOL_ON, status); in TestTertiary()
143 myCollation->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, status); in TestTertiary()
151 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
[all …]
Dg7coll.cpp100 LocalPointer<Collator> myCollation(Collator::createInstance(locale, status)); in TestG7Locales() local
105 myCollation->setStrength(Collator::QUATERNARY); in TestG7Locales()
106 myCollation->setAttribute(UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, status); in TestG7Locales()
112 const UnicodeString &rules = ((RuleBasedCollator*)myCollation.getAlias())->getRules(); in TestG7Locales()
126 myCollation.adoptInstead(tblColl1); in TestG7Locales()
141 …doTest(myCollation.getAlias(), testCases[results[i][j]], testCases[results[i][n]], Collator::LESS); in TestG7Locales()
160 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo1() local
173 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], Collator::LESS); in TestDemo1()
177 delete myCollation; in TestDemo1()
194 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo2() local
[all …]
Dlcukocol.cpp32 : myCollation(0) in LotusCollationKoreanTest()
35 myCollation = Collator::createInstance("ko_kr", status); in LotusCollationKoreanTest()
37 myCollation->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status); in LotusCollationKoreanTest()
40 delete myCollation; in LotusCollationKoreanTest()
41 myCollation = 0; in LotusCollationKoreanTest()
48 delete myCollation; in ~LotusCollationKoreanTest()
67 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
70 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
77 if(myCollation) { in runIndexedTest()
Dficoll.cpp33 : myCollation(0) in CollationFinnishTest()
36 myCollation = Collator::createInstance(Locale("fi", "FI", "", "collation=standard"),status); in CollationFinnishTest()
41 delete myCollation; in ~CollationFinnishTest()
72 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
74 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
80 myCollation->setStrength(Collator::PRIMARY); in TestPrimary()
82 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary()
90 if((!myCollation) && exec) { in runIndexedTest()
Dtrcoll.cpp19 : myCollation(0) in CollationTurkishTest()
22 myCollation = Collator::createInstance(Locale("tr", "", ""),status); in CollationTurkishTest()
27 delete myCollation; in ~CollationTurkishTest()
76 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
78 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
84 myCollation->setStrength(Collator::PRIMARY); in TestPrimary()
86 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary()
94 if((!myCollation) && exec) { in runIndexedTest()
Descoll.cpp35 : myCollation(0) in CollationSpanishTest()
38 myCollation = Collator::createInstance(Locale("es", "ES", ""),status); in CollationSpanishTest()
43 delete myCollation; in ~CollationSpanishTest()
86 myCollation->setStrength(Collator::TERTIARY); in TestTertiary()
88 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
94 myCollation->setStrength(Collator::PRIMARY); in TestPrimary()
96 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary()
104 if((!myCollation) && exec) { in runIndexedTest()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DG7CollationTest.java72 RuleBasedCollator myCollation = null; in TestDemo1() local
74 myCollation = new RuleBasedCollator(newRules); in TestDemo1()
83 doTest(myCollation, testCases[results[8][j]], testCases[results[8][n]], -1); in TestDemo1()
98 RuleBasedCollator myCollation = null; in TestDemo2() local
100 myCollation = new RuleBasedCollator(newRules); in TestDemo2()
109 doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], -1); in TestDemo2()
125 RuleBasedCollator myCollation = null; in TestDemo3() local
127 myCollation = new RuleBasedCollator(newRules); in TestDemo3()
136 doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], -1); in TestDemo3()
151 RuleBasedCollator myCollation = null; in TestDemo4() local
[all …]
DCollationGermanTest.java73 private Collator myCollation = null; field in CollationGermanTest
79 myCollation = Collator.getInstance(Locale.GERMAN); in init()
80 if(myCollation == null) { in init()
86 if(myCollation == null ) { in TestTertiary()
92 myCollation.setStrength(Collator.TERTIARY); in TestTertiary()
93 myCollation.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in TestTertiary()
107 if(myCollation == null ) { in TestPrimary()
112 myCollation.setStrength(Collator.PRIMARY); in TestPrimary()
113 myCollation.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in TestPrimary()
125 int compareResult = myCollation.compare(s, t); in doTest()
[all …]
DCollationMiscTest.java732 Collator myCollation; in TestCase() local
734 myCollation = Collator.getInstance(new Locale("en", "US")); in TestCase()
740 myCollation.setStrength(Collator.TERTIARY); in TestCase()
745 ((RuleBasedCollator)myCollation).setUpperCaseFirst(true); in TestCase()
749 ((RuleBasedCollator)myCollation).setLowerCaseFirst(true); in TestCase()
751 ((RuleBasedCollator)myCollation).setCaseLevel( in TestCase()
758 (RuleBasedCollator)myCollation, in TestCase()
765 myCollation = new RuleBasedCollator(gRules); in TestCase()
771 myCollation.setStrength(Collator.TERTIARY); in TestCase()
775 ((RuleBasedCollator)myCollation).setUpperCaseFirst(true); in TestCase()
[all …]
DCollationKanaTest.java94 private Collator myCollation = null; field in CollationKanaTest
99 if(myCollation==null){ in init()
100 myCollation = Collator.getInstance(Locale.JAPANESE); in init()
106 myCollation.setStrength(Collator.TERTIARY); in TestTertiary()
116 myCollation.setStrength(Collator.PRIMARY); in TestBase()
125 myCollation.setStrength(Collator.SECONDARY); in TestPlainDakutenHandakuten()
136 myCollation.setStrength(Collator.TERTIARY); in TestSmallLarge()
148 myCollation.setStrength(Collator.QUATERNARY); in TestKatakanaHiragana()
159 myCollation.setStrength(Collator.QUATERNARY); in TestChooonKigoo()
194 int compareResult = myCollation.compare(s, t); in doTest()
[all …]
DCollationDummyTest.java171 public RuleBasedCollator myCollation; field in CollationDummyTest
178 myCollation = null; in init()
179 myCollation = new RuleBasedCollator(ruleset); in init()
185 myCollation.setStrength(Collator.TERTIARY); in TestTertiary()
187 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestTertiary()
194 myCollation.setStrength(Collator.PRIMARY); in TestPrimary()
196 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestPrimary()
203 myCollation.setStrength(Collator.SECONDARY); in TestSecondary()
205 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); in TestSecondary()
212 myCollation.setStrength(Collator.TERTIARY); in TestExtra()
[all …]
DLotusCollationKoreanTest.java38 private Collator myCollation; field in LotusCollationKoreanTest
43 myCollation = Collator.getInstance(Locale.KOREAN); in init()
44 myCollation.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in init()
49 myCollation.setStrength(Collator.TERTIARY); in TestTertiary()
59 int compareResult = myCollation.compare(s, t); in doTest()
61 sortKey1 = myCollation.getCollationKey(s); in doTest()
62 sortKey2 = myCollation.getCollationKey(t); in doTest()
DCollationEnglishTest.java241 private Collator myCollation = null; field in CollationEnglishTest
246 myCollation = Collator.getInstance(Locale.ENGLISH); in init()
252 myCollation.setStrength(Collator.PRIMARY); in TestPrimary()
261 myCollation.setStrength(Collator.SECONDARY); in TestSecondary()
286 myCollation.setStrength(Collator.TERTIARY); in TestTertiary()
324 int compareResult = myCollation.compare(s, t); in doTest()
326 sortKey1 = myCollation.getCollationKey(s); in doTest()
327 sortKey2 = myCollation.getCollationKey(t); in doTest()

12