Searched defs:myCollation (Results 26 - 48 of 48) sorted by relevance

12

/external/icu/icu4c/source/test/intltest/
H A Dg7coll.cpp100 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 Dmnkytst.cpp225 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 Dtscoll.cpp130 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 DCollationFinnishTest.java50 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 DCollationGermanTest.java73 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 DCollationSpanishTest.java63 //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 DCollationTurkishTest.java69 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 DLotusCollationKoreanTest.java38 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 DCollationDummyTest.java171 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 DCollationEnglishTest.java241 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 DCollationFrenchTest.java116 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 DCollationFrozenMonkeyTest.java230 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 DCollationKanaTest.java94 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 DCollationMonkeyTest.java205 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 DG7CollationTest.java72 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 DCollationTest.java207 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 DCollationDummyTest.java175 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 DCollationEnglishTest.java245 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 DCollationFrenchTest.java120 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 DCollationKanaTest.java98 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 DCollationTest.java211 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 Dcallcoll.c268 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 Dcmsccoll.c265 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...]

Completed in 614 milliseconds

12