/** * CollationElementIterator constructor. This takes a source * character iterator and a RuleBasedCollator. The iterator will * walk through the source string based on the rules defined by * the collator. If the source string is empty, NULLORDER will be * returned on the first call to next(). * * @param source the source string iterator. * @param collator the RuleBasedCollator * @stable ICU 2.8 */ CollationElementIterator(CharacterIterator source, RuleBasedCollator collator) { this(collator); setText(source); }
/** * CollationElementIterator constructor. This takes a source * character iterator and a RuleBasedCollator. The iterator will * walk through the source string based on the rules defined by * the collator. If the source string is empty, NULLORDER will be * returned on the first call to next(). * * @param source the source string iterator. * @param collator the RuleBasedCollator * @stable ICU 2.8 */ CollationElementIterator(UCharacterIterator source, RuleBasedCollator collator) { this(collator); setText(source); }
/** * CollationElementIterator constructor. This takes a source * string and a RuleBasedCollator. The iterator will walk through * the source string based on the rules defined by the * collator. If the source string is empty, NULLORDER will be * returned on the first call to next(). * * @param source the source string. * @param collator the RuleBasedCollator * @stable ICU 2.8 */ CollationElementIterator(String source, RuleBasedCollator collator) { this(collator); setText(source); } // Note: The constructors should take settings & tailoring, not a collator,
/** * {@inheritDoc} * @stable ICU 2.8 */ @Override public void setTarget(CharacterIterator text) { super.setTarget(text); textIter_.setText(text); }
utilIter_ = coleiter; } else { coleiter.setText(pattern_.text_);
utilIter_ = coleiter; } else { coleiter.setText(pattern_.text_);
textIter_.setText(search_.text());
setText(source.getText()); return;