Home
last modified time | relevance | path

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

123

/external/chromium_org/third_party/icu/source/i18n/
Dtblcoll.cpp81 RuleBasedCollator::RuleBasedCollator(const RuleBasedCollator& that) in RuleBasedCollator() function in RuleBasedCollator
87 RuleBasedCollator::operator=(that); in RuleBasedCollator()
90 RuleBasedCollator::RuleBasedCollator(const UnicodeString& rules, in RuleBasedCollator() function in RuleBasedCollator
100 RuleBasedCollator::RuleBasedCollator(const UnicodeString& rules, in RuleBasedCollator() function in RuleBasedCollator
110 RuleBasedCollator::RuleBasedCollator(const UnicodeString& rules, in RuleBasedCollator() function in RuleBasedCollator
121 RuleBasedCollator::RuleBasedCollator(const UnicodeString& rules, in RuleBasedCollator() function in RuleBasedCollator
131 RuleBasedCollator::RuleBasedCollator(const uint8_t *bin, int32_t length, in RuleBasedCollator() function in RuleBasedCollator
132 const RuleBasedCollator *base, in RuleBasedCollator()
141 RuleBasedCollator::setRuleStringFromCollator() in setRuleStringFromCollator()
157 RuleBasedCollator::construct(const UnicodeString& rules, in construct()
[all …]
/external/icu4c/i18n/
Dtblcoll.cpp80 RuleBasedCollator::RuleBasedCollator(const RuleBasedCollator& that) in RuleBasedCollator() function in RuleBasedCollator
86 RuleBasedCollator::operator=(that); in RuleBasedCollator()
89 RuleBasedCollator::RuleBasedCollator(const UnicodeString& rules, in RuleBasedCollator() function in RuleBasedCollator
99 RuleBasedCollator::RuleBasedCollator(const UnicodeString& rules, in RuleBasedCollator() function in RuleBasedCollator
109 RuleBasedCollator::RuleBasedCollator(const UnicodeString& rules, in RuleBasedCollator() function in RuleBasedCollator
120 RuleBasedCollator::RuleBasedCollator(const UnicodeString& rules, in RuleBasedCollator() function in RuleBasedCollator
130 RuleBasedCollator::RuleBasedCollator(const uint8_t *bin, int32_t length, in RuleBasedCollator() function in RuleBasedCollator
131 const RuleBasedCollator *base, in RuleBasedCollator()
140 RuleBasedCollator::setRuleStringFromCollator() in setRuleStringFromCollator()
156 RuleBasedCollator::construct(const UnicodeString& rules, in construct()
[all …]
Dstsearch.cpp65 RuleBasedCollator *coll, in StringSearch()
128 RuleBasedCollator *coll, in StringSearch()
275 RuleBasedCollator * StringSearch::getCollator() const in getCollator()
277 return (RuleBasedCollator *)&m_collator_; in getCollator()
280 void StringSearch::setCollator(RuleBasedCollator *coll, UErrorCode &status) in setCollator()
315 (RuleBasedCollator *)&m_collator_, in safeClone()
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DRuleBasedCollatorTest.java25 import java.text.RuleBasedCollator;
36 RuleBasedCollator rbc = null; in test_getCollationKeyLjava_lang_String()
39 rbc = new RuleBasedCollator(Simple); in test_getCollationKeyLjava_lang_String()
50 RuleBasedCollator coll = new RuleBasedCollator(rule); in testHashCode()
56 RuleBasedCollator coll = new RuleBasedCollator(rule); in testHashCode()
63 RuleBasedCollator coll = (RuleBasedCollator) Collator in testClone()
65 RuleBasedCollator clone = (RuleBasedCollator) coll.clone(); in testClone()
77 RuleBasedCollator coll = new RuleBasedCollator(rule); in testEqualsObject()
81 RuleBasedCollator other = new RuleBasedCollator(rule); in testEqualsObject()
97 RuleBasedCollator coll = new RuleBasedCollator(rule); in testCompareStringString()
[all …]
DCollationElementIteratorTest.java22 import java.text.RuleBasedCollator;
36 private RuleBasedCollator coll;
39 coll = (RuleBasedCollator) Collator.getInstance(Locale.US); in setUp()
102 RuleBasedCollator rbColl = (RuleBasedCollator) Collator in testGetMaxExpansion()
115 RuleBasedCollator rbColl = (RuleBasedCollator) Collator in testPrimaryOrder()
130 RuleBasedCollator rbColl = (RuleBasedCollator) Collator in testSecondaryOrder()
145 RuleBasedCollator rbColl = (RuleBasedCollator) Collator in testTertiaryOrder()
164 RuleBasedCollator rbColl = (RuleBasedCollator) Collator in testSetOffset()
177 RuleBasedCollator rbColl = (RuleBasedCollator) Collator in testSetTextString()
193 RuleBasedCollator rbColl = (RuleBasedCollator) Collator in testSetTextCharacterIterator()
DCollatorTest.java21 import java.text.RuleBasedCollator;
190 if (c1 instanceof RuleBasedCollator) { in failing_test_getAvailableLocales()
192 new RuleBasedCollator(((RuleBasedCollator) c1).getRules()); in failing_test_getAvailableLocales()
207 RuleBasedCollator collator; in failing_test_getDecomposition()
209 collator = new RuleBasedCollator("; \u0300 < a, A < b < c < d"); in failing_test_getDecomposition()
238 RuleBasedCollator collator; in test_getStrength()
240 collator = new RuleBasedCollator("; \u0300 < a, A < b < c < d"); in test_getStrength()
/external/icu4c/test/intltest/
Dregcoll.cpp26 en_us = (RuleBasedCollator *)Collator::createInstance(Locale::getUS(), status); in CollationRegressionTest()
112 RuleBasedCollator *c1 = new RuleBasedCollator(rules, status); in Test4051866()
115 RuleBasedCollator *c2 = new RuleBasedCollator(c1->getRules(), status); in Test4051866()
148 RuleBasedCollator *c = (RuleBasedCollator *) en_us->clone(); in Test4054238()
190 RuleBasedCollator *c = (RuleBasedCollator *) en_us->clone(); in Test4054734()
207 RuleBasedCollator *c = (RuleBasedCollator *) en_us->clone(); in Test4054736()
275 RuleBasedCollator *c = NULL; in Test4059820()
278 c = new RuleBasedCollator(rules, status); in Test4059820()
311 RuleBasedCollator *c = NULL; in Test4060154()
313 c = new RuleBasedCollator(rules, status); in Test4060154()
[all …]
Dg7coll.cpp100 RuleBasedCollator* tblColl1 = 0; in TestG7Locales()
124 tblColl1 = new RuleBasedCollator(((RuleBasedCollator*)myCollation)->getRules(), status); in TestG7Locales()
168 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo1()
171 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo1()
202 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo2()
205 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo2()
236 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo3()
239 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo3()
271 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo4()
274 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()
298 RuleBasedCollator *coll = new RuleBasedCollator(rule, status); in TestMaxExpansion()
[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.cpp249 doAssert(((RuleBasedCollator *)col)->getRules() == ((RuleBasedCollator *)junk)->getRules(), in TestProperty()
297 RuleBasedCollator *col1, *col2, *col3, *col4; in TestRuleBasedColl()
303 col1 = new RuleBasedCollator(ruleset1, status); in TestRuleBasedColl()
313 col2 = new RuleBasedCollator(ruleset2, status); in TestRuleBasedColl()
324 col3 = (RuleBasedCollator *)Collator::createInstance(locale, status); in TestRuleBasedColl()
335 col3 = (RuleBasedCollator *)Collator::createInstance(status); in TestRuleBasedColl()
352 col4 = new RuleBasedCollator(rule2, status); in TestRuleBasedColl()
380 RuleBasedCollator *coll; in TestRules()
384 coll = (RuleBasedCollator *)Collator::createInstance(Locale::getEnglish(), status); in TestRules()
666 …CollationElementIterator *iterator1 = ((RuleBasedCollator*)col)->createCollationElementIterator(te… in TestElemIter()
[all …]
Ddadrcoll.cpp42 UCA = (RuleBasedCollator*)Collator::createInstance("root", status); in DataDrivenCollatorTest()
195 col = new RuleBasedCollator(testSetting, status); in processTest()
210 RuleBasedCollator* clone = NULL; in processTest()
212 RuleBasedCollator* rbc = (RuleBasedCollator*)col; in processTest()
217 clone = new RuleBasedCollator(cloneBuf, cloneSize, UCA, intStatus); in processTest()
/external/chromium_org/third_party/icu/source/i18n/unicode/
Dtblcoll.h111 class U_I18N_API RuleBasedCollator : public Collator
126 RuleBasedCollator(const UnicodeString& rules, UErrorCode& status);
138 RuleBasedCollator(const UnicodeString& rules,
152 RuleBasedCollator(const UnicodeString& rules,
167 RuleBasedCollator(const UnicodeString& rules,
178 RuleBasedCollator(const RuleBasedCollator& other);
198 RuleBasedCollator(const uint8_t *bin, int32_t length,
199 const RuleBasedCollator *base,
207 virtual ~RuleBasedCollator();
216 RuleBasedCollator& operator=(const RuleBasedCollator& other);
[all …]
Dcoleitr.h296 friend class RuleBasedCollator;
309 const RuleBasedCollator* order, UErrorCode& status);
322 const RuleBasedCollator* order, UErrorCode& status);
361 order &= RuleBasedCollator::PRIMARYORDERMASK; in primaryOrder()
362 return (order >> RuleBasedCollator::PRIMARYORDERSHIFT); in primaryOrder()
372 order = order & RuleBasedCollator::SECONDARYORDERMASK; in secondaryOrder()
373 return (order >> RuleBasedCollator::SECONDARYORDERSHIFT); in secondaryOrder()
383 return (order &= RuleBasedCollator::TERTIARYORDERMASK); in tertiaryOrder()
393 return (primaryOrder(order) == RuleBasedCollator::PRIMIGNORABLE); in isIgnorable()
Dstsearch.h193 RuleBasedCollator *coll,
253 RuleBasedCollator *coll,
370 RuleBasedCollator * getCollator() const;
382 void setCollator(RuleBasedCollator *coll, UErrorCode &status);
499 RuleBasedCollator m_collator_;
/external/icu4c/i18n/unicode/
Dtblcoll.h111 class U_I18N_API RuleBasedCollator : public Collator
126 RuleBasedCollator(const UnicodeString& rules, UErrorCode& status);
138 RuleBasedCollator(const UnicodeString& rules,
152 RuleBasedCollator(const UnicodeString& rules,
167 RuleBasedCollator(const UnicodeString& rules,
178 RuleBasedCollator(const RuleBasedCollator& other);
198 RuleBasedCollator(const uint8_t *bin, int32_t length,
199 const RuleBasedCollator *base,
207 virtual ~RuleBasedCollator();
216 RuleBasedCollator& operator=(const RuleBasedCollator& other);
[all …]
Dcoleitr.h296 friend class RuleBasedCollator;
309 const RuleBasedCollator* order, UErrorCode& status);
322 const RuleBasedCollator* order, UErrorCode& status);
361 order &= RuleBasedCollator::PRIMARYORDERMASK; in primaryOrder()
362 return (order >> RuleBasedCollator::PRIMARYORDERSHIFT); in primaryOrder()
372 order = order & RuleBasedCollator::SECONDARYORDERMASK; in secondaryOrder()
373 return (order >> RuleBasedCollator::SECONDARYORDERSHIFT); in secondaryOrder()
383 return (order &= RuleBasedCollator::TERTIARYORDERMASK); in tertiaryOrder()
393 return (primaryOrder(order) == RuleBasedCollator::PRIMIGNORABLE); in isIgnorable()
Dstsearch.h193 RuleBasedCollator *coll,
253 RuleBasedCollator *coll,
370 RuleBasedCollator * getCollator() const;
382 void setCollator(RuleBasedCollator *coll, UErrorCode &status);
499 RuleBasedCollator m_collator_;
Dalphaindex.h76 class RuleBasedCollator; variable
324 AlphabeticIndex(RuleBasedCollator *collator, UErrorCode &status);
382 virtual const RuleBasedCollator &getCollator() const;
744 RuleBasedCollator *collator_;
745 RuleBasedCollator *collatorPrimaryOnly_;
/external/chromium_org/third_party/icu/source/test/intltest/
Dregcoll.cpp26 en_us = (RuleBasedCollator *)Collator::createInstance(Locale::getUS(), status); in CollationRegressionTest()
112 RuleBasedCollator *c1 = new RuleBasedCollator(rules, status); in Test4051866()
115 RuleBasedCollator *c2 = new RuleBasedCollator(c1->getRules(), status); in Test4051866()
148 RuleBasedCollator *c = (RuleBasedCollator *) en_us->clone(); in Test4054238()
190 RuleBasedCollator *c = (RuleBasedCollator *) en_us->clone(); in Test4054734()
207 RuleBasedCollator *c = (RuleBasedCollator *) en_us->clone(); in Test4054736()
275 RuleBasedCollator *c = NULL; in Test4059820()
278 c = new RuleBasedCollator(rules, status); in Test4059820()
311 RuleBasedCollator *c = NULL; in Test4060154()
313 c = new RuleBasedCollator(rules, status); in Test4060154()
[all …]
Dg7coll.cpp100 RuleBasedCollator* tblColl1 = 0; in TestG7Locales()
124 tblColl1 = new RuleBasedCollator(((RuleBasedCollator*)myCollation)->getRules(), status); in TestG7Locales()
168 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo1()
171 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo1()
202 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo2()
205 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo2()
236 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo3()
239 RuleBasedCollator *myCollation = new RuleBasedCollator(newRules, status); in TestDemo3()
271 const UnicodeString baseRules = ((RuleBasedCollator*)col)->getRules(); in TestDemo4()
274 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()
298 RuleBasedCollator *coll = new RuleBasedCollator(rule, status); in TestMaxExpansion()
[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.cpp195 RuleBasedCollator *rcol = (RuleBasedCollator *)Collator::createInstance("da_DK", in TestProperty()
240 doAssert(((RuleBasedCollator *)col)->getRules() == ((RuleBasedCollator *)junk)->getRules(), in TestProperty()
288 RuleBasedCollator *col1, *col2, *col3, *col4; in TestRuleBasedColl()
294 col1 = new RuleBasedCollator(ruleset1, status); in TestRuleBasedColl()
304 col2 = new RuleBasedCollator(ruleset2, status); in TestRuleBasedColl()
315 col3 = (RuleBasedCollator *)Collator::createInstance(locale, status); in TestRuleBasedColl()
326 col3 = (RuleBasedCollator *)Collator::createInstance(status); in TestRuleBasedColl()
343 col4 = new RuleBasedCollator(rule2, status); in TestRuleBasedColl()
371 RuleBasedCollator *coll; in TestRules()
375 coll = (RuleBasedCollator *)Collator::createInstance(Locale::getEnglish(), status); in TestRules()
[all …]
Ddadrcoll.cpp42 UCA = (RuleBasedCollator*)Collator::createInstance("root", status); in DataDrivenCollatorTest()
195 col = new RuleBasedCollator(testSetting, status); in processTest()
210 RuleBasedCollator* clone = NULL; in processTest()
212 RuleBasedCollator* rbc = (RuleBasedCollator*)col; in processTest()
217 clone = new RuleBasedCollator(cloneBuf, cloneSize, UCA, intStatus); in processTest()

123