/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestZoneOffsetParser.java | 66 import java.text.ParsePosition; 91 getFormatter(pattern, noOffsetText).parseUnresolved(text, new ParsePosition(pos)); in test_parse_error() 99 ParsePosition pos = new ParsePosition(0); in test_parse_exactMatch_UTC() 106 ParsePosition pos = new ParsePosition(0); in test_parse_startStringMatch_UTC() 113 ParsePosition pos = new ParsePosition(5); in test_parse_midStringMatch_UTC() 120 ParsePosition pos = new ParsePosition(5); in test_parse_endStringMatch_UTC() 128 ParsePosition pos = new ParsePosition(0); in test_parse_exactMatch_UTC_EmptyUTC() 135 ParsePosition pos = new ParsePosition(0); in test_parse_startStringMatch_UTC_EmptyUTC() 142 ParsePosition pos = new ParsePosition(5); in test_parse_midStringMatch_UTC_EmptyUTC() 149 ParsePosition pos = new ParsePosition(5); in test_parse_endStringMatch_UTC_EmptyUTC() [all …]
|
D | TestTextParser.java | 69 import java.text.ParsePosition; 100 getFormatter(field, style).parseUnresolved(text, new ParsePosition(pos)); in test_parse_error() 108 ParsePosition pos = new ParsePosition(3); in test_parse_midStr() 116 ParsePosition pos = new ParsePosition(0); in test_parse_remainderIgnored() 125 ParsePosition pos = new ParsePosition(0); in test_parse_noMatch1() 133 ParsePosition pos = new ParsePosition(3); in test_parse_noMatch2() 141 ParsePosition pos = new ParsePosition(6); in test_parse_noMatch_atEnd() 250 ParsePosition pos = new ParsePosition(0); in test_parseText() 257 ParsePosition pos = new ParsePosition(0); in test_parseNumber() 265 ParsePosition pos = new ParsePosition(0); in test_parseStandaloneText() [all …]
|
D | TestSettingsParser.java | 64 import java.text.ParsePosition; 97 ParsePosition pos = new ParsePosition(0); in test_parse_changeStyle_sensitive() 104 ParsePosition pos = new ParsePosition(0); in test_parse_changeStyle_insensitive() 111 ParsePosition pos = new ParsePosition(0); in test_parse_changeStyle_strict() 118 ParsePosition pos = new ParsePosition(0); in test_parse_changeStyle_lenient()
|
D | TestReducedParser.java | 72 import java.text.ParsePosition; 123 getFormatter0(field, width, baseValue).parseUnresolved(text, new ParsePosition(pos)); in test_parse_error() 131 ParsePosition pos = new ParsePosition(0); in test_parse_fieldRangeIgnored() 187 ParsePosition ppos = new ParsePosition(pos); in test_parseAllStrict() 201 ParsePosition ppos = new ParsePosition(pos); in test_parseAllLenient() 274 ParsePosition ppos = new ParsePosition(pos); in test_parseStrict() 289 ParsePosition ppos = new ParsePosition(pos); in test_parseStrict_baseDate() 307 ParsePosition ppos = new ParsePosition(pos); in test_parseLenient() 322 ParsePosition ppos = new ParsePosition(pos); in test_parseLenient_baseDate() 368 ParsePosition ppos = new ParsePosition(0); in test_parseAdjacent() [all …]
|
D | TestFractionPrinterParser.java | 67 import java.text.ParsePosition; 244 ParsePosition pos = new ParsePosition(0); in test_reverseParse() 253 ParsePosition pos = new ParsePosition((result.startsWith(".") ? 1 : 0)); in test_reverseParse_noDecimalPoint() 262 ParsePosition pos = new ParsePosition(0); in test_reverseParse_followedByNonDigit() 280 ParsePosition pos = new ParsePosition(1); in test_reverseParse_preceededByNonDigit() 297 ParsePosition pos = new ParsePosition(0); in test_reverseParse_seconds() 328 ParsePosition ppos = new ParsePosition(pos); in test_parse_nothing()
|
D | TestCharLiteralParser.java | 67 import java.text.ParsePosition; 107 ParsePosition ppos = new ParsePosition(pos); in test_parse_success() 131 ParsePosition ppos = new ParsePosition(pos); in test_parse_error()
|
D | TestStringLiteralParser.java | 67 import java.text.ParsePosition; 110 ParsePosition ppos = new ParsePosition(pos); in test_parse_success() 134 ParsePosition ppos = new ParsePosition(pos); in test_parse_error()
|
D | TestNumberParser.java | 70 import java.text.ParsePosition; 98 getFormatter(field, min, max, style).parseUnresolved(text, new ParsePosition(pos)); in test_parse_error() 168 ParsePosition ppos = new ParsePosition(pos); in test_parse_fresh() 188 ParsePosition ppos = new ParsePosition(pos); in test_parse_textField() 309 ParsePosition pos = new ParsePosition(0); in test_parseSignsStrict() 419 ParsePosition pos = new ParsePosition(0); in test_parseSignsLenient() 510 ParsePosition pos = new ParsePosition(0); in test_parseDigitsLenient() 544 ParsePosition pos = new ParsePosition(0); in test_parseDigitsAdjacentLenient()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | ParsePositionTest.java | 19 import java.text.ParsePosition; 23 ParsePosition pp; 30 ParsePosition pp1 = new ParsePosition(Integer.MIN_VALUE); in test_ConstructorI() 41 ParsePosition pp2 = new ParsePosition(43); in test_equalsLjava_lang_Object() 70 ParsePosition pp2 = new ParsePosition(Integer.MAX_VALUE); in test_hashCode() 109 pp = new ParsePosition(Integer.MAX_VALUE); in setUp()
|
D | DecimalFormatTest.java | 29 import java.text.ParsePosition; 96 Number number = form.parse("23.1", new ParsePosition(0)); in test_parse_returnType() 103 number = form.parse("23.1", new ParsePosition(0)); in test_parse_returnType() 107 number = form.parse("23.1", new ParsePosition(0)); in test_parse_returnType() 118 number = form.parse("23.1f", new ParsePosition(0)); in test_parse_returnType() 122 number = form.parse("23.0", new ParsePosition(0)); in test_parse_returnType() 125 number = form.parse("-0.0", new ParsePosition(0)); in test_parse_returnType() 130 number = form.parse("9223372036854775807.00", new ParsePosition(0)); in test_parse_returnType() 132 number = form.parse("9223372036854775808.00", new ParsePosition(0)); in test_parse_returnType() 135 number = form.parse("-9223372036854775808.00", new ParsePosition(0)); in test_parse_returnType() [all …]
|
D | ChoiceFormatTest.java | 23 import java.text.ParsePosition; 337 .parse("One", new ParsePosition(0)).intValue()); in test_parseLjava_lang_StringLjava_text_ParsePosition() 339 ParsePosition pos = new ParsePosition(0); in test_parseLjava_lang_StringLjava_text_ParsePosition() 345 pos = new ParsePosition(0); in test_parseLjava_lang_StringLjava_text_ParsePosition() 349 pos = new ParsePosition(2); in test_parseLjava_lang_StringLjava_text_ParsePosition()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldParsePositionTest.java | 19 import java.text.ParsePosition; 23 ParsePosition pp = new ParsePosition(Integer.MAX_VALUE); 27 ParsePosition pp1 = new ParsePosition(0); in test_hashCode() 28 ParsePosition pp2 = new ParsePosition(0); in test_hashCode()
|
D | OldNumberFormatTest.java | 24 import java.text.ParsePosition; 112 new ParsePosition(-1))); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 115 new ParsePosition(1), new Double(23.123), 7, true); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 118 new ParsePosition(3), new Double(0.123), 7, true); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 121 new ParsePosition(3), new Double(123.123), 10, true); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 124 new ParsePosition(0), null, 0, false); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 128 new ParsePosition(3), new Long(123), 6, true); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 132 new ParsePosition(1), new Double(-123123.123), 13, true); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 135 new ParsePosition(0), null, 0, false); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 138 new ParsePosition(13), null, 13, false); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() [all …]
|
D | OldFormatTest.java | 24 import java.text.ParsePosition; 39 public Object parseObject(String source, ParsePosition pos) { in parseObject()
|
D | DecimalFormatTest.java | 27 import java.text.ParsePosition; 238 df.parse(null, new ParsePosition(0)); in testBug15081434() 769 ParsePosition pos = new ParsePosition(0); in assertParseError() 787 ParsePosition expectedPos = new ParsePosition(expectedIndex); in assertParsed() 788 ParsePosition pos = new ParsePosition(0); in assertParsed() 795 private static String describeParseResult(Number result, ParsePosition pos) { in describeParseResult()
|
/libcore/ojluni/src/main/java/java/text/ |
D | ParsePosition.java | 57 public class ParsePosition { class 93 public ParsePosition(int index) { in ParsePosition() method in ParsePosition 127 if (!(obj instanceof ParsePosition)) in equals() 129 ParsePosition other = (ParsePosition) obj; in equals()
|
D | Format.java | 230 public abstract Object parseObject (String source, ParsePosition pos); in parseObject() 242 ParsePosition pos = new ParsePosition(0); in parseObject()
|
D | DateFormat.java | 359 ParsePosition pos = new ParsePosition(0); in parse() 393 public abstract Date parse(String source, ParsePosition pos); in parse() 419 public Object parseObject(String source, ParsePosition pos) { in parseObject()
|
D | NumberFormat.java | 275 public final Object parseObject(String source, ParsePosition pos) { in parseObject() 357 public abstract Number parse(String source, ParsePosition parsePosition); in parse() 372 ParsePosition parsePosition = new ParsePosition(0); in parse()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatterBuilder.java | 70 import java.text.ParsePosition; 740 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_firstFixedWidth() 752 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_firstVariableWidth_success() 764 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_firstVariableWidth_fails() 774 ParsePosition pp = new ParsePosition(0); in test_adjacent_lenient() 786 ParsePosition pp = new ParsePosition(0); in test_adjacent_lenient_firstVariableWidth_success() 798 ParsePosition pp = new ParsePosition(0); in test_adjacent_lenient_firstVariableWidth_fails() 809 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_fractionFollows() 822 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_fractionFollows_2digit() 835 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_fractionFollows_0digit() [all …]
|
D | TCKLocalizedFieldParser.java | 65 import java.text.ParsePosition; 117 ParsePosition ppos = new ParsePosition(pos); in test_parse_textField() 150 ParsePosition ppos = new ParsePosition(pos); in test_parse_textLocalDate() 187 ParsePosition ppos = new ParsePosition(pos); in test_parse_WeekBasedYear()
|
D | TCKDateTimeFormatter.java | 75 import java.text.ParsePosition; 487 ParsePosition pos = new ParsePosition(3); in test_parse_CharSequence_ParsePosition() 499 ParsePosition pos = new ParsePosition(3); in test_parse_CharSequence_ParsePosition_resolved() 516 ParsePosition pos = new ParsePosition(3); in test_parse_CharSequence_ParsePosition_parseError() 529 test.parse("Text", new ParsePosition(5)); in test_parse_CharSequence_ParsePosition_indexTooBig() 535 test.parse((CharSequence) null, new ParsePosition(0)); in test_parse_CharSequence_ParsePosition_nullText() 541 test.parse("Text", (ParsePosition) null); in test_parse_CharSequence_ParsePosition_nullParsePosition() 695 ParsePosition pos = new ParsePosition(0); in test_parseUnresolved_StringParsePosition() 705 ParsePosition pos = new ParsePosition(0); in test_parseUnresolved_StringParsePosition_parseError() 716 ParsePosition pos = new ParsePosition(3); in test_parseUnresolved_StringParsePosition_duplicateFieldSameValue() [all …]
|
D | TCKChronoPrinterParser.java | 64 import java.text.ParsePosition; 87 private ParsePosition pos; 92 pos = new ParsePosition(0); in setUp() 98 builder.appendChronologyId().toFormatter().parseUnresolved("ISO", new ParsePosition(-1)); in test_parse_negativePosition() 103 builder.appendChronologyId().toFormatter().parseUnresolved("ISO", new ParsePosition(4)); in test_parse_offEndPosition()
|
D | TCKPadPrinterParser.java | 67 import java.text.ParsePosition; 83 private ParsePosition pos; 88 pos = new ParsePosition(0); in setUp() 95 builder.toFormatter().parseUnresolved("--Z", new ParsePosition(-1)); in test_parse_negativePosition() 101 builder.toFormatter().parseUnresolved("--Z", new ParsePosition(4)); in test_parse_offEndPosition()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatter.java | 78 import java.text.ParsePosition; 1815 public TemporalAccessor parse(CharSequence text, ParsePosition position) { in parse() 1937 private TemporalAccessor parseResolved0(final CharSequence text, final ParsePosition position) { in parseResolved0() 1938 ParsePosition pos = (position != null ? position : new ParsePosition(0)); in parseResolved0() 1997 public TemporalAccessor parseUnresolved(CharSequence text, ParsePosition position) { in parseUnresolved() 2005 private DateTimeParseContext parseUnresolved0(CharSequence text, ParsePosition position) { in parseUnresolved0() 2135 public Object parseObject(String text, ParsePosition pos) { in parseObject()
|