/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/text/ |
D | RbnfScannerProviderImpl.java | 16 import com.ibm.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/android_icu4j/src/main/java/android/icu/impl/text/ |
D | RbnfScannerProviderImpl.java | 17 import android.icu.text.CollationElementIterator; 134 CollationElementIterator iter = collator.getCollationElementIterator(s); in allIgnorable() 137 while (o != CollationElementIterator.NULLORDER in allIgnorable() 138 && CollationElementIterator.primaryOrder(o) == 0) { in allIgnorable() 141 return o == CollationElementIterator.NULLORDER; in allIgnorable() 174 CollationElementIterator strIter = collator.getCollationElementIterator(str); in findText2() 175 CollationElementIterator keyIter = collator.getCollationElementIterator(key); in findText2() 183 while (oKey != CollationElementIterator.NULLORDER) { in findText2() 184 while (oStr != CollationElementIterator.NULLORDER && in findText2() 185 CollationElementIterator.primaryOrder(oStr) == 0) { in findText2() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | coleitr.h | 119 class U_I18N_API CollationElementIterator U_FINAL : public UObject { 140 CollationElementIterator(const CollationElementIterator& other); 146 virtual ~CollationElementIterator(); 157 UBool operator==(const CollationElementIterator& other) const; 166 UBool operator!=(const CollationElementIterator& other) const; 291 static inline CollationElementIterator *fromUCollationElements(UCollationElements *uc) { in fromUCollationElements() 292 return reinterpret_cast<CollationElementIterator *>(uc); in fromUCollationElements() 295 …static inline const CollationElementIterator *fromUCollationElements(const UCollationElements *uc)… in fromUCollationElements() 296 return reinterpret_cast<const CollationElementIterator *>(uc); in fromUCollationElements() 321 CollationElementIterator(const UnicodeString& sourceText, [all …]
|
/external/icu/icu4c/source/i18n/ |
D | coleitr.cpp | 51 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CollationElementIterator) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument 55 CollationElementIterator::CollationElementIterator( in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 56 const CollationElementIterator& other) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 61 CollationElementIterator::~CollationElementIterator() in ~CollationElementIterator() 83 int32_t CollationElementIterator::getOffset() const in getOffset() 104 int32_t CollationElementIterator::next(UErrorCode& status) in next() 140 UBool CollationElementIterator::operator!=( in operator !=() 141 const CollationElementIterator& other) const in operator !=() 146 UBool CollationElementIterator::operator==( in operator ==() 147 const CollationElementIterator& that) const in operator ==() [all …]
|
D | ucoleitr.cpp | 190 UCollationPCE::UCollationPCE(CollationElementIterator *iter) { init(iter); } in UCollationPCE() 193 init(CollationElementIterator::fromUCollationElements(elems)); in init() 196 void UCollationPCE::init(CollationElementIterator *iter) in init() 293 CollationElementIterator *cei = rbc->createCollationElementIterator(s); in ucol_openElements() 306 delete CollationElementIterator::fromUCollationElements(elems); in ucol_closeElements() 312 CollationElementIterator::fromUCollationElements(elems)->reset(); in ucol_reset() 323 return CollationElementIterator::fromUCollationElements(elems)->next(*status); in ucol_next() 376 return CollationElementIterator::fromUCollationElements(elems)->previous(*status); in ucol_previous() 466 return CollationElementIterator::fromUCollationElements(elems)->getMaxExpansion(order); in ucol_getMaxExpansion() 492 return CollationElementIterator::fromUCollationElements(elems)->setText(s, *status); in ucol_setText() [all …]
|
D | usrchimp.h | 53 class CollationElementIterator; variable 82 CollationElementIterator *cei; 90 UCollationPCE(CollationElementIterator *iter); 94 void init(CollationElementIterator *iter);
|
D | nfrule.cpp | 1312 … LocalPointer<CollationElementIterator> strIter(collator->createCollationElementIterator(str)); in prefixLength() 1313 …LocalPointer<CollationElementIterator> prefixIter(collator->createCollationElementIterator(prefix)… in prefixLength() 1343 while (oPrefix != CollationElementIterator::NULLORDER) { in prefixLength() 1345 while (CollationElementIterator::primaryOrder(oStr) == 0 in prefixLength() 1346 && oStr != CollationElementIterator::NULLORDER) { in prefixLength() 1351 while (CollationElementIterator::primaryOrder(oPrefix) == 0 in prefixLength() 1352 && oPrefix != CollationElementIterator::NULLORDER) { in prefixLength() 1362 if (oPrefix == CollationElementIterator::NULLORDER) { in prefixLength() 1368 if (oStr == CollationElementIterator::NULLORDER) { in prefixLength() 1375 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 | 109 UnicodeString &orderString(CollationElementIterator &iter, UnicodeString &target); 111 void assertEqual(CollationElementIterator &i1, CollationElementIterator &i2);
|
D | apicoll.cpp | 649 …CollationElementIterator *iterator1 = ((RuleBasedCollator*)col)->createCollationElementIterator(te… in TestElemIter() 652 …CollationElementIterator *coliter=((RuleBasedCollator*)col)->createCollationElementIterator(*chari… in TestElemIter() 655 …CollationElementIterator *iterator2 = ((RuleBasedCollator*)col)->createCollationElementIterator(te… in TestElemIter() 656 …CollationElementIterator *iterator3 = ((RuleBasedCollator*)col)->createCollationElementIterator(te… in TestElemIter() 703 doAssert((CollationElementIterator::primaryOrder(order1) == in TestElemIter() 704 CollationElementIterator::primaryOrder(order3)), "The primary orders should be the same"); in TestElemIter() 705 doAssert((CollationElementIterator::secondaryOrder(order1) == in TestElemIter() 706 … CollationElementIterator::secondaryOrder(order3)), "The secondary orders should be the same"); in TestElemIter() 707 doAssert((CollationElementIterator::tertiaryOrder(order1) == in TestElemIter() 708 CollationElementIterator::tertiaryOrder(order3)), "The tertiary orders should be the same"); in TestElemIter() [all …]
|
D | tscoll.cpp | 257 …LocalPointer<CollationElementIterator> c(((RuleBasedCollator *)col)->createCollationElementIterato… in doTest() 388 void IntlTestCollator::backAndForth(CollationElementIterator &iter) in backAndForth() 402 while ((o = iter.previous(status)) != CollationElementIterator::NULLORDER) in backAndForth() 457 while ((o = iter.next(status)) != CollationElementIterator::NULLORDER) in backAndForth() 468 while ((o = iter.previous(status)) != CollationElementIterator::NULLORDER) in backAndForth() 485 IntlTestCollator::Order *IntlTestCollator::getOrders(CollationElementIterator &iter, int32_t &order… in getOrders() 494 while ((order = iter.next(status)) != CollationElementIterator::NULLORDER) in getOrders()
|
D | regcoll.h | 254 void assertEqual(CollationElementIterator &i1, CollationElementIterator &i2);
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationIteratorTest.java | 28 import com.ibm.icu.text.CollationElementIterator; 54 CollationElementIterator i = c.getCollationElementIterator(source); in TestClearBuffers() 113 CollationElementIterator iter = coll.getCollationElementIterator(str); in TestMaxExpansion() 127 while (iter.previous() != CollationElementIterator.NULLORDER) { in TestMaxExpansion() 223 CollationElementIterator iter = en_us.getCollationElementIterator(test1); in TestOffset() 226 if (iter.previous() != CollationElementIterator.NULLORDER) { in TestOffset() 231 if (iter.next() != CollationElementIterator.NULLORDER) { in TestOffset() 249 CollationElementIterator pristine = en_us.getCollationElementIterator(test1); in TestOffset() 306 void assertEqual(CollationElementIterator i1, CollationElementIterator i2) { in assertEqual() 317 } while (c1 != CollationElementIterator.NULLORDER); in assertEqual() [all …]
|
D | CollationRegressionTest.java | 27 import com.ibm.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() 141 CollationElementIterator i1 = c.getCollationElementIterator(test3); in Test4054238() 432 CollationElementIterator i1 = c1.getCollationElementIterator(test1); in Test4066189() 436 CollationElementIterator i2 = c2.getCollationElementIterator(test2); in Test4066189() 636 CollationElementIterator i = c.getCollationElementIterator(nothing); in Test4101940() [all …]
|
D | CollationAPITest.java | 32 import com.ibm.icu.text.CollationElementIterator; 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() 328 doAssert((CollationElementIterator.primaryOrder(order1) == in TestElemIter() 329 … CollationElementIterator.primaryOrder(order3)), "The primary orders should be the same"); in TestElemIter() 330 doAssert((CollationElementIterator.secondaryOrder(order1) == in TestElemIter() 331 … CollationElementIterator.secondaryOrder(order3)), "The secondary orders should be the same"); in TestElemIter() 332 doAssert((CollationElementIterator.tertiaryOrder(order1) == in TestElemIter() 333 … CollationElementIterator.tertiaryOrder(order3)), "The tertiary orders should be the same"); in TestElemIter() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationIteratorTest.java | 29 import android.icu.text.CollationElementIterator; 57 CollationElementIterator i = c.getCollationElementIterator(source); in TestClearBuffers() 116 CollationElementIterator iter = coll.getCollationElementIterator(str); in TestMaxExpansion() 130 while (iter.previous() != CollationElementIterator.NULLORDER) { in TestMaxExpansion() 226 CollationElementIterator iter = en_us.getCollationElementIterator(test1); in TestOffset() 229 if (iter.previous() != CollationElementIterator.NULLORDER) { in TestOffset() 234 if (iter.next() != CollationElementIterator.NULLORDER) { in TestOffset() 252 CollationElementIterator pristine = en_us.getCollationElementIterator(test1); in TestOffset() 309 void assertEqual(CollationElementIterator i1, CollationElementIterator i2) { in assertEqual() 320 } while (c1 != CollationElementIterator.NULLORDER); in assertEqual() [all …]
|
D | CollationRegressionTest.java | 28 import android.icu.text.CollationElementIterator; 46 CollationElementIterator i1 = en_us.getCollationElementIterator(test1); in Test4048446() 47 CollationElementIterator i2 = en_us.getCollationElementIterator(test1); in Test4048446() 54 while (i1.next() != CollationElementIterator.NULLORDER) { in Test4048446() 62 void assertEqual(CollationElementIterator i1, CollationElementIterator i2) { in assertEqual() 81 } while (c1 != CollationElementIterator.NULLORDER); in assertEqual() 144 CollationElementIterator i1 = c.getCollationElementIterator(test3); in Test4054238() 435 CollationElementIterator i1 = c1.getCollationElementIterator(test1); in Test4066189() 439 CollationElementIterator i2 = c2.getCollationElementIterator(test2); in Test4066189() 639 CollationElementIterator i = c.getCollationElementIterator(nothing); in Test4101940() [all …]
|
D | CollationAPITest.java | 33 import android.icu.text.CollationElementIterator; 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() 331 doAssert((CollationElementIterator.primaryOrder(order1) == in TestElemIter() 332 … CollationElementIterator.primaryOrder(order3)), "The primary orders should be the same"); in TestElemIter() 333 doAssert((CollationElementIterator.secondaryOrder(order1) == in TestElemIter() 334 … CollationElementIterator.secondaryOrder(order3)), "The secondary orders should be the same"); in TestElemIter() 335 doAssert((CollationElementIterator.tertiaryOrder(order1) == in TestElemIter() 336 … CollationElementIterator.tertiaryOrder(order3)), "The tertiary orders should be the same"); in TestElemIter() [all …]
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
D | StringSearch.java | 140 private CollationElementIterator textIter_; 145 private CollationElementIterator utilIter_; 202 textIter_ = new CollationElementIterator(target, collator); in StringSearch() 329 textIter_ = new CollationElementIterator(pattern_.text_, collator); in setCollator() 330 utilIter_ = new CollationElementIterator(pattern_.text_, collator); in setCollator() 638 sourcece = CollationElementIterator.IGNORABLE; in getCE() 641 … } 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 | 108 public final class CollationElementIterator class 197 private CollationElementIterator(RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 216 CollationElementIterator(String source, RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 240 CollationElementIterator(CharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 256 CollationElementIterator(UCharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 681 if (that instanceof CollationElementIterator) { in equals() 682 CollationElementIterator thatceiter = (CollationElementIterator) that; in equals()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | StringSearch.java | 140 private CollationElementIterator textIter_; 145 private CollationElementIterator utilIter_; 201 textIter_ = new CollationElementIterator(target, collator); in StringSearch() 322 textIter_ = new CollationElementIterator(pattern_.text_, collator); in setCollator() 323 utilIter_ = new CollationElementIterator(pattern_.text_, collator); in setCollator() 621 sourcece = CollationElementIterator.IGNORABLE; in getCE() 624 … } 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 | 108 public final class CollationElementIterator class 192 private CollationElementIterator(RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 210 CollationElementIterator(String source, RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 233 CollationElementIterator(CharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 248 CollationElementIterator(UCharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() method in CollationElementIterator 662 if (that instanceof CollationElementIterator) { in equals() 663 CollationElementIterator thatceiter = (CollationElementIterator) that; in equals()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | ReferenceStringSearch.java | 13 import com.ibm.icu.text.CollationElementIterator; 171 if (collationElement == CollationElementIterator.NULLORDER) { in setKey() 249 if (ce == CollationElementIterator.NULLORDER) { in fillBuffer() 374 private CollationElementIterator keyIterator; 438 if (collationElement != CollationElementIterator.NULLORDER) { in nextProcessed() 463 if (collationElement != CollationElementIterator.NULLORDER) { in previousProcessed()
|
/external/cldr/tools/java/org/unicode/cldr/posix/ |
D | POSIX_LCCollate.java | 25 import com.ibm.icu.text.CollationElementIterator; 279 public Weights(CollationElementIterator it) { in Weights() 282 if (ce == CollationElementIterator.NULLORDER) break; in Weights() 283 int p = CollationElementIterator.primaryOrder(ce); in Weights() 285 secondaries.append(CollationElementIterator.secondaryOrder(ce)); in Weights() 286 tertiaries.append(CollationElementIterator.tertiaryOrder(ce)); in Weights()
|