Home
last modified time | relevance | path

Searched refs:getErrorIndex (Results 1 – 14 of 14) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DParsePositionTest.java32 assertEquals("Initialization failed.", -1, pp1.getErrorIndex()); in test_ConstructorI()
55 assertEquals("getErrorIndex failed.", 56, pp.getErrorIndex()); in test_getErrorIndex()
72 + pp.getErrorIndex())); in test_hashCode()
81 assertEquals("setErrorIndex failed.", 4564, pp.getErrorIndex()); in test_setErrorIndexI()
DMessageFormatTest.java176 assertTrue("ParseErrorIndex is incorrect", pp.getErrorIndex() == cur.length / 2); in test_parseObjectLjava_lang_StringLjavajava_text_ParsePosition()
/libcore/luni/src/test/java/libcore/java/text/
DOldParsePositionTest.java39 assertEquals("getErrorIndex failed.", 56, pp.getErrorIndex()); in test_getErrorIndex()
42 pp.getErrorIndex()); in test_getErrorIndex()
44 pp.getErrorIndex()); in test_getErrorIndex()
DOldDateFormatTest.java402 pp.getErrorIndex() == cur.length / 2); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
DOldNumberFormatTest.java162 assertEquals(outIndex, position.getErrorIndex()); in parseObjectTest()
/libcore/luni/src/main/java/java/util/
DIllformedLocaleException.java54 public int getErrorIndex() { in getErrorIndex() method in IllformedLocaleException
/libcore/luni/src/main/java/java/text/
DParsePosition.java66 public int getErrorIndex() { in getErrorIndex() method in ParsePosition
DFormat.java152 throw new ParseException("Parse failure", position.getErrorIndex()); in parseObject()
DSimpleDateFormat.java867 return -position.getErrorIndex() - 1; in parse()
892 return -position.getErrorIndex() - 1; in parse()
933 return -position.getErrorIndex() - 1; in parse()
964 return -parsePosition.getErrorIndex() - 1; in parseFractionalSeconds()
1135 return -position.getErrorIndex() - 1; in parseNumber()
1186 return -position.getErrorIndex() - 1; in parseTimeZone()
1195 return -position.getErrorIndex() - 1; in parseTimeZone()
DChoiceFormat.java149 if (position.getErrorIndex() != -1 || index >= length) { in applyPattern()
DDateFormat.java580 position.getErrorIndex()); in parse()
DNumberFormat.java557 throw new ParseException("Unparseable number: \"" + string + "\"", pos.getErrorIndex()); in parse()
DMessageFormat.java827 throw new ParseException("Parse failure", position.getErrorIndex()); in parse()
883 if (internalPos.getErrorIndex() != -1) { in parse()
/libcore/luni/src/main/native/
Dlibcore_icu_NativeDecimalFormat.cpp326 if (pp.getErrorIndex() == -1) { in NativeDecimalFormat_parse()
329 env->CallVoidMethod(position, gPP_setErrorIndex, pp.getErrorIndex()); in NativeDecimalFormat_parse()