Searched refs:CharacterIterator (Results 1 - 25 of 60) sorted by relevance

123

/external/icu4c/common/
H A Dchariter.cpp21 CharacterIterator::CharacterIterator() function in class:CharacterIterator
25 CharacterIterator::CharacterIterator(int32_t length) function in class:CharacterIterator
32 CharacterIterator::CharacterIterator(int32_t length, int32_t position) function in class:CharacterIterator
44 CharacterIterator::CharacterIterator(int32_t length, int32_t textBegin, int32_t textEnd, int32_t position) function in class:CharacterIterator
66 CharacterIterator::CharacterIterator(cons function in class:CharacterIterator
[all...]
H A Duchriter.cpp19 : CharacterIterator(),
27 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0),
35 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0, position),
45 : CharacterIterator(textPtr != 0 ? (length>=0 ? length : u_strlen(textPtr)) : 0, textBegin, textEnd, position),
51 : CharacterIterator(that),
58 CharacterIterator::operator=(that);
89 CharacterIterator*
294 UCharCharacterIterator::move(int32_t delta, CharacterIterator::EOrigin origin) {
319 UCharCharacterIterator::move32(int32_t delta, CharacterIterator::EOrigin origin) {
H A Duiter.cpp347 /* UCharIterator wrapper around CharacterIterator --------------------------- */
350 * This is wrapper code around a C++ CharacterIterator to
353 * The UCharIterator.context field holds a pointer to the CharacterIterator.
362 return ((CharacterIterator *)(iter->context))->startIndex();
364 return ((CharacterIterator *)(iter->context))->getIndex();
366 return ((CharacterIterator *)(iter->context))->endIndex();
368 return ((CharacterIterator *)(iter->context))->getLength();
380 ((CharacterIterator *)(iter->context))->setIndex(delta);
381 return ((CharacterIterator *)(iter->context))->getIndex();
385 return ((CharacterIterator *)(ite
[all...]
/external/icu4c/common/unicode/
H A Dchariter.h194 * CharacterIterator classes but extends them significantly:
196 * <li>CharacterIterator is now a subclass of ForwardCharacterIterator.</li>
219 * void forward1(CharacterIterator &it) {
230 * void forward2(CharacterIterator &it) {
232 * for(c=it.firstPostInc(); c!=CharacterIterator::DONE; c=it.nextPostInc()) {
239 * void backward1(CharacterIterator &it) {
249 * void backward2(CharacterIterator &it) {
251 * for(c=it.last(); c!=CharacterIterator::DONE; c=it.previous()) {
259 * void random(CharacterIterator &it) {
261 * it.move32(3, CharacterIterator
356 class U_COMMON_API CharacterIterator : public ForwardCharacterIterator { class in inherits:ForwardCharacterIterator
[all...]
H A Dschriter.h32 * A concrete subclass of CharacterIterator that iterates over the
39 * @see CharacterIterator
131 virtual CharacterIterator* clone(void) const;
H A Duchriter.h22 * A concrete subclass of CharacterIterator that iterates over the
29 * @see CharacterIterator
33 class U_COMMON_API UCharCharacterIterator : public CharacterIterator {
130 * @return the CharacterIterator newly created
133 virtual CharacterIterator* clone(void) const;
H A Dnormlzr.h48 * use a CharacterIterator as input. It is possible to pass a string which
49 * is then internally wrapped in a CharacterIterator.
68 * with post-increment semantics (like CharacterIterator::next32PostInc()).
70 * with pre-decrement semantics (like CharacterIterator::previous32()).
125 * It is for this reason that Normalizer does not implement the CharacterIterator interface.
178 Normalizer(const CharacterIterator& iter, UNormalizationMode mode);
547 * of the <code>CharacterIterator</code> or the start (i.e. index 0) of the string
557 * of the <code>CharacterIterator</code> or the length of the string
682 * @param newText a CharacterIterator object that replaces the current input text
686 void setText(const CharacterIterator
[all...]
H A Drbbi.h79 CharacterIterator *fCharIter;
90 * dummy CharacterIterator over an empty string will
353 * Return a CharacterIterator over the text being analyzed.
356 * return the same CharacterIterator.
366 * returns an CharacterIterator containing no text.
376 virtual CharacterIterator& getText(void) const;
402 virtual void adoptText(CharacterIterator* newText);
H A Duiter.h32 class CharacterIterator;
110 * Use iter->move(iter, index, UITER_ZERO) like CharacterIterator::setIndex(index).
313 * CharacterIterator, Replaceable, or implemented using simple strings, etc.
656 * Set up a UCharIterator to wrap around a C++ CharacterIterator.
659 * CharacterIterator charIter.
661 * The CharacterIterator pointer charIter is set into UCharIterator.context
662 * without copying or cloning the CharacterIterator object.
664 * The iteration index and boundaries are controlled by the CharacterIterator.
670 * @param charIter CharacterIterator to wrap
676 uiter_setCharacterIterator(UCharIterator *iter, U_NAMESPACE_QUALIFIER CharacterIterator *charIte
[all...]
/external/icu4c/test/intltest/
H A Dcitrtest.h14 * Some tests for CharacterIterator and StringCharacterIterator
40 void TestUCharIterator(UCharIterator *iter, CharacterIterator &ci, const char *moves, const char *which);
H A Dcitrtest.cpp24 class SCharacterIterator : public CharacterIterator {
56 virtual CharacterIterator* clone(void) const {
77 virtual int32_t move(int32_t delta,CharacterIterator::EOrigin origin){
100 virtual int32_t move32(int32_t delta, CharacterIterator::EOrigin origin){
199 CharacterIterator* test1 = new StringCharacterIterator(testText);
200 CharacterIterator* test1b= new StringCharacterIterator(testText, -1);
201 CharacterIterator* test1c= new StringCharacterIterator(testText, 100);
202 CharacterIterator* test1d= new StringCharacterIterator(testText, -2, 100, 5);
203 CharacterIterator* test1e= new StringCharacterIterator(testText, 100, 20, 5);
204 CharacterIterator* test
[all...]
H A Ddadrcoll.cpp97 while(currChar != CharacterIterator::DONE) {
104 case CharacterIterator::DONE:
108 currChar = CharacterIterator::DONE;
112 currChar = CharacterIterator::DONE;
116 currChar = CharacterIterator::DONE;
130 if(currChar == CharacterIterator::DONE) {
/external/icu4c/samples/citer/
H A Dciter.cpp29 } else if (ch == CharacterIterator::DONE) {
30 u_fprintf(out, "[CharacterIterator::DONE = 0xFFFF]");
83 if (c == CharacterIterator::DONE && i != u_strlen(testText)) {
95 if (c != CharacterIterator::DONE) {
103 } while (c != CharacterIterator::DONE);
146 if (c == CharacterIterator::DONE) {
158 if (c != CharacterIterator::DONE) {
165 } while (c != CharacterIterator::DONE);
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
H A DStringCharacterIteratorTest.java20 import java.text.CharacterIterator;
194 assertTrue("Not DONE", it1.first() == CharacterIterator.DONE);
283 assertEquals(CharacterIterator.DONE, fixture.next());
285 assertEquals(CharacterIterator.DONE, fixture.next());
287 assertEquals(CharacterIterator.DONE, fixture.next());
295 assertTrue("Wrong next char3", it1.next() == CharacterIterator.DONE);
296 assertTrue("Wrong next char4", it1.next() == CharacterIterator.DONE);
300 it1.current() == CharacterIterator.DONE);
308 assertEquals(CharacterIterator.DONE, fixture.previous());
315 assertEquals(CharacterIterator
[all...]
H A DAttributedCharacterIteratorTest.java22 import java.text.CharacterIterator;
40 assertTrue("Wrong final", it.current() == CharacterIterator.DONE);
59 assertTrue("Wrong first4", it.first() == CharacterIterator.DONE);
112 assertTrue("Wrong last4", it.last() == CharacterIterator.DONE);
126 assertTrue("Wrong final", it.next() == CharacterIterator.DONE);
H A DAttributedStringTest.java21 import java.text.CharacterIterator;
39 while ((ch = it.next()) != CharacterIterator.DONE)
/external/icu4c/i18n/unicode/
H A Dstsearch.h203 * Note: No parsing of the text within the <tt>CharacterIterator</tt>
205 * in <tt>CharacterIterator</tt> will be used as it is.
222 StringSearch(const UnicodeString &pattern, CharacterIterator &text,
232 * Note: No parsing of the text within the <tt>CharacterIterator</tt>
234 * in <tt>CharacterIterator</tt> will be used as it is.
252 StringSearch(const UnicodeString &pattern, CharacterIterator &text,
351 * Note: No parsing of the text within the <tt>CharacterIterator</tt>
353 * in <tt>CharacterIterator</tt> will be used as it is.
359 virtual void setText(CharacterIterator &text, UErrorCode &status);
H A Dcoleitr.h250 void setText(CharacterIterator& str, UErrorCode& status);
321 CollationElementIterator(const CharacterIterator& sourceText,
H A Dsearch.h244 * Note: No parsing of the text within the <tt>CharacterIterator</tt>
246 * in <tt>CharacterIterator</tt> will be used as it is.
253 virtual void setText(CharacterIterator &text, UErrorCode &status);
463 * Note: No parsing of the text within the <tt>CharacterIterator</tt>
465 * in <tt>CharacterIterator</tt> will be used as it is.
479 SearchIterator(CharacterIterator &text, BreakIterator *breakiter = NULL);
/external/webkit/Source/WebCore/dom/
H A DDOMTextContentWalker.cpp50 CharacterIterator forwardChar(forwardRange.get(), TextIteratorStopsOnFormControls);
72 CharacterIterator iterator(m_contentRange.get());
/external/webkit/Source/WebCore/platform/text/gtk/
H A DTextBreakIteratorGtk.cpp37 class CharacterIterator { class in namespace:WebCore
63 int CharacterIterator::characterSize(int index)
75 bool CharacterIterator::setText(const UChar* string, int length)
91 void CharacterIterator::setIndex(int index)
114 void CharacterIterator::setUTF16Index(int index)
137 int CharacterIterator::first()
143 int CharacterIterator::last()
150 int CharacterIterator::next()
165 int CharacterIterator::previous()
191 CharacterIterator m_charIterato
[all...]
/external/webkit/Source/JavaScriptCore/icu/unicode/
H A Duiter.h32 class CharacterIterator;
110 * Use iter->move(iter, index, UITER_ZERO) like CharacterIterator::setIndex(index).
313 * CharacterIterator, Replaceable, or implemented using simple strings, etc.
656 * Set up a UCharIterator to wrap around a C++ CharacterIterator.
659 * CharacterIterator charIter.
661 * The CharacterIterator pointer charIter is set into UCharIterator.context
662 * without copying or cloning the CharacterIterator object.
664 * The iteration index and boundaries are controlled by the CharacterIterator.
670 * @param charIter CharacterIterator to wrap
676 uiter_setCharacterIterator(UCharIterator *iter, CharacterIterator *charIte
[all...]
/external/webkit/Source/JavaScriptGlue/icu/unicode/
H A Duiter.h32 class CharacterIterator;
110 * Use iter->move(iter, index, UITER_ZERO) like CharacterIterator::setIndex(index).
313 * CharacterIterator, Replaceable, or implemented using simple strings, etc.
656 * Set up a UCharIterator to wrap around a C++ CharacterIterator.
659 * CharacterIterator charIter.
661 * The CharacterIterator pointer charIter is set into UCharIterator.context
662 * without copying or cloning the CharacterIterator object.
664 * The iteration index and boundaries are controlled by the CharacterIterator.
670 * @param charIter CharacterIterator to wrap
676 uiter_setCharacterIterator(UCharIterator *iter, CharacterIterator *charIte
[all...]
/external/webkit/Source/WebCore/icu/unicode/
H A Duiter.h32 class CharacterIterator;
110 * Use iter->move(iter, index, UITER_ZERO) like CharacterIterator::setIndex(index).
313 * CharacterIterator, Replaceable, or implemented using simple strings, etc.
656 * Set up a UCharIterator to wrap around a C++ CharacterIterator.
659 * CharacterIterator charIter.
661 * The CharacterIterator pointer charIter is set into UCharIterator.context
662 * without copying or cloning the CharacterIterator object.
664 * The iteration index and boundaries are controlled by the CharacterIterator.
670 * @param charIter CharacterIterator to wrap
676 uiter_setCharacterIterator(UCharIterator *iter, CharacterIterator *charIte
[all...]
/external/webkit/Source/WebKit/mac/icu/unicode/
H A Duiter.h32 class CharacterIterator;
110 * Use iter->move(iter, index, UITER_ZERO) like CharacterIterator::setIndex(index).
313 * CharacterIterator, Replaceable, or implemented using simple strings, etc.
656 * Set up a UCharIterator to wrap around a C++ CharacterIterator.
659 * CharacterIterator charIter.
661 * The CharacterIterator pointer charIter is set into UCharIterator.context
662 * without copying or cloning the CharacterIterator object.
664 * The iteration index and boundaries are controlled by the CharacterIterator.
670 * @param charIter CharacterIterator to wrap
676 uiter_setCharacterIterator(UCharIterator *iter, CharacterIterator *charIte
[all...]

Completed in 874 milliseconds

123