Searched refs:getBeginIndex (Results 1 - 17 of 17) sorted by relevance

/libcore/ojluni/src/main/java/java/text/
H A DCharacterIterator.java47 * are indexed with values beginning with the value returned by getBeginIndex() and
51 * getBeginIndex() to getEndIndex(); the value getEndIndex() is included to allow
57 * they would move outside the range from getBeginIndex() to getEndIndex() -1,
116 * Sets the position to getBeginIndex() and returns the character at that
119 * @see #getBeginIndex()
151 * at the new index. If the current index is getBeginIndex(), the index
152 * remains at getBeginIndex() and a value of DONE is returned.
154 * position is equal to getBeginIndex().
162 * getBeginIndex() to getEndIndex(). An IllegalArgumentException is thrown
172 public int getBeginIndex(); method in interface:CharacterIterator
[all...]
H A DFieldPosition.java168 public int getBeginIndex() { method in class:FieldPosition
H A DIcuIteratorWrapper.java321 if (offset < text.getBeginIndex() || offset > text.getEndIndex()) {
H A DStringCharacterIterator.java204 * Implements CharacterIterator.getBeginIndex() for String.
205 * @see CharacterIterator#getBeginIndex
207 public int getBeginIndex() method in class:StringCharacterIterator
H A DDecimalFormat.java507 icuFieldPosition.setBeginIndex(fp.getBeginIndex());
612 fieldPosition.setBeginIndex(icuFieldPosition.getBeginIndex());
632 fieldPosition.setBeginIndex(icuFieldPosition.getBeginIndex());
652 fieldPosition.setBeginIndex(icuFieldPosition.getBeginIndex());
672 fieldPosition.setBeginIndex(icuFieldPosition.getBeginIndex());
708 original.getEndIndex() - original.getBeginIndex());
710 for (int i = original.getBeginIndex(); i < original.getEndIndex(); i++) {
717 for (int i = original.getBeginIndex(); i < original.getEndIndex(); i++) {
H A DAttributedString.java99 int start = iterator.getBeginIndex();
182 this(text, text.getBeginIndex(), text.getEndIndex(), null);
239 int textBeginIndex = text.getBeginIndex();
679 int index = iterator.getBeginIndex();
847 public int getBeginIndex() { method in class:AttributedString.AttributedStringIterator
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DStringCharacterIteratorTest.java198 * @tests java.text.StringCharacterIterator.getBeginIndex()
202 assertEquals(0, fixture.getBeginIndex());
204 assertEquals(0, fixture.getBeginIndex());
207 assertEquals(1, fixture.getBeginIndex());
211 assertEquals("Wrong begin index 2", 2, it1.getBeginIndex());
408 assertEquals("Wrong begin index", 0, it.getBeginIndex());
421 assertEquals("Wrong begin index", 0, it.getBeginIndex());
435 assertEquals("Wrong begin index", 2, it.getBeginIndex());
517 assertEquals("Wrong begin index", 0, it1.getBeginIndex());
H A DFieldPositionTest.java108 * @tests java.text.FieldPosition#getBeginIndex()
111 // Test for method int java.text.FieldPosition.getBeginIndex()
115 assertEquals("getBeginIndex should have returned 2",
116 2, fpos.getBeginIndex());
187 .getBeginIndex());
191 Integer.MAX_VALUE, fpos.getBeginIndex());
195 -1, fpos.getBeginIndex());
H A DSupport_Format.java52 if (begin != pos.getBeginIndex() || end != pos.getEndIndex()) {
54 pos.getFieldAttribute() + " " + pos.getBeginIndex() + ".." + pos.getEndIndex());
H A DAttributedStringTest.java96 public int getBeginIndex() { method in class:AttributedStringTest.testAttributedCharacterIterator
H A DAttributedCharacterIteratorTest.java63 * @tests java.text.AttributedCharacterIterator#getBeginIndex()
69 assertEquals("Wrong begin index", 2, it.getBeginIndex());
H A DDecimalFormatTest.java2031 assertEquals(0, iterator.getBeginIndex());
2068 assertEquals(0, iterator.getBeginIndex());
2082 assertEquals(0, iterator.getBeginIndex());
2106 assertEquals(0, iterator.getBeginIndex());
H A DSimpleDateFormatTest.java404 "field: " + field, 1, position.getBeginIndex());
/libcore/luni/src/test/java/libcore/java/text/
H A DOldFormatTest.java70 assertEquals(0, aci.getBeginIndex());
H A DOldAttributedStringTest.java254 public int getBeginIndex() { method in class:OldAttributedStringTest.testAttributedCharacterIterator
H A DOldDateFormatTest.java121 .getBeginIndex() == sb.lastIndexOf("/") + 1);
/libcore/support/src/test/java/tests/support/
H A DSupport_Format.java54 + field, begin, pos.getBeginIndex());

Completed in 848 milliseconds