Home
last modified time | relevance | path

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

123

/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationRegressionTest.java24 import com.ibm.icu.text.RuleBasedCollator;
38 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4048446()
85 RuleBasedCollator c1 = null; in Test4051866()
88 c1 = new RuleBasedCollator(rules); in Test4051866()
95 RuleBasedCollator c2 = null; in Test4051866()
97 c2 = new RuleBasedCollator(c1.getRules()); in Test4051866()
115 RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4053636()
129 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054238()
153 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054734()
271 RuleBasedCollator c = (RuleBasedCollator) Collator.getInstance(Locale.US); in Test4054736()
[all …]
DCollationMiscTest.java31 import com.ibm.icu.text.RuleBasedCollator;
74 RuleBasedCollator coll; in TestComposeDecompose()
76 coll = (RuleBasedCollator)Collator.getInstance(Locale.ENGLISH); in TestComposeDecompose()
117 coll = (RuleBasedCollator)Collator.getInstance(loc[i]); in TestComposeDecompose()
251 RuleBasedCollator coll = null; in genericRulesStarterWithResult()
253 coll = new RuleBasedCollator(rules); in genericRulesStarterWithResult()
262 RuleBasedCollator coll = null; in genericRulesStarterWithOptionsAndResult()
264 coll = new RuleBasedCollator(rules); in genericRulesStarterWithOptionsAndResult()
280 CollationTest.doTest(this, (RuleBasedCollator)coll, t1, t2, in genericOrderingTestWithResult()
373 RuleBasedCollator coll = new RuleBasedCollator(string); in TestPrefixCompose()
[all …]
DCollationIteratorTest.java24 import com.ibm.icu.text.RuleBasedCollator;
42 RuleBasedCollator c = null; in TestClearBuffers()
44 c = new RuleBasedCollator("&a < b < c & ab = d"); in TestClearBuffers()
99 RuleBasedCollator coll = null; in TestMaxExpansion()
101 coll = new RuleBasedCollator(rule); in TestMaxExpansion()
191 coll = new RuleBasedCollator(rule); in TestMaxExpansion()
210 RuleBasedCollator en_us; in TestOffset()
212 en_us = (RuleBasedCollator)Collator.getInstance(Locale.US); in TestOffset()
255 RuleBasedCollator tailored = null; in TestOffset()
257 tailored = new RuleBasedCollator("& a < ch"); in TestOffset()
[all …]
DG7CollationTest.java20 import com.ibm.icu.text.RuleBasedCollator;
69 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo1()
72 RuleBasedCollator myCollation = null; in TestDemo1()
74 myCollation = new RuleBasedCollator(newRules); in TestDemo1()
95 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo2()
98 RuleBasedCollator myCollation = null; in TestDemo2()
100 myCollation = new RuleBasedCollator(newRules); in TestDemo2()
122 String baseRules = ((RuleBasedCollator)col).getRules(); in TestDemo3()
125 RuleBasedCollator myCollation = null; in TestDemo3()
127 myCollation = new RuleBasedCollator(newRules); in TestDemo3()
[all …]
DCollationThaiTest.java26 import com.ibm.icu.text.RuleBasedCollator;
79 RuleBasedCollator coll = null; in TestCornerCases()
89 void compareArray(RuleBasedCollator c, String[] tests) { in compareArray()
121 RuleBasedCollator coll = null; in TestDictionary()
219 RuleBasedCollator collator; in TestInvalidThai()
278 RuleBasedCollator collator; in TestReordering()
280 collator = (RuleBasedCollator)getThaiCollator(); in TestReordering()
290 collator = new RuleBasedCollator(rule); in TestReordering()
317 private static RuleBasedCollator m_collator_;
321 private static RuleBasedCollator getThaiCollator() throws Exception in getThaiCollator()
[all …]
DCollationAPITest.java31 import com.ibm.icu.text.RuleBasedCollator;
255 RuleBasedCollator col3 = null; in TestDuplicate()
257 col3 = new RuleBasedCollator(ruleset); in TestDuplicate()
263 col3 = (RuleBasedCollator)col1; in TestDuplicate()
284 …CollationElementIterator iterator1 = ((RuleBasedCollator)col).getCollationElementIterator(testStri… in TestElemIter()
288 …CollationElementIterator iterator2 = ((RuleBasedCollator)col).getCollationElementIterator(chariter… in TestElemIter()
290 …CollationElementIterator iterator3 = ((RuleBasedCollator)col).getCollationElementIterator(ucharite… in TestElemIter()
514 String colrules = ((RuleBasedCollator)col).getRules();
515 String junkrules = ((RuleBasedCollator)junk).getRules();
536 RuleBasedCollator col1 = null, col2 = null, col3 = null, col4 = null;
[all …]
DCollationDummyTest.java23 import com.ibm.icu.text.RuleBasedCollator;
171 public RuleBasedCollator myCollation;
179 myCollation = new RuleBasedCollator(ruleset); in init()
309 newCollation = new RuleBasedCollator(rules); in TestSurrogates()
360 myColl = new RuleBasedCollator(rule); in TestVariableTop()
368 ((RuleBasedCollator)enColl).setAlternateHandlingShifted(true); in TestVariableTop()
369 ((RuleBasedCollator)myColl).setAlternateHandlingShifted(true); in TestVariableTop()
371 if(((RuleBasedCollator)enColl).isAlternateHandlingShifted() != true) { in TestVariableTop()
451 ceiX = ((RuleBasedCollator)myCollator).getCollationElementIterator(x); in TestJB1401()
452 ceiY = ((RuleBasedCollator)myCollator).getCollationElementIterator(y); in TestJB1401()
[all …]
DUCAConformanceTest.java22 import com.ibm.icu.text.RuleBasedCollator;
40 UCA = (RuleBasedCollator)Collator.getInstance(ULocale.ROOT); in init()
44 private RuleBasedCollator UCA;
45 private RuleBasedCollator rbUCA;
109 private void setCollNonIgnorable(RuleBasedCollator coll) in setCollNonIgnorable()
120 private void setCollShifted(RuleBasedCollator coll) in setCollShifted()
138 rbUCA = new RuleBasedCollator(ucarules); in initRbUCA()
183 private void conformanceTest(RuleBasedCollator coll) { in conformanceTest()
DCollationCreationMethodTest.java16 import com.ibm.icu.text.RuleBasedCollator;
50 RuleBasedCollator localeCollator; in TestRuleVsLocaleCreationMonkey()
51 RuleBasedCollator ruleCollator; in TestRuleVsLocaleCreationMonkey()
61 localeCollator = (RuleBasedCollator)Collator.getInstance(locale); in TestRuleVsLocaleCreationMonkey()
63 ruleCollator = new RuleBasedCollator(localeCollator.getRules()); in TestRuleVsLocaleCreationMonkey()
DCollationChineseTest.java19 import com.ibm.icu.text.RuleBasedCollator;
35 RuleBasedCollator collator = null; in TestPinYin()
37 collator = (RuleBasedCollator)Collator.getInstance( in TestPinYin()
DCollationMonkeyTest.java21 import com.ibm.icu.text.RuleBasedCollator;
202 String baseRules = ((RuleBasedCollator)col).getRules(); in TestRules()
205 RuleBasedCollator myCollation = null; in TestRules()
207 myCollation = new RuleBasedCollator(newRules); in TestRules()
220 myCollation = new RuleBasedCollator(newRules); in TestRules()
230 void doTest(RuleBasedCollator myCollation, String mysource, String target, int result) { in doTest()
/external/icu/icu4c/source/test/intltest/
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 = (RuleBasedCollator *) en_us->clone(); in Test4054238()
187 RuleBasedCollator *c = (RuleBasedCollator *) en_us->clone(); in Test4054734()
204 RuleBasedCollator *c = (RuleBasedCollator *) 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 …]
Dg7coll.cpp112 const UnicodeString &rules = ((RuleBasedCollator*)myCollation.getAlias())->getRules(); in TestG7Locales()
121 RuleBasedCollator *tblColl1 = new RuleBasedCollator(rules, status); in TestG7Locales()
157 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo1()
160 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo1()
191 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo2()
194 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo2()
225 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo3()
228 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo3()
260 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo4()
263 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo4()
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.h32 RuleBasedCollator *m_en_us_;
33 RuleBasedCollator *m_fr_fr_;
34 RuleBasedCollator *m_de_;
35 RuleBasedCollator *m_es_;
39 RuleBasedCollator * getCollator(const char *collator);
Dapicoll.cpp163 RuleBasedCollator *rcol = (RuleBasedCollator *)Collator::createInstance("da_DK", in TestProperty()
208 doAssert(((RuleBasedCollator *)junk)->getRules().isEmpty(), in TestProperty()
235 RuleBasedCollator *col1, *col2, *col3, *col4; in TestRuleBasedColl()
241 col1 = new RuleBasedCollator(ruleset1, status); in TestRuleBasedColl()
251 col2 = new RuleBasedCollator(ruleset2, status); in TestRuleBasedColl()
262 col3 = (RuleBasedCollator *)Collator::createInstance(locale, status); in TestRuleBasedColl()
273 col3 = (RuleBasedCollator *)Collator::createInstance(status); in TestRuleBasedColl()
290 col4 = new RuleBasedCollator(rule2, status); in TestRuleBasedColl()
318 RuleBasedCollator *coll; in TestRules()
322 coll = (RuleBasedCollator *)Collator::createInstance(Locale::getEnglish(), status); in TestRules()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dtblcoll.h111 class U_I18N_API RuleBasedCollator : public Collator {
121 RuleBasedCollator(const UnicodeString& rules, UErrorCode& status);
132 RuleBasedCollator(const UnicodeString& rules,
145 RuleBasedCollator(const UnicodeString& rules,
159 RuleBasedCollator(const UnicodeString& rules,
169 RuleBasedCollator(const UnicodeString &rules,
179 RuleBasedCollator(const RuleBasedCollator& other);
199 RuleBasedCollator(const uint8_t *bin, int32_t length,
200 const RuleBasedCollator *base,
207 virtual ~RuleBasedCollator();
[all …]
Dcoleitr.h49 class RuleBasedCollator; variable
306 friend class RuleBasedCollator;
319 const RuleBasedCollator* order, UErrorCode& status);
339 const RuleBasedCollator* order, UErrorCode& status);
361 const RuleBasedCollator *rbc_; // aliased
Dstsearch.h187 RuleBasedCollator *coll,
247 RuleBasedCollator *coll,
364 RuleBasedCollator * getCollator() const;
374 void setCollator(RuleBasedCollator *coll, UErrorCode &status);
Dalphaindex.h75 class RuleBasedCollator; variable
318 AlphabeticIndex(RuleBasedCollator *collator, UErrorCode &status);
373 virtual const RuleBasedCollator &getCollator() const;
735 RuleBasedCollator *collator_;
736 RuleBasedCollator *collatorPrimaryOnly_;
/external/icu/icu4c/source/i18n/
Drulebasedcollator.cpp138 RuleBasedCollator::RuleBasedCollator(const RuleBasedCollator &other) in RuleBasedCollator() function in RuleBasedCollator
151 RuleBasedCollator::RuleBasedCollator(const uint8_t *bin, int32_t length, in RuleBasedCollator() function in RuleBasedCollator
152 const RuleBasedCollator *base, UErrorCode &errorCode) in RuleBasedCollator()
182 RuleBasedCollator::RuleBasedCollator(const CollationCacheEntry *entry) in RuleBasedCollator() function in RuleBasedCollator
194 RuleBasedCollator::~RuleBasedCollator() { in ~RuleBasedCollator()
200 RuleBasedCollator::adoptTailoring(CollationTailoring *t, UErrorCode &errorCode) { in adoptTailoring()
222 RuleBasedCollator::clone() const { in clone()
223 return new RuleBasedCollator(*this); in clone()
226 RuleBasedCollator &RuleBasedCollator::operator=(const RuleBasedCollator &other) { in operator =()
238 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(RuleBasedCollator)
[all …]
Ducol.cpp45 RuleBasedCollator *coll = new RuleBasedCollator( in ucol_openBinary()
47 RuleBasedCollator::rbcFromUCollator(base), in ucol_openBinary()
68 const RuleBasedCollator *rbc = RuleBasedCollator::rbcFromUCollator(coll); in ucol_cloneBinary()
548 const RuleBasedCollator *rbc = RuleBasedCollator::rbcFromUCollator(coll); in ucol_getRules()
564 const RuleBasedCollator *rbc = RuleBasedCollator::rbcFromUCollator(coll); in ucol_getRulesEx()
590 const RuleBasedCollator *rbc = RuleBasedCollator::rbcFromUCollator(coll); in ucol_getLocaleByType()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/text/
DRbnfScannerProviderImpl.java18 import com.ibm.icu.text.RuleBasedCollator;
95 RuleBasedCollator collator = null; in createScanner()
101 collator = (RuleBasedCollator)Collator.getInstance(locale.toLocale()); in createScanner()
104 collator = new RuleBasedCollator(rules); in createScanner()
123 private final RuleBasedCollator collator;
125 private RbnfLenientScannerImpl(RuleBasedCollator rbc) { in RbnfLenientScannerImpl()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DCollationElementIterator.java113 private RuleBasedCollator rbc_; // aliased
199 private CollationElementIterator(RuleBasedCollator collator) { in CollationElementIterator()
218 CollationElementIterator(String source, RuleBasedCollator collator) { in CollationElementIterator()
242 CollationElementIterator(CharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator()
258 CollationElementIterator(UCharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator()
731 public RuleBasedCollator getRuleBasedCollator() { in getRuleBasedCollator()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/search/
DSearchTest.java30 import com.ibm.icu.text.RuleBasedCollator;
62 RuleBasedCollator m_en_us_;
63 RuleBasedCollator m_fr_fr_;
64 RuleBasedCollator m_de_;
65 RuleBasedCollator m_es_;
526 m_en_us_ = (RuleBasedCollator)Collator.getInstance(Locale.US); in init()
527 m_fr_fr_ = (RuleBasedCollator)Collator.getInstance(Locale.FRANCE); in init()
528 m_de_ = (RuleBasedCollator)Collator.getInstance(new Locale("de", "DE")); in init()
529 m_es_ = (RuleBasedCollator)Collator.getInstance(new Locale("es", "ES")); in init()
533 m_de_ = new RuleBasedCollator(rules); in init()
[all …]

123