/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestTextParser.java | 69 import java.text.ParsePosition; 101 getFormatter(field, style).parseUnresolved(text, new ParsePosition(pos)); in test_parse_error() 109 ParsePosition pos = new ParsePosition(3); in test_parse_midStr() 117 ParsePosition pos = new ParsePosition(0); in test_parse_remainderIgnored() 126 ParsePosition pos = new ParsePosition(0); in test_parse_noMatch1() 134 ParsePosition pos = new ParsePosition(3); in test_parse_noMatch2() 142 ParsePosition pos = new ParsePosition(6); in test_parse_noMatch_atEnd() 220 ParsePosition pos = new ParsePosition(0); in test_parseText() 227 ParsePosition pos = new ParsePosition(0); in test_parseNumber() 235 ParsePosition pos = new ParsePosition(0); in test_parseDayOfWeekText() [all …]
|
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 | 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 | TestTextParserWithLocale.java | 68 import java.text.ParsePosition; 118 ParsePosition pos = new ParsePosition(0); in test_parseDayOfWeekText() 153 ParsePosition pos = new ParsePosition(0); in test_parseStandaloneText() 161 ParsePosition pos = new ParsePosition(0); in test_parse_french_short_strict_full_noMatch() 169 ParsePosition pos = new ParsePosition(0); in test_parse_french_short_strict_short_match() 182 ParsePosition pos = new ParsePosition(0); in test_parseLenientText()
|
D | TestFractionPrinterParser.java | 68 import java.text.ParsePosition; 247 ParsePosition pos = new ParsePosition(0); in test_reverseParse() 256 ParsePosition pos = new ParsePosition((result.startsWith(".") ? 1 : 0)); in test_reverseParse_noDecimalPoint() 265 ParsePosition pos = new ParsePosition(0); in test_reverseParse_followedByNonDigit() 283 ParsePosition pos = new ParsePosition(1); in test_reverseParse_preceededByNonDigit() 300 ParsePosition pos = new ParsePosition(0); in test_reverseParse_seconds() 331 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/ojluni/src/test/java/text/Format/NumberFormat/ |
D | PositionTest.java | 56 ParsePosition pp1 = new ParsePosition(0); in TestParsePosition() 65 ParsePosition pp2 = new ParsePosition ( to ); in TestParsePosition() 79 ParsePosition pp2, pp3; in TestParsePosition() 80 pp2 = new ParsePosition( 3 ); in TestParsePosition() 81 pp3 = new ParsePosition( 5 ); in TestParsePosition() 82 ParsePosition pp4 = new ParsePosition(5); in TestParsePosition() 94 ParsePosition pp5; in TestParsePosition() 182 ParsePosition p = new ParsePosition(3); in Test4109023() 183 ParsePosition p2 = new ParsePosition(3); in Test4109023() 197 ParsePosition p = new ParsePosition(53); in Test4153060() [all …]
|
/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; 97 Number number = form.parse("23.1", new ParsePosition(0)); in test_parse_returnType() 104 number = form.parse("23.1", new ParsePosition(0)); in test_parse_returnType() 108 number = form.parse("23.1", new ParsePosition(0)); in test_parse_returnType() 119 number = form.parse("23.1f", new ParsePosition(0)); in test_parse_returnType() 123 number = form.parse("23.0", new ParsePosition(0)); in test_parse_returnType() 126 number = form.parse("-0.0", new ParsePosition(0)); in test_parse_returnType() 131 number = form.parse("9223372036854775807.00", new ParsePosition(0)); in test_parse_returnType() 133 number = form.parse("9223372036854775808.00", new ParsePosition(0)); in test_parse_returnType() 136 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 | 27 import java.text.ParsePosition; 115 new ParsePosition(-1))); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 118 new ParsePosition(1), Double.valueOf(23.123), 7, true); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 121 new ParsePosition(3), Double.valueOf(0.123), 7, true); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 124 new ParsePosition(3), Double.valueOf(123.123), 10, true); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 127 new ParsePosition(0), null, 0, false); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 131 new ParsePosition(3), Long.valueOf(123), 6, true); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 135 new ParsePosition(1), Double.valueOf(-123123.123), 13, true); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 138 new ParsePosition(0), null, 0, false); in test_parseObjectLjava_lang_StringLjava_text_ParsePosition() 141 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()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKLocalizedFieldParser.java | 65 import java.text.ParsePosition; 125 ParsePosition ppos = new ParsePosition(pos); in test_parse_textField() 158 ParsePosition ppos = new ParsePosition(pos); in test_parse_textLocalDate() 195 ParsePosition ppos = new ParsePosition(pos); in test_parse_WeekBasedYear() 227 ParsePosition ppos = new ParsePosition(0); in test_adjacentValuePatterns1() 250 ParsePosition ppos = new ParsePosition(0); in test_adjacentValuePatterns2() 263 ParsePosition ppos = new ParsePosition(0); in test_adjacentValuePatterns3()
|
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 | TCKDateTimeFormatterBuilder.java | 72 import java.text.ParsePosition; 1115 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_firstFixedWidth() 1127 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_firstVariableWidth_success() 1139 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_firstVariableWidth_fails() 1149 ParsePosition pp = new ParsePosition(0); in test_adjacent_lenient() 1161 ParsePosition pp = new ParsePosition(0); in test_adjacent_lenient_firstVariableWidth_success() 1173 ParsePosition pp = new ParsePosition(0); in test_adjacent_lenient_firstVariableWidth_fails() 1184 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_fractionFollows() 1197 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_fractionFollows_2digit() 1210 ParsePosition pp = new ParsePosition(0); in test_adjacent_strict_fractionFollows_0digit() [all …]
|
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/text/ |
D | ParsePosition.java | 58 public class ParsePosition { class 94 public ParsePosition(int index) { in ParsePosition() method in ParsePosition 128 if (!(obj instanceof ParsePosition other)) in equals()
|
D | Format.java | 232 public abstract Object parseObject (String source, ParsePosition pos); in parseObject() 245 ParsePosition pos = new ParsePosition(0); in parseObject()
|
/libcore/ojluni/src/test/java/text/Format/MessageFormat/ |
D | MessageRegression.java | 150 ParsePosition status = new ParsePosition(0); in Test4031438() 180 ParsePosition pos = new ParsePosition(0); in Test4052223() 326 Object[] array = mf.parse(null, new ParsePosition(0)); in Test4116444() 442 Object[] objs = mf.parse(formatted, new ParsePosition(0)); in Test4118592() 456 Object[] objs = mf.parse(forParsing, new ParsePosition(0)); in Test4118594() 470 Object[] newobjs = mf.parse(result, new ParsePosition(0)); in Test4118594() 502 ParsePosition pp = new ParsePosition(0); in Test4120552()
|
/libcore/ojluni/src/test/java/text/Format/ChoiceFormat/ |
D | Bug8001209.java | 42 ParsePosition status = new ParsePosition(0); in main()
|