/external/icu/android_icu4j/src/main/java/android/icu/impl/text/ |
D | RbnfScannerProviderImpl.java | 15 import android.icu.text.CollationElementIterator; 132 CollationElementIterator iter = collator.getCollationElementIterator(s); in allIgnorable() 135 while (o != CollationElementIterator.NULLORDER in allIgnorable() 136 && CollationElementIterator.primaryOrder(o) == 0) { in allIgnorable() 139 return o == CollationElementIterator.NULLORDER; in allIgnorable() 172 CollationElementIterator strIter = collator.getCollationElementIterator(str); in findText2() 173 CollationElementIterator keyIter = collator.getCollationElementIterator(key); in findText2() 181 while (oKey != CollationElementIterator.NULLORDER) { in findText2() 182 while (oStr != CollationElementIterator.NULLORDER && in findText2() 183 CollationElementIterator.primaryOrder(oStr) == 0) in findText2() [all …]
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/text/ |
D | RbnfScannerProviderImpl.java | 14 import com.ibm.icu.text.CollationElementIterator; 130 CollationElementIterator iter = collator.getCollationElementIterator(s); in allIgnorable() 133 while (o != CollationElementIterator.NULLORDER in allIgnorable() 134 && CollationElementIterator.primaryOrder(o) == 0) { in allIgnorable() 137 return o == CollationElementIterator.NULLORDER; in allIgnorable() 170 CollationElementIterator strIter = collator.getCollationElementIterator(str); in findText2() 171 CollationElementIterator keyIter = collator.getCollationElementIterator(key); in findText2() 179 while (oKey != CollationElementIterator.NULLORDER) { in findText2() 180 while (oStr != CollationElementIterator.NULLORDER && in findText2() 181 CollationElementIterator.primaryOrder(oStr) == 0) in findText2() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | coleitr.h | 116 class U_I18N_API CollationElementIterator U_FINAL : public UObject { 137 CollationElementIterator(const CollationElementIterator& other); 143 virtual ~CollationElementIterator(); 154 UBool operator==(const CollationElementIterator& other) const; 163 UBool operator!=(const CollationElementIterator& other) const; 288 static inline CollationElementIterator *fromUCollationElements(UCollationElements *uc) { in fromUCollationElements() 289 return reinterpret_cast<CollationElementIterator *>(uc); in fromUCollationElements() 292 …static inline const CollationElementIterator *fromUCollationElements(const UCollationElements *uc)… in fromUCollationElements() 293 return reinterpret_cast<const CollationElementIterator *>(uc); in fromUCollationElements() 318 CollationElementIterator(const UnicodeString& sourceText, [all …]
|
D | tblcoll.h | 85 class CollationElementIterator; variable 241 virtual CollationElementIterator* createCollationElementIterator( 253 virtual CollationElementIterator* createCollationElementIterator( 803 friend class CollationElementIterator;
|
/external/icu/icu4c/source/i18n/ |
D | coleitr.cpp | 48 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CollationElementIterator) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument 52 CollationElementIterator::CollationElementIterator( in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 53 const CollationElementIterator& other) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 58 CollationElementIterator::~CollationElementIterator() in ~CollationElementIterator() 80 int32_t CollationElementIterator::getOffset() const in getOffset() 101 int32_t CollationElementIterator::next(UErrorCode& status) in next() 137 UBool CollationElementIterator::operator!=( in operator !=() 138 const CollationElementIterator& other) const in operator !=() 143 UBool CollationElementIterator::operator==( in operator ==() 144 const CollationElementIterator& that) const in operator ==() [all …]
|
D | ucoleitr.cpp | 188 UCollationPCE::UCollationPCE(CollationElementIterator *iter) { init(iter); } in UCollationPCE() 191 init(CollationElementIterator::fromUCollationElements(elems)); in init() 194 void UCollationPCE::init(CollationElementIterator *iter) in init() 291 CollationElementIterator *cei = rbc->createCollationElementIterator(s); in ucol_openElements() 304 delete CollationElementIterator::fromUCollationElements(elems); in ucol_closeElements() 310 CollationElementIterator::fromUCollationElements(elems)->reset(); in ucol_reset() 321 return CollationElementIterator::fromUCollationElements(elems)->next(*status); in ucol_next() 374 return CollationElementIterator::fromUCollationElements(elems)->previous(*status); in ucol_previous() 464 return CollationElementIterator::fromUCollationElements(elems)->getMaxExpansion(order); in ucol_getMaxExpansion() 490 return CollationElementIterator::fromUCollationElements(elems)->setText(s, *status); in ucol_setText() [all …]
|
D | usrchimp.h | 51 class CollationElementIterator; variable 80 CollationElementIterator *cei; 88 UCollationPCE(CollationElementIterator *iter); 92 void init(CollationElementIterator *iter);
|
D | nfrule.cpp | 1297 … LocalPointer<CollationElementIterator> strIter(collator->createCollationElementIterator(str)); in prefixLength() 1298 …LocalPointer<CollationElementIterator> prefixIter(collator->createCollationElementIterator(prefix)… in prefixLength() 1328 while (oPrefix != CollationElementIterator::NULLORDER) { in prefixLength() 1330 while (CollationElementIterator::primaryOrder(oStr) == 0 in prefixLength() 1331 && oStr != CollationElementIterator::NULLORDER) { in prefixLength() 1336 while (CollationElementIterator::primaryOrder(oPrefix) == 0 in prefixLength() 1337 && oPrefix != CollationElementIterator::NULLORDER) { in prefixLength() 1347 if (oPrefix == CollationElementIterator::NULLORDER) { in prefixLength() 1353 if (oStr == CollationElementIterator::NULLORDER) { in prefixLength() 1360 if (CollationElementIterator::primaryOrder(oStr) in prefixLength() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | itercoll.cpp | 50 CollationElementIterator *iter; in TestUnicodeChar() 87 CollationElementIterator *iter = en_us->createCollationElementIterator(test1); in TestPrevious() 175 CollationElementIterator *iter = en_us->createCollationElementIterator(test1); in TestOffset() 179 if (U_FAILURE(status) || iter->previous(status) != CollationElementIterator::NULLORDER) { in TestOffset() 184 if (U_FAILURE(status) || iter->next(status) != CollationElementIterator::NULLORDER) { in TestOffset() 204 CollationElementIterator *pristine = en_us->createCollationElementIterator(test1); in TestOffset() 284 CollationElementIterator *iter1 = en_us->createCollationElementIterator(test1); in TestSetText() 285 CollationElementIterator *iter2 = en_us->createCollationElementIterator(test2); in TestSetText() 292 while ( ++i < 10 && c != CollationElementIterator::NULLORDER) in TestSetText() 332 || iter1->next(status) != (int32_t)CollationElementIterator::NULLORDER) { in TestSetText() [all …]
|
D | regcoll.cpp | 50 CollationElementIterator *i1 = en_us->createCollationElementIterator(test1); in Test4048446() 51 CollationElementIterator *i2 = en_us->createCollationElementIterator(test1); in Test4048446() 62 while (i1->next(status) != CollationElementIterator::NULLORDER) in Test4048446() 151 CollationElementIterator *i1 = c->createCollationElementIterator(test3); in Test4054238() 430 CollationElementIterator *i1 = c1->createCollationElementIterator(test1); in Test4066189() 434 CollationElementIterator *i2 = c2->createCollationElementIterator(test2); in Test4066189() 723 CollationElementIterator *i = c->createCollationElementIterator(nothing); in Test4101940() 726 if (i->next(status) != CollationElementIterator::NULLORDER) in Test4101940() 996 CollationElementIterator *createCollationElementIterator(const UnicodeString &text) const; 998 CollationElementIterator *createCollationElementIterator(const CharacterIterator &text) const; [all …]
|
D | itercoll.h | 107 UnicodeString &orderString(CollationElementIterator &iter, UnicodeString &target); 109 void assertEqual(CollationElementIterator &i1, CollationElementIterator &i2);
|
D | regcoll.h | 252 void assertEqual(CollationElementIterator &i1, CollationElementIterator &i2);
|
D | tscoll.cpp | 255 …LocalPointer<CollationElementIterator> c(((RuleBasedCollator *)col)->createCollationElementIterato… in doTest() 386 void IntlTestCollator::backAndForth(CollationElementIterator &iter) in backAndForth() 400 while ((o = iter.previous(status)) != CollationElementIterator::NULLORDER) in backAndForth() 455 while ((o = iter.next(status)) != CollationElementIterator::NULLORDER) in backAndForth() 466 while ((o = iter.previous(status)) != CollationElementIterator::NULLORDER) in backAndForth() 483 IntlTestCollator::Order *IntlTestCollator::getOrders(CollationElementIterator &iter, int32_t &order… in getOrders() 492 while ((order = iter.next(status)) != CollationElementIterator::NULLORDER) in getOrders()
|
D | apicoll.cpp | 630 …CollationElementIterator *iterator1 = ((RuleBasedCollator*)col)->createCollationElementIterator(te… in TestElemIter() 633 …CollationElementIterator *coliter=((RuleBasedCollator*)col)->createCollationElementIterator(*chari… in TestElemIter() 636 …CollationElementIterator *iterator2 = ((RuleBasedCollator*)col)->createCollationElementIterator(te… in TestElemIter() 637 …CollationElementIterator *iterator3 = ((RuleBasedCollator*)col)->createCollationElementIterator(te… in TestElemIter() 684 doAssert((CollationElementIterator::primaryOrder(order1) == in TestElemIter() 685 CollationElementIterator::primaryOrder(order3)), "The primary orders should be the same"); in TestElemIter() 686 doAssert((CollationElementIterator::secondaryOrder(order1) == in TestElemIter() 687 … CollationElementIterator::secondaryOrder(order3)), "The secondary orders should be the same"); in TestElemIter() 688 doAssert((CollationElementIterator::tertiaryOrder(order1) == in TestElemIter() 689 CollationElementIterator::tertiaryOrder(order3)), "The tertiary orders should be the same"); in TestElemIter() [all …]
|
D | tscoll.h | 46 void backAndForth(CollationElementIterator &iter); 51 Order *getOrders(CollationElementIterator &iter, int32_t &orderLength);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationIteratorTest.java | 23 import android.icu.text.CollationElementIterator; 55 CollationElementIterator i = c.getCollationElementIterator(source); in TestClearBuffers() 113 CollationElementIterator iter = coll.getCollationElementIterator(str); in TestMaxExpansion() 127 while (iter.previous() != CollationElementIterator.NULLORDER) { in TestMaxExpansion() 222 CollationElementIterator iter = en_us.getCollationElementIterator(test1); in TestOffset() 225 if (iter.previous() != CollationElementIterator.NULLORDER) { in TestOffset() 230 if (iter.next() != CollationElementIterator.NULLORDER) { in TestOffset() 248 CollationElementIterator pristine = en_us.getCollationElementIterator(test1); in TestOffset() 305 void assertEqual(CollationElementIterator i1, CollationElementIterator i2) { in assertEqual() 316 } while (c1 != CollationElementIterator.NULLORDER); in assertEqual() [all …]
|
D | CollationRegressionTest.java | 22 import android.icu.text.CollationElementIterator; 43 CollationElementIterator i1 = en_us.getCollationElementIterator(test1); in Test4048446() 44 CollationElementIterator i2 = en_us.getCollationElementIterator(test1); in Test4048446() 51 while (i1.next() != CollationElementIterator.NULLORDER) { in Test4048446() 59 void assertEqual(CollationElementIterator i1, CollationElementIterator i2) { in assertEqual() 78 } while (c1 != CollationElementIterator.NULLORDER); in assertEqual() 138 CollationElementIterator i1 = c.getCollationElementIterator(test3); in Test4054238() 421 CollationElementIterator i1 = c1.getCollationElementIterator(test1); in Test4066189() 425 CollationElementIterator i2 = c2.getCollationElementIterator(test2); in Test4066189() 615 CollationElementIterator i = c.getCollationElementIterator(nothing); in Test4101940() [all …]
|
D | CollationAPITest.java | 27 import android.icu.text.CollationElementIterator; 288 …CollationElementIterator iterator1 = ((RuleBasedCollator)col).getCollationElementIterator(testStri… in TestElemIter() 292 …CollationElementIterator iterator2 = ((RuleBasedCollator)col).getCollationElementIterator(chariter… in TestElemIter() 294 …CollationElementIterator iterator3 = ((RuleBasedCollator)col).getCollationElementIterator(ucharite… in TestElemIter() 317 doAssert((CollationElementIterator.primaryOrder(order1) == in TestElemIter() 318 … CollationElementIterator.primaryOrder(order3)), "The primary orders should be the same"); in TestElemIter() 319 doAssert((CollationElementIterator.secondaryOrder(order1) == in TestElemIter() 320 … CollationElementIterator.secondaryOrder(order3)), "The secondary orders should be the same"); in TestElemIter() 321 doAssert((CollationElementIterator.tertiaryOrder(order1) == in TestElemIter() 322 … CollationElementIterator.tertiaryOrder(order3)), "The tertiary orders should be the same"); in TestElemIter() [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationIteratorTest.java | 22 import com.ibm.icu.text.CollationElementIterator; 51 CollationElementIterator i = c.getCollationElementIterator(source); in TestClearBuffers() 109 CollationElementIterator iter = coll.getCollationElementIterator(str); in TestMaxExpansion() 123 while (iter.previous() != CollationElementIterator.NULLORDER) { in TestMaxExpansion() 218 CollationElementIterator iter = en_us.getCollationElementIterator(test1); in TestOffset() 221 if (iter.previous() != CollationElementIterator.NULLORDER) { in TestOffset() 226 if (iter.next() != CollationElementIterator.NULLORDER) { in TestOffset() 244 CollationElementIterator pristine = en_us.getCollationElementIterator(test1); in TestOffset() 301 void assertEqual(CollationElementIterator i1, CollationElementIterator i2) { in assertEqual() 312 } while (c1 != CollationElementIterator.NULLORDER); in assertEqual() [all …]
|
D | CollationRegressionTest.java | 21 import com.ibm.icu.text.CollationElementIterator; 39 CollationElementIterator i1 = en_us.getCollationElementIterator(test1); in Test4048446() 40 CollationElementIterator i2 = en_us.getCollationElementIterator(test1); in Test4048446() 47 while (i1.next() != CollationElementIterator.NULLORDER) { in Test4048446() 55 void assertEqual(CollationElementIterator i1, CollationElementIterator i2) { in assertEqual() 74 } while (c1 != CollationElementIterator.NULLORDER); in assertEqual() 134 CollationElementIterator i1 = c.getCollationElementIterator(test3); in Test4054238() 417 CollationElementIterator i1 = c1.getCollationElementIterator(test1); in Test4066189() 421 CollationElementIterator i2 = c2.getCollationElementIterator(test2); in Test4066189() 611 CollationElementIterator i = c.getCollationElementIterator(nothing); in Test4101940() [all …]
|
D | CollationAPITest.java | 26 import com.ibm.icu.text.CollationElementIterator; 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() 313 doAssert((CollationElementIterator.primaryOrder(order1) == in TestElemIter() 314 … CollationElementIterator.primaryOrder(order3)), "The primary orders should be the same"); in TestElemIter() 315 doAssert((CollationElementIterator.secondaryOrder(order1) == in TestElemIter() 316 … CollationElementIterator.secondaryOrder(order3)), "The secondary orders should be the same"); in TestElemIter() 317 doAssert((CollationElementIterator.tertiaryOrder(order1) == in TestElemIter() 318 … CollationElementIterator.tertiaryOrder(order3)), "The tertiary orders should be the same"); in TestElemIter() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | StringSearch.java | 138 private CollationElementIterator textIter_; 143 private CollationElementIterator utilIter_; 199 textIter_ = new CollationElementIterator(target, collator); in StringSearch() 320 textIter_ = new CollationElementIterator(pattern_.text_, collator); in setCollator() 321 utilIter_ = new CollationElementIterator(pattern_.text_, collator); in setCollator() 619 sourcece = CollationElementIterator.IGNORABLE; in getCE() 622 … } else if (strength_ >= Collator.QUATERNARY && sourcece == CollationElementIterator.IGNORABLE) { in getCE() 692 CollationElementIterator coleiter = utilIter_; in initializePatternCETable() 695 coleiter = new CollationElementIterator(pattern_.text_, collator_); in initializePatternCETable() 705 while ((ce = coleiter.next()) != CollationElementIterator.NULLORDER) { in initializePatternCETable() [all …]
|
D | CollationElementIterator.java | 106 public final class CollationElementIterator class 190 private CollationElementIterator(RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 208 CollationElementIterator(String source, RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 231 CollationElementIterator(CharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 246 CollationElementIterator(UCharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 680 if (that instanceof CollationElementIterator) { in equals() 681 CollationElementIterator thatceiter = (CollationElementIterator) that; in equals()
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
D | StringSearch.java | 138 private CollationElementIterator textIter_; 143 private CollationElementIterator utilIter_; 200 textIter_ = new CollationElementIterator(target, collator); in StringSearch() 327 textIter_ = new CollationElementIterator(pattern_.text_, collator); in setCollator() 328 utilIter_ = new CollationElementIterator(pattern_.text_, collator); in setCollator() 636 sourcece = CollationElementIterator.IGNORABLE; in getCE() 639 … } else if (strength_ >= Collator.QUATERNARY && sourcece == CollationElementIterator.IGNORABLE) { in getCE() 709 CollationElementIterator coleiter = utilIter_; in initializePatternCETable() 712 coleiter = new CollationElementIterator(pattern_.text_, collator_); in initializePatternCETable() 722 while ((ce = coleiter.next()) != CollationElementIterator.NULLORDER) { in initializePatternCETable() [all …]
|
D | CollationElementIterator.java | 106 public final class CollationElementIterator class 195 private CollationElementIterator(RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 214 CollationElementIterator(String source, RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 238 CollationElementIterator(CharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 254 CollationElementIterator(UCharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 699 if (that instanceof CollationElementIterator) { in equals() 700 CollationElementIterator thatceiter = (CollationElementIterator) that; in equals()
|