/libcore/luni/src/test/java/libcore/java/text/ |
D | OldParsePositionTest.java | 39 assertEquals("getErrorIndex failed.", 56, pp.getErrorIndex()); in test_getErrorIndex() 42 pp.getErrorIndex()); in test_getErrorIndex() 44 pp.getErrorIndex()); in test_getErrorIndex()
|
D | OldDateFormatTest.java | 408 pp.getErrorIndex() == cur.length / 2); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKPadPrinterParser.java | 134 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()
|
D | TCKLocalizedFieldParser.java | 122 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()
|
D | TCKChronoPrinterParser.java | 125 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()
|
D | TCKDateTimeFormatterBuilder.java | 742 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 …]
|
D | TCKZoneIdPrinterParser.java | 214 … 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()
|
D | TCKDateTimeFormatter.java | 490 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 …]
|
D | TCKLocalizedPrinterParser.java | 164 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/ |
D | TestReducedParser.java | 190 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 …]
|
D | TestNumberParser.java | 175 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 …]
|
D | TestTextParser.java | 128 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()
|
D | TestCharLiteralParser.java | 109 if (ppos.getErrorIndex() != -1) { in test_parse_success()
|
D | TestStringLiteralParser.java | 112 if (ppos.getErrorIndex() != -1) { in test_parse_success()
|
D | TestZoneOffsetParser.java | 397 assertEquals(pos.getErrorIndex(), expectedPosition); in test_parse_invalid() 416 assertEquals(pos.getErrorIndex(), 0); in test_parse_caseSensitiveUTC_unmatchedCase()
|
D | TestFractionPrinterParser.java | 330 assertEquals(ppos.getErrorIndex(), expected); in test_parse_nothing()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | ParsePositionTest.java | 32 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/ |
D | DateTimeParseExceptionTest.java | 35 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/ |
D | LocaleSyntaxException.java | 49 public int getErrorIndex() { in getErrorIndex() method in LocaleSyntaxException
|
D | ParseStatus.java | 53 public int getErrorIndex() { in getErrorIndex() method in ParseStatus
|
/libcore/ojluni/src/main/java/java/util/ |
D | IllformedLocaleException.java | 87 public int getErrorIndex() { in getErrorIndex() method in IllformedLocaleException
|
D | Locale.java | 2882 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/ |
D | DateTimeParseException.java | 134 public int getErrorIndex() { in getErrorIndex() method in DateTimeParseException
|
D | DateTimeFormatter.java | 1940 …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/ |
D | ParsePosition.java | 116 public int getErrorIndex() in getErrorIndex() method in ParsePosition
|