HomeSort by relevance Sort by last modified time
    Searched defs:myCollation (Results 26 - 50 of 50) sorted by null

12

  /external/icu/icu4c/source/test/intltest/
mnkytst.cpp 225 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status);
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;
tscoll.cpp 130 UCollator *myCollation = col->toUCollator();
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, src, sLen, trg, tLen, partialSizes[i], status)
    [all...]
  /external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
CollationEnglishTest.java 241 private Collator myCollation = null;
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);
CollationFinnishTest.java 50 private Collator myCollation = null;
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);
CollationGermanTest.java 73 private Collator myCollation = null;
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.compare(s, t)
    [all...]
CollationSpanishTest.java 63 //static public Collator myCollation = Collator.getInstance(new Locale("es", "ES"));
65 private Collator myCollation = null;
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);
CollationTurkishTest.java 69 private Collator myCollation = null;
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);
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 = null;
    [all...]
LotusCollationKoreanTest.java 38 private Collator myCollation;
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);
CollationFrenchTest.java 116 private Collator myCollation = null;
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);
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) {
256 int compareResult = myCollation.compare(source, target);
260 sortKey1 = myCollation.getCollationKey(source);
261 sortKey2 = myCollation.getCollationKey(target);
CollationKanaTest.java 94 private Collator myCollation = null;
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.compare(s, t)
    [all...]
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) {
231 int compareResult = myCollation.compare(source, target);
235 sortKey1 = myCollation.getCollationKey(source);
236 sortKey2 = myCollation.getCollationKey(target);
CollationDummyTest.java 171 public RuleBasedCollator myCollation;
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.setStrength(Collator.TERTIARY)
    [all...]
CollationMiscTest.java 732 Collator myCollation;
734 myCollation = Collator.getInstance(new Locale("en", "US"));
740 myCollation.setStrength(Collator.TERTIARY);
745 ((RuleBasedCollator)myCollation).setUpperCaseFirst(true);
749 ((RuleBasedCollator)myCollation).setLowerCaseFirst(true);
751 ((RuleBasedCollator)myCollation).setCaseLevel(
758 (RuleBasedCollator)myCollation,
765 myCollation = new RuleBasedCollator(gRules);
771 myCollation.setStrength(Collator.TERTIARY);
775 ((RuleBasedCollator)myCollation).setUpperCaseFirst(true)
    [all...]
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);
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
CollationFrenchTest.java 120 private Collator myCollation = null;
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);
CollationFrozenMonkeyTest.java 234 RuleBasedCollator myCollation = null;
236 myCollation = new RuleBasedCollator(newRules);
243 doTest(myCollation, testSourceCases[i], testTargetCases[i], -1);
249 myCollation = new RuleBasedCollator(newRules);
255 doTest(myCollation, testSourceCases[i], testTargetCases[i], -1);
259 void doTest(RuleBasedCollator myCollation, String mysource, String target, int result) {
260 int compareResult = myCollation.compare(source, target);
264 sortKey1 = myCollation.getCollationKey(source);
265 sortKey2 = myCollation.getCollationKey(target);
CollationKanaTest.java 98 private Collator myCollation = null;
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.compare(s, t)
    [all...]
CollationMonkeyTest.java 209 RuleBasedCollator myCollation = null;
211 myCollation = new RuleBasedCollator(newRules);
218 doTest(myCollation, testSourceCases[i], testTargetCases[i], -1);
224 myCollation = new RuleBasedCollator(newRules);
230 doTest(myCollation, testSourceCases[i], testTargetCases[i], -1);
234 void doTest(RuleBasedCollator myCollation, String mysource, String target, int result) {
235 int compareResult = myCollation.compare(source, target);
239 sortKey1 = myCollation.getCollationKey(source);
240 sortKey2 = myCollation.getCollationKey(target);
CollationDummyTest.java 175 public RuleBasedCollator myCollation;
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.setStrength(Collator.TERTIARY)
    [all...]
CollationMiscTest.java 736 Collator myCollation;
738 myCollation = Collator.getInstance(new Locale("en", "US"));
744 myCollation.setStrength(Collator.TERTIARY);
749 ((RuleBasedCollator)myCollation).setUpperCaseFirst(true);
753 ((RuleBasedCollator)myCollation).setLowerCaseFirst(true);
755 ((RuleBasedCollator)myCollation).setCaseLevel(
762 (RuleBasedCollator)myCollation,
769 myCollation = new RuleBasedCollator(gRules);
775 myCollation.setStrength(Collator.TERTIARY);
779 ((RuleBasedCollator)myCollation).setUpperCaseFirst(true)
    [all...]
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);
    [all...]
  /external/icu/icu4c/source/test/cintltst/
callcoll.c 268 static void doTestVariant(UCollator* myCollation, const UChar source[], const UChar target[], UCollationResult result)
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, &sIter, &tIter, &status)
    [all...]
cmsccoll.c 265 UCollator *myCollation;
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;
865 myCollation = ucol_open("en_US", &status);
872 ucol_setStrength(myCollation, UCOL_TERTIARY);
875 ucol_setAttribute(myCollation, UCOL_CASE_FIRST, caseTestAttributes[k][0], &status)
    [all...]

Completed in 2172 milliseconds

12