Home
last modified time | relevance | path

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

12

/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()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKPadPrinterParser.java134 assertEquals(pos.getErrorIndex(), expectedErrorIndex); in test_parseStrict()
175 assertEquals(pos.getErrorIndex(), expectedErrorIndex); in test_parseLenient()
190 assertEquals(pos.getErrorIndex(), 2); in test_parse_decoratedStartsWithPad()
199 assertEquals(pos.getErrorIndex(), -1); in test_parse_decoratedStartsWithPad_number()
210 assertEquals(pos.getErrorIndex(), -1); in test_parse_decoratedEmpty_strict()
219 assertEquals(pos.getErrorIndex(), -1); in test_parse_decoratedEmpty_lenient()
DTCKChronoPrinterParser.java125 assertEquals(pos.getErrorIndex(), -1); in test_parseValid_caseSensitive()
134 assertEquals(pos.getErrorIndex(), 0); in test_parseValid_caseSensitive_lowercaseRejected()
143 assertEquals(pos.getErrorIndex(), -1); in test_parseValid_caseInsensitive()
163 assertEquals(pos.getErrorIndex(), 0); in test_parseInvalid()
DTCKLocalizedFieldParser.java130 if (ppos.getErrorIndex() != -1) { in test_parse_textField()
131 assertEquals(ppos.getErrorIndex(), expectedPos); in test_parse_textField()
162 if (ppos.getErrorIndex() != -1) { in test_parse_textLocalDate()
163 assertEquals(ppos.getErrorIndex(), expectedPos); in test_parse_textLocalDate()
199 if (ppos.getErrorIndex() != -1) { in test_parse_WeekBasedYear()
200 assertEquals(ppos.getErrorIndex(), expectedPos); in test_parse_WeekBasedYear()
DTCKDateTimeFormatter.java490 assertEquals(pos.getErrorIndex(), -1); in test_parse_CharSequence_ParsePosition()
502 assertEquals(pos.getErrorIndex(), -1); in test_parse_CharSequence_ParsePosition_resolved()
521 assertEquals(ex.getErrorIndex(), 7); in test_parse_CharSequence_ParsePosition_parseError()
567 assertEquals(ex.getErrorIndex(), 11); in test_parse_Query_String_parseError()
580 assertEquals(ex.getErrorIndex(), 3); in test_parse_Query_String_parseErrorLongText()
593 assertEquals(ex.getErrorIndex(), 13); in test_parse_Query_String_parseIncomplete()
634 assertEquals(ex.getErrorIndex(), 8); in test_parseBest_String_parseError()
648 assertEquals(ex.getErrorIndex(), 3); in test_parseBest_String_parseErrorLongText()
662 assertEquals(ex.getErrorIndex(), 5); in test_parseBest_String_parseIncomplete()
698 assertEquals(pos.getErrorIndex(), -1); in test_parseUnresolved_StringParsePosition()
[all …]
DTCKDateTimeFormatterBuilder.java1117 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_strict_firstFixedWidth()
1129 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_strict_firstVariableWidth_success()
1141 assertEquals(pp.getErrorIndex(), 5); in test_adjacent_strict_firstVariableWidth_fails()
1151 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_lenient()
1163 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_lenient_firstVariableWidth_success()
1175 assertEquals(pp.getErrorIndex(), 5); in test_adjacent_lenient_firstVariableWidth_fails()
1186 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_strict_fractionFollows()
1199 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_strict_fractionFollows_2digit()
1212 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_strict_fractionFollows_0digit()
1224 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_lenient_fractionFollows()
[all …]
DTCKZoneIdPrinterParser.java248 assertEquals(pos.getErrorIndex() >= 0, true); in test_ZoneId_parseSuccess_caseSensitive()
300 assertEquals(pos.getErrorIndex() >= 0, true); in test_ZoneOrOffsetId_parseSuccess_caseSensitive()
319 … assertEquals(pos.getErrorIndex(), expectedErrorIndex, "Incorrect error index parsing: " + text); in test()
DTCKLocalizedPrinterParser.java166 assertEquals(pos.getErrorIndex(), -1); in test_date_parse()
227 assertEquals(pos.getErrorIndex(), -1); in test_time_parse()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestReducedParser.java190 if (ppos.getErrorIndex() != -1) { in test_parseAllStrict()
191 assertEquals(ppos.getErrorIndex(), parseLen, "error case parse position"); in test_parseAllStrict()
204 if (ppos.getErrorIndex() != -1) { in test_parseAllLenient()
205 assertEquals(ppos.getErrorIndex(), parseLen, "error case parse position"); in test_parseAllLenient()
277 if (ppos.getErrorIndex() != -1) { in test_parseStrict()
278 assertEquals(ppos.getErrorIndex(), strict.parseLen, "error case parse position"); in test_parseStrict()
292 if (ppos.getErrorIndex() != -1) { in test_parseStrict_baseDate()
293 assertEquals(ppos.getErrorIndex(), strict.parseLen, "error case parse position"); in test_parseStrict_baseDate()
310 if (ppos.getErrorIndex() != -1) { in test_parseLenient()
311 assertEquals(ppos.getErrorIndex(), lenient.parseLen, "error case parse position"); in test_parseLenient()
[all …]
DTestNumberParser.java175 if (ppos.getErrorIndex() != -1) { in test_parse_fresh()
176 assertEquals(ppos.getErrorIndex(), expectedPos); in test_parse_fresh()
195 if (ppos.getErrorIndex() != -1) { in test_parse_textField()
196 assertEquals(ppos.getErrorIndex(), expectedPos); in test_parse_textField()
311 if (pos.getErrorIndex() != -1) { in test_parseSignsStrict()
312 assertEquals(pos.getErrorIndex(), parseLen); in test_parseSignsStrict()
421 if (pos.getErrorIndex() != -1) { in test_parseSignsLenient()
422 assertEquals(pos.getErrorIndex(), parseLen); in test_parseSignsLenient()
512 if (pos.getErrorIndex() != -1) { in test_parseDigitsLenient()
513 assertEquals(pos.getErrorIndex(), parseLen); in test_parseDigitsLenient()
[all …]
DTestTextParser.java129 assertEquals(pos.getErrorIndex(), 0); in test_parse_noMatch1()
137 assertEquals(pos.getErrorIndex(), 3); in test_parse_noMatch2()
145 assertEquals(pos.getErrorIndex(), 6); in test_parse_noMatch_atEnd()
250 assertEquals(pos.getErrorIndex(), 0); in test_parse_strict_caseSensitive_parseUpper()
271 assertEquals(pos.getErrorIndex(), 0); in test_parse_strict_caseSensitive_parseLower()
296 assertEquals(pos.getErrorIndex(), 0); in test_parse_full_strict_short_noMatch()
303 assertEquals(pos.getErrorIndex(), 0); in test_parse_full_strict_number_noMatch()
325 assertEquals(pos.getErrorIndex(), 0); in test_parse_short_strict_number_noMatch()
DTestCharLiteralParser.java109 if (ppos.getErrorIndex() != -1) { in test_parse_success()
DTestStringLiteralParser.java112 if (ppos.getErrorIndex() != -1) { in test_parse_success()
DTestZoneOffsetParser.java397 assertEquals(pos.getErrorIndex(), expectedPosition); in test_parse_invalid()
416 assertEquals(pos.getErrorIndex(), 0); in test_parse_caseSensitiveUTC_unmatchedCase()
DTestTextParserWithLocale.java164 assertEquals(pos.getErrorIndex(), 0); in test_parse_french_short_strict_full_noMatch()
/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()
82 assertEquals("setErrorIndex failed.", 4564, pp.getErrorIndex()); in test_setErrorIndexI()
/libcore/luni/src/test/java/libcore/java/util/
DIllformedLocaleExceptionTest.java34 assertEquals(-1, exception.getErrorIndex()); in testConstructor()
40 assertEquals(6, exception.getErrorIndex()); in testGetErrorIndex()
/libcore/luni/src/test/java/libcore/java/time/format/
DDateTimeParseExceptionTest.java35 assertEquals(42, ex.getErrorIndex()); in test_constructor_message_parsedData_errorIndex()
46 assertEquals(42, ex.getErrorIndex()); in test_constructor_message_parsedData_errorIndex_cause()
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleSyntaxException.java50 public int getErrorIndex() { in getErrorIndex() method in LocaleSyntaxException
DParseStatus.java53 public int getErrorIndex() { in getErrorIndex() method in ParseStatus
/libcore/ojluni/src/main/java/java/util/
DIllformedLocaleException.java88 public int getErrorIndex() { in getErrorIndex() method in IllformedLocaleException
DLocale.java3033 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex());
3059 throw new IllformedLocaleException(sts.getErrorMessage(), sts.getErrorIndex());
3082 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex());
3103 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex());
3128 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex());
3155 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex());
3187 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex());
3217 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex());
3238 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex());
3262 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex());
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java2041 …if (context == null || pos.getErrorIndex() >= 0 || (position == null && pos.getIndex() < text.leng… in parseResolved0()
2048 if (pos.getErrorIndex() >= 0) { in parseResolved0()
2050 pos.getErrorIndex(), text, pos.getErrorIndex()); in parseResolved0()
2230 throw new ParseException(ex.getMessage(), ex.getErrorIndex()); in parseObject()
2242 if (pos.getErrorIndex() < 0) { in parseObject()
2248 if (pos.getErrorIndex() < 0) { in parseObject()
DDateTimeParseException.java135 public int getErrorIndex() { in getErrorIndex() method in DateTimeParseException
/libcore/ojluni/src/main/java/java/text/
DParsePosition.java117 public int getErrorIndex() in getErrorIndex() method in ParsePosition

12