Home
last modified time | relevance | path

Searched refs:RuleBasedCollator (Results 1 – 25 of 144) sorted by relevance

123456

/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/
DCollationRegressionTest.java31 import ohos.global.icu.text.RuleBasedCollator;
45 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446()
93 RuleBasedCollator c1 = null; in Test4051866()
96 c1 = new RuleBasedCollator(rules); in Test4051866()
103 RuleBasedCollator c2 = null; in Test4051866()
105 c2 = new RuleBasedCollator(c1.getRules()); in Test4051866()
124 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4053636()
139 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054238()
164 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734()
283 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736()
[all …]
DCollationMiscTest.java39 import ohos.global.icu.text.RuleBasedCollator;
80 RuleBasedCollator coll; in TestComposeDecompose()
82 coll = (RuleBasedCollator)Collator.getInstance(Locale.ENGLISH); in TestComposeDecompose()
123 coll = (RuleBasedCollator)Collator.getInstance(loc[i]); in TestComposeDecompose()
258 RuleBasedCollator coll = null; in genericRulesStarterWithResult()
260 coll = new RuleBasedCollator(rules); in genericRulesStarterWithResult()
269 RuleBasedCollator coll = null; in genericRulesStarterWithOptionsAndResult()
271 coll = new RuleBasedCollator(rules); in genericRulesStarterWithOptionsAndResult()
287 CollationTest.doTest(this, (RuleBasedCollator)coll, t1, t2, in genericOrderingTestWithResult()
383 RuleBasedCollator coll = new RuleBasedCollator(string); in TestPrefixCompose()
[all …]
DCollationIteratorTest.java31 import ohos.global.icu.text.RuleBasedCollator;
48 RuleBasedCollator c = null; in TestClearBuffers()
50 c = new RuleBasedCollator("&a < b < c & ab = d"); in TestClearBuffers()
106 RuleBasedCollator coll = null; in TestMaxExpansion()
108 coll = new RuleBasedCollator(rule); in TestMaxExpansion()
198 coll = new RuleBasedCollator(rule); in TestMaxExpansion()
218 RuleBasedCollator en_us; in TestOffset()
220 en_us = (RuleBasedCollator)Collator.getInstance(Locale.US); in TestOffset()
263 RuleBasedCollator tailored = null; in TestOffset()
265 tailored = new RuleBasedCollator("& a < ch"); in TestOffset()
[all …]
DG7CollationTest.java27 import ohos.global.icu.text.RuleBasedCollator;
75 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo1()
78 RuleBasedCollator myCollation = null; in TestDemo1()
80 myCollation = new RuleBasedCollator(newRules); in TestDemo1()
102 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo2()
105 RuleBasedCollator myCollation = null; in TestDemo2()
107 myCollation = new RuleBasedCollator(newRules); in TestDemo2()
130 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo3()
133 RuleBasedCollator myCollation = null; in TestDemo3()
135 myCollation = new RuleBasedCollator(newRules); in TestDemo3()
[all …]
DCollationAPITest.java38 import ohos.global.icu.text.RuleBasedCollator;
265 RuleBasedCollator col3 = null; in TestDuplicate()
267 col3 = new RuleBasedCollator(ruleset); in TestDuplicate()
273 col3 = (RuleBasedCollator)col1; in TestDuplicate()
295 …CollationElementIterator iterator1 = ((RuleBasedCollator)col).getCollationElementIterator(testStri… in TestElemIter()
299 …CollationElementIterator iterator2 = ((RuleBasedCollator)col).getCollationElementIterator(chariter… in TestElemIter()
301 …CollationElementIterator iterator3 = ((RuleBasedCollator)col).getCollationElementIterator(ucharite… in TestElemIter()
502 RuleBasedCollator rcol = (RuleBasedCollator)Collator.getInstance(new Locale("da", "DK")); in TestProperty()
534 String colrules = ((RuleBasedCollator)col).getRules();
535 String junkrules = ((RuleBasedCollator)junk).getRules();
[all …]
DCollationThaiTest.java33 import ohos.global.icu.text.RuleBasedCollator;
86 RuleBasedCollator coll = null; in TestCornerCases()
96 void compareArray(RuleBasedCollator c, String[] tests) { in compareArray()
129 RuleBasedCollator coll = null; in TestDictionary()
228 RuleBasedCollator collator; in TestInvalidThai()
288 RuleBasedCollator collator; in TestReordering()
300 collator = new RuleBasedCollator(rule); in TestReordering()
328 private static RuleBasedCollator m_collator_;
332 private static RuleBasedCollator getThaiCollator() throws Exception in getThaiCollator()
335 m_collator_ = (RuleBasedCollator)Collator.getInstance( in getThaiCollator()
DCollationDummyTest.java31 import ohos.global.icu.text.RuleBasedCollator;
178 private RuleBasedCollator myCollation;
187 myCollation = new RuleBasedCollator(ruleset); in init()
324 newCollation = new RuleBasedCollator(rules); in TestSurrogates()
376 myColl = new RuleBasedCollator(rule); in TestVariableTop()
384 ((RuleBasedCollator)enColl).setAlternateHandlingShifted(true); in TestVariableTop()
385 ((RuleBasedCollator)myColl).setAlternateHandlingShifted(true); in TestVariableTop()
387 if(((RuleBasedCollator)enColl).isAlternateHandlingShifted() != true) { in TestVariableTop()
468 ceiX = ((RuleBasedCollator)myCollator).getCollationElementIterator(x); in TestJB1401()
469 ceiY = ((RuleBasedCollator)myCollator).getCollationElementIterator(y); in TestJB1401()
[all …]
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationRegressionTest.java30 import com.ibm.icu.text.RuleBasedCollator;
42 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446()
90 RuleBasedCollator c1 = null; in Test4051866()
93 c1 = new RuleBasedCollator(rules); in Test4051866()
100 RuleBasedCollator c2 = null; in Test4051866()
102 c2 = new RuleBasedCollator(c1.getRules()); in Test4051866()
121 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4053636()
136 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054238()
161 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734()
280 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736()
[all …]
DCollationMiscTest.java38 import com.ibm.icu.text.RuleBasedCollator;
77 RuleBasedCollator coll; in TestComposeDecompose()
79 coll = (RuleBasedCollator)Collator.getInstance(Locale.ENGLISH); in TestComposeDecompose()
120 coll = (RuleBasedCollator)Collator.getInstance(loc[i]); in TestComposeDecompose()
255 RuleBasedCollator coll = null; in genericRulesStarterWithResult()
257 coll = new RuleBasedCollator(rules); in genericRulesStarterWithResult()
266 RuleBasedCollator coll = null; in genericRulesStarterWithOptionsAndResult()
268 coll = new RuleBasedCollator(rules); in genericRulesStarterWithOptionsAndResult()
284 CollationTest.doTest(this, (RuleBasedCollator)coll, t1, t2, in genericOrderingTestWithResult()
380 RuleBasedCollator coll = new RuleBasedCollator(string); in TestPrefixCompose()
[all …]
DCollationIteratorTest.java30 import com.ibm.icu.text.RuleBasedCollator;
45 RuleBasedCollator c = null; in TestClearBuffers()
47 c = new RuleBasedCollator("&a < b < c & ab = d"); in TestClearBuffers()
103 RuleBasedCollator coll = null; in TestMaxExpansion()
105 coll = new RuleBasedCollator(rule); in TestMaxExpansion()
195 coll = new RuleBasedCollator(rule); in TestMaxExpansion()
215 RuleBasedCollator en_us; in TestOffset()
217 en_us = (RuleBasedCollator)Collator.getInstance(Locale.US); in TestOffset()
260 RuleBasedCollator tailored = null; in TestOffset()
262 tailored = new RuleBasedCollator("& a < ch"); in TestOffset()
[all …]
DG7CollationTest.java26 import com.ibm.icu.text.RuleBasedCollator;
72 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo1()
75 RuleBasedCollator myCollation = null; in TestDemo1()
77 myCollation = new RuleBasedCollator(newRules); in TestDemo1()
99 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo2()
102 RuleBasedCollator myCollation = null; in TestDemo2()
104 myCollation = new RuleBasedCollator(newRules); in TestDemo2()
127 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo3()
130 RuleBasedCollator myCollation = null; in TestDemo3()
132 myCollation = new RuleBasedCollator(newRules); in TestDemo3()
[all …]
DCollationAPITest.java37 import com.ibm.icu.text.RuleBasedCollator;
262 RuleBasedCollator col3 = null; in TestDuplicate()
264 col3 = new RuleBasedCollator(ruleset); in TestDuplicate()
270 col3 = (RuleBasedCollator)col1; in TestDuplicate()
292 …CollationElementIterator iterator1 = ((RuleBasedCollator)col).getCollationElementIterator(testStri… in TestElemIter()
296 …CollationElementIterator iterator2 = ((RuleBasedCollator)col).getCollationElementIterator(chariter… in TestElemIter()
298 …CollationElementIterator iterator3 = ((RuleBasedCollator)col).getCollationElementIterator(ucharite… in TestElemIter()
499 RuleBasedCollator rcol = (RuleBasedCollator)Collator.getInstance(new Locale("da", "DK")); in TestProperty()
531 String colrules = ((RuleBasedCollator)col).getRules();
532 String junkrules = ((RuleBasedCollator)junk).getRules();
[all …]
DCollationThaiTest.java32 import com.ibm.icu.text.RuleBasedCollator;
83 RuleBasedCollator coll = null; in TestCornerCases()
93 void compareArray(RuleBasedCollator c, String[] tests) { in compareArray()
126 RuleBasedCollator coll = null; in TestDictionary()
225 RuleBasedCollator collator; in TestInvalidThai()
285 RuleBasedCollator collator; in TestReordering()
297 collator = new RuleBasedCollator(rule); in TestReordering()
325 private static RuleBasedCollator m_collator_;
329 private static RuleBasedCollator getThaiCollator() throws Exception in getThaiCollator()
332 m_collator_ = (RuleBasedCollator)Collator.getInstance( in getThaiCollator()
DCollationDummyTest.java30 import com.ibm.icu.text.RuleBasedCollator;
175 private RuleBasedCollator myCollation;
184 myCollation = new RuleBasedCollator(ruleset); in init()
321 newCollation = new RuleBasedCollator(rules); in TestSurrogates()
373 myColl = new RuleBasedCollator(rule); in TestVariableTop()
381 ((RuleBasedCollator)enColl).setAlternateHandlingShifted(true); in TestVariableTop()
382 ((RuleBasedCollator)myColl).setAlternateHandlingShifted(true); in TestVariableTop()
384 if(((RuleBasedCollator)enColl).isAlternateHandlingShifted() != true) { in TestVariableTop()
465 ceiX = ((RuleBasedCollator)myCollator).getCollationElementIterator(x); in TestJB1401()
466 ceiY = ((RuleBasedCollator)myCollator).getCollationElementIterator(y); in TestJB1401()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dtblcoll.h115 class U_I18N_API RuleBasedCollator U_FINAL : public Collator {
125 RuleBasedCollator(const UnicodeString& rules, UErrorCode& status);
136 RuleBasedCollator(const UnicodeString& rules,
149 RuleBasedCollator(const UnicodeString& rules,
163 RuleBasedCollator(const UnicodeString& rules,
173 RuleBasedCollator(const UnicodeString &rules,
183 RuleBasedCollator(const RuleBasedCollator& other);
203 RuleBasedCollator(const uint8_t *bin, int32_t length,
204 const RuleBasedCollator *base,
211 virtual ~RuleBasedCollator();
[all …]
/third_party/icu/icu4c/source/i18n/unicode/
Dtblcoll.h115 class U_I18N_API RuleBasedCollator U_FINAL : public Collator {
125 RuleBasedCollator(const UnicodeString& rules, UErrorCode& status);
136 RuleBasedCollator(const UnicodeString& rules,
149 RuleBasedCollator(const UnicodeString& rules,
163 RuleBasedCollator(const UnicodeString& rules,
173 RuleBasedCollator(const UnicodeString &rules,
183 RuleBasedCollator(const RuleBasedCollator& other);
203 RuleBasedCollator(const uint8_t *bin, int32_t length,
204 const RuleBasedCollator *base,
211 virtual ~RuleBasedCollator();
[all …]
/third_party/node/deps/icu-small/source/i18n/unicode/
Dtblcoll.h115 class U_I18N_API RuleBasedCollator final : public Collator {
125 RuleBasedCollator(const UnicodeString& rules, UErrorCode& status);
136 RuleBasedCollator(const UnicodeString& rules,
149 RuleBasedCollator(const UnicodeString& rules,
163 RuleBasedCollator(const UnicodeString& rules,
173 RuleBasedCollator(const UnicodeString &rules,
183 RuleBasedCollator(const RuleBasedCollator& other);
203 RuleBasedCollator(const uint8_t *bin, int32_t length,
204 const RuleBasedCollator *base,
211 virtual ~RuleBasedCollator();
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dg7coll.cpp114 const UnicodeString &rules = ((RuleBasedCollator*)myCollation.getAlias())->getRules(); in TestG7Locales()
123 RuleBasedCollator *tblColl1 = new RuleBasedCollator(rules, status); in TestG7Locales()
159 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo1()
162 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo1()
193 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo2()
196 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo2()
227 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo3()
230 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo3()
262 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo4()
265 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo4()
Dregcoll.cpp27 en_us = (RuleBasedCollator *)Collator::createInstance(Locale::getUS(), status); in CollationRegressionTest()
104 LocalPointer<RuleBasedCollator> c1(new RuleBasedCollator(rules, status), status); in Test4051866()
111 LocalPointer<RuleBasedCollator> c2(new RuleBasedCollator(c1->getRules(), status), status); in Test4051866()
145 RuleBasedCollator *c = en_us->clone(); in Test4054238()
187 RuleBasedCollator *c = en_us->clone(); in Test4054734()
204 RuleBasedCollator *c = en_us->clone(); in Test4054736()
272 RuleBasedCollator *c = NULL; in Test4059820()
275 c = new RuleBasedCollator(rules, status); in Test4059820()
308 RuleBasedCollator *c = NULL; in Test4060154()
310 c = new RuleBasedCollator(rules, status); in Test4060154()
[all …]
Ditercoll.cpp29 en_us = (RuleBasedCollator *)Collator::createInstance(Locale::getUS(), status); in CollationIteratorTest()
95 RuleBasedCollator *c1 = NULL; in TestPrevious()
96 c1 = new RuleBasedCollator( in TestPrevious()
113 RuleBasedCollator *c2 = NULL; in TestPrevious()
114 c2 = new RuleBasedCollator((UnicodeString)"&a < b < c/abd < d", status); in TestPrevious()
130 RuleBasedCollator *c3 = NULL; in TestPrevious()
131 c3 = new RuleBasedCollator((UnicodeString)"&a < b < c/aba < d < z < ch", status); in TestPrevious()
153 iter = ((RuleBasedCollator*)c4)->createCollationElementIterator(source); in TestPrevious()
161 iter = ((RuleBasedCollator*)c5)->createCollationElementIterator(source); in TestPrevious()
224 RuleBasedCollator tailored("& a < ch", status); in TestOffset()
[all …]
Dsrchtest.h34 RuleBasedCollator *m_en_us_;
35 RuleBasedCollator *m_fr_fr_;
36 RuleBasedCollator *m_de_;
37 RuleBasedCollator *m_es_;
41 RuleBasedCollator * getCollator(const char *collator);
Dapicoll.cpp159 RuleBasedCollator *rcol = (RuleBasedCollator *)Collator::createInstance("da_DK", in TestProperty()
204 doAssert(((RuleBasedCollator *)junk)->getRules().isEmpty(), in TestProperty()
254 RuleBasedCollator *col1, *col2, *col3, *col4; in TestRuleBasedColl()
260 col1 = new RuleBasedCollator(ruleset1, status); in TestRuleBasedColl()
270 col2 = new RuleBasedCollator(ruleset2, status); in TestRuleBasedColl()
281 col3 = (RuleBasedCollator *)Collator::createInstance(locale, status); in TestRuleBasedColl()
292 col3 = (RuleBasedCollator *)Collator::createInstance(status); in TestRuleBasedColl()
309 col4 = new RuleBasedCollator(rule2, status); in TestRuleBasedColl()
337 RuleBasedCollator *coll; in TestRules()
341 coll = (RuleBasedCollator *)Collator::createInstance(Locale::getEnglish(), status); in TestRules()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Drulebasedcollator.cpp140 RuleBasedCollator::RuleBasedCollator(const RuleBasedCollator &other) in RuleBasedCollator() function in RuleBasedCollator
153 RuleBasedCollator::RuleBasedCollator(const uint8_t *bin, int32_t length, in RuleBasedCollator() function in RuleBasedCollator
154 const RuleBasedCollator *base, UErrorCode &errorCode) in RuleBasedCollator()
184 RuleBasedCollator::RuleBasedCollator(const CollationCacheEntry *entry) in RuleBasedCollator() function in RuleBasedCollator
196 RuleBasedCollator::~RuleBasedCollator() { in ~RuleBasedCollator()
202 RuleBasedCollator::adoptTailoring(CollationTailoring *t, UErrorCode &errorCode) { in adoptTailoring()
223 RuleBasedCollator *
224 RuleBasedCollator::clone() const { in clone()
225 return new RuleBasedCollator(*this); in clone()
228 RuleBasedCollator &RuleBasedCollator::operator=(const RuleBasedCollator &other) { in operator =()
[all …]
/third_party/icu/icu4c/source/i18n/
Drulebasedcollator.cpp140 RuleBasedCollator::RuleBasedCollator(const RuleBasedCollator &other) in RuleBasedCollator() function in RuleBasedCollator
153 RuleBasedCollator::RuleBasedCollator(const uint8_t *bin, int32_t length, in RuleBasedCollator() function in RuleBasedCollator
154 const RuleBasedCollator *base, UErrorCode &errorCode) in RuleBasedCollator()
184 RuleBasedCollator::RuleBasedCollator(const CollationCacheEntry *entry) in RuleBasedCollator() function in RuleBasedCollator
196 RuleBasedCollator::~RuleBasedCollator() { in ~RuleBasedCollator()
202 RuleBasedCollator::adoptTailoring(CollationTailoring *t, UErrorCode &errorCode) { in adoptTailoring()
223 RuleBasedCollator *
224 RuleBasedCollator::clone() const { in clone()
225 return new RuleBasedCollator(*this); in clone()
228 RuleBasedCollator &RuleBasedCollator::operator=(const RuleBasedCollator &other) { in operator =()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Drulebasedcollator.cpp140 RuleBasedCollator::RuleBasedCollator(const RuleBasedCollator &other) in RuleBasedCollator() function in RuleBasedCollator
153 RuleBasedCollator::RuleBasedCollator(const uint8_t *bin, int32_t length, in RuleBasedCollator() function in RuleBasedCollator
154 const RuleBasedCollator *base, UErrorCode &errorCode) in RuleBasedCollator()
184 RuleBasedCollator::RuleBasedCollator(const CollationCacheEntry *entry) in RuleBasedCollator() function in RuleBasedCollator
196 RuleBasedCollator::~RuleBasedCollator() { in ~RuleBasedCollator()
202 RuleBasedCollator::adoptTailoring(CollationTailoring *t, UErrorCode &errorCode) { in adoptTailoring()
223 RuleBasedCollator *
224 RuleBasedCollator::clone() const { in clone()
225 return new RuleBasedCollator(*this); in clone()
228 RuleBasedCollator &RuleBasedCollator::operator=(const RuleBasedCollator &other) { in operator =()
[all …]

123456