/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()
|
/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 | 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 | TCKLocalizedFieldParser.java | 130 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()
|
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 | TCKDateTimeFormatterBuilder.java | 1117 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 …]
|
D | TCKZoneIdPrinterParser.java | 248 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()
|
D | TCKLocalizedPrinterParser.java | 166 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/ |
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 | 129 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()
|
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 | TestTextParserWithLocale.java | 164 assertEquals(pos.getErrorIndex(), 0); in test_parse_french_short_strict_full_noMatch()
|
/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/util/ |
D | IllformedLocaleExceptionTest.java | 34 assertEquals(-1, exception.getErrorIndex()); in testConstructor() 40 assertEquals(6, exception.getErrorIndex()); in testGetErrorIndex()
|
/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 | 50 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 | 88 public int getErrorIndex() { in getErrorIndex() method in IllformedLocaleException
|
D | Locale.java | 3033 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/ |
D | DateTimeFormatter.java | 2041 …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()
|
D | DateTimeParseException.java | 135 public int getErrorIndex() { in getErrorIndex() method in DateTimeParseException
|
/libcore/ojluni/src/main/java/java/text/ |
D | ParsePosition.java | 117 public int getErrorIndex() in getErrorIndex() method in ParsePosition
|