Home
last modified time | relevance | path

Searched refs:getErrorIndex (Results 1 – 25 of 33) 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()
DOldDateFormatTest.java408 pp.getErrorIndex() == cur.length / 2); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
/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()
DTCKLocalizedFieldParser.java122 if (ppos.getErrorIndex() != -1) { in test_parse_textField()
123 assertEquals(ppos.getErrorIndex(), expectedPos); in test_parse_textField()
154 if (ppos.getErrorIndex() != -1) { in test_parse_textLocalDate()
155 assertEquals(ppos.getErrorIndex(), expectedPos); in test_parse_textLocalDate()
191 if (ppos.getErrorIndex() != -1) { in test_parse_WeekBasedYear()
192 assertEquals(ppos.getErrorIndex(), expectedPos); in test_parse_WeekBasedYear()
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()
DTCKDateTimeFormatterBuilder.java742 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_strict_firstFixedWidth()
754 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_strict_firstVariableWidth_success()
766 assertEquals(pp.getErrorIndex(), 5); in test_adjacent_strict_firstVariableWidth_fails()
776 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_lenient()
788 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_lenient_firstVariableWidth_success()
800 assertEquals(pp.getErrorIndex(), 5); in test_adjacent_lenient_firstVariableWidth_fails()
811 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_strict_fractionFollows()
824 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_strict_fractionFollows_2digit()
837 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_strict_fractionFollows_0digit()
849 assertEquals(pp.getErrorIndex(), -1); in test_adjacent_lenient_fractionFollows()
[all …]
DTCKZoneIdPrinterParser.java214 … assertEquals(pos.getErrorIndex(), expectedErrorIndex, "Incorrect error index parsing: " + text); in test_parseSuccess_plain()
231 …assertEquals(pos.getErrorIndex(), expectedErrorIndex >= 0 ? expectedErrorIndex + 3 : expectedErro… in test_parseSuccess_prefix()
247 …assertEquals(pos.getErrorIndex(), expectedErrorIndex, "Incorrect error index parsing: " + suffixTe… in test_parseSuccess_suffix()
264 assertEquals(pos.getErrorIndex() >= 0, true); in test_parseSuccess_caseSensitive()
270 … assertEquals(pos.getErrorIndex(), expectedErrorIndex, "Incorrect error index parsing: " + lcText); in test_parseSuccess_caseSensitive()
286 … assertEquals(pos.getErrorIndex(), expectedErrorIndex, "Incorrect error index parsing: " + lcText); in test_parseSuccess_caseInsensitive()
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 …]
DTCKLocalizedPrinterParser.java164 assertEquals(pos.getErrorIndex(), -1); in test_date_parse()
217 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.java128 assertEquals(pos.getErrorIndex(), 0); in test_parse_noMatch1()
136 assertEquals(pos.getErrorIndex(), 3); in test_parse_noMatch2()
144 assertEquals(pos.getErrorIndex(), 6); in test_parse_noMatch_atEnd()
288 assertEquals(pos.getErrorIndex(), 0); in test_parse_strict_caseSensitive_parseUpper()
309 assertEquals(pos.getErrorIndex(), 0); in test_parse_strict_caseSensitive_parseLower()
334 assertEquals(pos.getErrorIndex(), 0); in test_parse_full_strict_short_noMatch()
341 assertEquals(pos.getErrorIndex(), 0); in test_parse_full_strict_number_noMatch()
363 assertEquals(pos.getErrorIndex(), 0); in test_parse_short_strict_number_noMatch()
372 assertEquals(pos.getErrorIndex(), 0); in test_parse_french_short_strict_full_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()
DTestFractionPrinterParser.java330 assertEquals(ppos.getErrorIndex(), expected); in test_parse_nothing()
/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/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.java49 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.java87 public int getErrorIndex() { in getErrorIndex() method in IllformedLocaleException
DLocale.java2882 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setLocale()
2908 throw new IllformedLocaleException(sts.getErrorMessage(), sts.getErrorIndex()); in setLanguageTag()
2931 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setLanguage()
2952 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setScript()
2977 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setRegion()
3004 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setVariant()
3036 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setExtension()
3066 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in setUnicodeLocaleKeyword()
3087 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in addUnicodeLocaleAttribute()
3117 throw new IllformedLocaleException(e.getMessage(), e.getErrorIndex()); in removeUnicodeLocaleAttribute()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeParseException.java134 public int getErrorIndex() { in getErrorIndex() method in DateTimeParseException
DDateTimeFormatter.java1940 …if (context == null || pos.getErrorIndex() >= 0 || (position == null && pos.getIndex() < text.leng… in parseResolved0()
1947 if (pos.getErrorIndex() >= 0) { in parseResolved0()
1949 pos.getErrorIndex(), text, pos.getErrorIndex()); in parseResolved0()
2129 throw new ParseException(ex.getMessage(), ex.getErrorIndex()); in parseObject()
2141 if (pos.getErrorIndex() < 0) { in parseObject()
2147 if (pos.getErrorIndex() < 0) { in parseObject()
/libcore/ojluni/src/main/java/java/text/
DParsePosition.java116 public int getErrorIndex() in getErrorIndex() method in ParsePosition

12