Home
last modified time | relevance | path

Searched refs:appendLiteral (Results 1 – 20 of 20) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestPadPrinterDecorator.java77 builder.padNext(3, '-').appendLiteral('Z'); in test_print_emptyCalendrical()
83 builder.padNext(3, '-').appendLiteral('Z'); in test_print_fullDateTime()
90 builder.padNext(3, '-').appendLiteral('Z'); in test_print_append()
97 builder.padNext(1, '-').appendLiteral('Z'); in test_print_noPadRequiredSingle()
103 builder.padNext(5, '-').appendLiteral('Z'); in test_print_padRequiredSingle()
109 builder.padNext(4, '-').appendLiteral("WXYZ"); in test_print_noPadRequiredMultiple()
115 builder.padNext(5, '-').appendLiteral("WXYZ"); in test_print_padRequiredMultiple()
122 builder.padNext(3, '-').appendLiteral("WXYZ"); in test_print_overPad()
128 builder.padNext(5, ' ').appendLiteral('Y'); in test_toString1()
133 builder.padNext(5, '-').appendLiteral('Y'); in test_toString2()
DTestDateTimeParsing.java106 .appendInstant().appendLiteral(' ').appendOffsetId().toFormatter();
108 .appendInstant().appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter();
113 .appendValue(INSTANT_SECONDS).appendLiteral('.').appendValue(NANO_OF_SECOND).toFormatter();
116 .appendValue(INSTANT_SECONDS).appendLiteral(' ').appendValue(OFFSET_SECONDS).toFormatter();
DAbstractTestPrinterParser.java121 return builder.appendLiteral(c).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter()
125 return builder.appendLiteral(s).toFormatter(locale).withDecimalStyle(decimalStyle); in getFormatter()
DTestDateTimeFormatterBuilder.java245 …appendValue(MONTH_OF_YEAR, 1, 2, SignStyle.NORMAL).appendValue(DAY_OF_MONTH, 2).appendLiteral('4'); in test_appendValue_subsequent2_parse5()
536 builder.appendValue(MONTH_OF_YEAR).appendLiteral(':').padNext(2).appendValue(DAY_OF_MONTH); in test_padNext_1arg()
548 … builder.appendValue(MONTH_OF_YEAR).appendLiteral(':').padNext(2, '-').appendValue(DAY_OF_MONTH); in test_padNext_2arg_dash()
560 builder.appendValue(MONTH_OF_YEAR).appendLiteral(':') in test_padOptional()
562 .appendLiteral(':').appendValue(YEAR); in test_padOptional()
DTestReducedParser.java454 .appendLiteral(" ") in test_reducedWithLateChronoChange()
476 .appendLiteral(" ") in test_reducedWithLateChronoChangeTwice()
478 .appendLiteral(" ") in test_reducedWithLateChronoChangeTwice()
DTestDateTimeFormatter.java102 new DateTimeFormatterBuilder().appendLiteral("ONE") in test_withLocale_same()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKIsoFields.java154 .appendValue(YEAR).appendLiteral('-') in test_parse_quarters()
155 .appendValue(IsoFields.QUARTER_OF_YEAR).appendLiteral('-') in test_parse_quarters()
165 .appendValue(YEAR).appendLiteral('-') in test_parse_quarters_SMART()
166 .appendValue(IsoFields.QUARTER_OF_YEAR).appendLiteral('-') in test_parse_quarters_SMART()
176 .appendValue(YEAR).appendLiteral('-') in test_parse_quarters_LENIENT()
177 .appendValue(IsoFields.QUARTER_OF_YEAR).appendLiteral('-') in test_parse_quarters_LENIENT()
211 .appendValue(YEAR).appendLiteral(':') in test_parse_parseLenientQuarter_STRICT()
212 .appendValue(IsoFields.QUARTER_OF_YEAR).appendLiteral(':') in test_parse_parseLenientQuarter_STRICT()
221 .appendValue(YEAR).appendLiteral(':') in test_parse_parseLenientQuarter_SMART()
222 .appendValue(IsoFields.QUARTER_OF_YEAR).appendLiteral(':') in test_parse_parseLenientQuarter_SMART()
[all …]
DTCKWeekFields.java386 .appendValue(YEAR).appendLiteral(':') in test_parse_resolve_localizedWom()
387 .appendValue(MONTH_OF_YEAR).appendLiteral(':') in test_parse_resolve_localizedWom()
388 .appendValue(womField).appendLiteral(':') in test_parse_resolve_localizedWom()
407 .appendValue(YEAR).appendLiteral(':') in test_parse_resolve_localizedWom_lenient()
408 .appendValue(MONTH_OF_YEAR).appendLiteral(':') in test_parse_resolve_localizedWom_lenient()
409 .appendValue(womField).appendLiteral(':') in test_parse_resolve_localizedWom_lenient()
428 .appendValue(YEAR).appendLiteral(':') in test_parse_resolve_localizedWom_strict()
429 .appendValue(MONTH_OF_YEAR).appendLiteral(':') in test_parse_resolve_localizedWom_strict()
430 .appendValue(womField).appendLiteral(':') in test_parse_resolve_localizedWom_strict()
454 .appendValue(YEAR).appendLiteral(':') in test_parse_resolve_localizedWomDow()
[all …]
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatter.java706 .appendLiteral('-')
708 .appendLiteral('-')
805 .appendLiteral(':')
808 .appendLiteral(':')
897 .appendLiteral('T')
958 .appendLiteral('[')
961 .appendLiteral(']')
1001 .appendLiteral('[')
1004 .appendLiteral(']')
1041 .appendLiteral('-')
[all …]
DDateTimeFormatterBuilder.java1293 public DateTimeFormatterBuilder appendLiteral(char literal) { in appendLiteral() method in DateTimeFormatterBuilder
1308 public DateTimeFormatterBuilder appendLiteral(String literal) { in appendLiteral() method in DateTimeFormatterBuilder
1690 appendLiteral('\''); in parsePattern()
1692 appendLiteral(str.replace("''", "'")); in parsePattern()
1707 appendLiteral(cur); in parsePattern()
3254 .append(DateTimeFormatter.ISO_LOCAL_DATE).appendLiteral('T') in parse()
3255 .appendValue(HOUR_OF_DAY, 2).appendLiteral(':') in parse()
3256 .appendValue(MINUTE_OF_HOUR, 2).appendLiteral(':') in parse()
3259 .appendLiteral('Z') in parse()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKResolverStyle.java113 builder.appendLiteral("/"); in test_resolverStyle()
115 builder.appendLiteral("/"); in test_resolverStyle()
121 …DateTimeFormatter optionalFormatter = new DateTimeFormatterBuilder().appendLiteral(" ").appendText… in test_resolverStyle()
DTCKDateTimeFormatterBuilder.java122 .optionalStart().appendLiteral('-').appendValue(MONTH_OF_YEAR) in test_parseDefaulting_yearOptionalMonthOptionalDay()
123 .optionalStart().appendLiteral('-').appendValue(DAY_OF_MONTH) in test_parseDefaulting_yearOptionalMonthOptionalDay()
441 builder.appendValue(MONTH_OF_YEAR).appendLiteral(':').padNext(2).appendValue(DAY_OF_MONTH); in test_padNext_1arg()
453 … builder.appendValue(MONTH_OF_YEAR).appendLiteral(':').padNext(2, '-').appendValue(DAY_OF_MONTH); in test_padNext_2arg_dash()
465 builder.appendValue(MONTH_OF_YEAR).appendLiteral(':') in test_padOptional()
467 .appendLiteral(':').appendValue(YEAR); in test_padOptional()
739 … = builder.appendValue(HOUR_OF_DAY, 2).appendValue(MINUTE_OF_HOUR, 2).appendLiteral('9').toFormatt… in test_adjacent_strict_firstFixedWidth()
751 …r f = builder.appendValue(HOUR_OF_DAY).appendValue(MINUTE_OF_HOUR, 2).appendLiteral('Z').toFormatt… in test_adjacent_strict_firstVariableWidth_success()
763 …r f = builder.appendValue(HOUR_OF_DAY).appendValue(MINUTE_OF_HOUR, 2).appendLiteral('9').toFormatt… in test_adjacent_strict_firstVariableWidth_fails()
773 …eLenient().appendValue(HOUR_OF_DAY, 2).appendValue(MINUTE_OF_HOUR, 2).appendLiteral('9').toFormatt… in test_adjacent_lenient()
[all …]
DTCKPadPrinterParser.java94 builder.padNext(3, '-').appendLiteral('Z'); in test_parse_negativePosition()
100 builder.padNext(3, '-').appendLiteral('Z'); in test_parse_offEndPosition()
187 builder.padNext(8, '-').appendLiteral("-HELLO-"); in test_parse_decoratedStartsWithPad()
DTCKDateTimeFormatter.java129 fmt = new DateTimeFormatterBuilder().appendLiteral("ONE") in setUp()
176 .appendValue(YEAR).appendLiteral('-').appendValue(MONTH_OF_YEAR).appendLiteral('-') in test_resolverFields_selectOneDateResolveYMD()
177 … .appendValue(DAY_OF_MONTH).appendLiteral('-').appendValue(DAY_OF_YEAR).toFormatter(); in test_resolverFields_selectOneDateResolveYMD()
192 .appendValue(YEAR).appendLiteral('-').appendValue(MONTH_OF_YEAR).appendLiteral('-') in test_resolverFields_selectOneDateResolveYD()
193 … .appendValue(DAY_OF_MONTH).appendLiteral('-').appendValue(DAY_OF_YEAR).toFormatter(); in test_resolverFields_selectOneDateResolveYD()
211 .appendValue(YEAR).appendLiteral('-').appendValue(DAY_OF_YEAR).appendLiteral('-') in test_resolverFields_ignoreCrossCheck()
358 .appendLiteral(':').optionalStart().appendValue(HOUR_OF_DAY, 2).optionalEnd() in test_format_withZone_withChronology()
359 .appendLiteral(':').optionalStart().appendOffsetId().optionalEnd() in test_format_withZone_withChronology()
360 .appendLiteral(':').optionalStart().appendZoneId().optionalEnd() in test_format_withZone_withChronology()
361 .appendLiteral(':').optionalStart().appendChronologyId().optionalEnd() in test_format_withZone_withChronology()
[all …]
DTCKDateTimeParseResolver.java192 .appendValue(field1).appendLiteral(' ') in test_resolveTwoNoChange()
223 .appendValue(field1).appendLiteral(' ') in test_resolveThreeNoChange()
224 .appendValue(field2).appendLiteral(' ') in test_resolveThreeNoChange()
340 .appendValue(field1).appendLiteral(' ') in test_resolveTwoToField()
388 .appendValue(field1).appendLiteral(' ') in test_resolveTwoToDate()
475 .appendValue(field1).appendLiteral(' ') in test_resolveTwoToTime()
507 .appendValue(field1).appendLiteral(' ') in test_resolveThreeToDate()
508 .appendValue(field2).appendLiteral(' ') in test_resolveThreeToDate()
539 .appendValue(field1).appendLiteral(' ') in test_resolveFourToDate()
540 .appendValue(field2).appendLiteral(' ') in test_resolveFourToDate()
[all …]
DTCKFormatStyle.java112 …DateTimeFormatter formatter = builder.appendLocalized(style, style).appendLiteral(" ").appendZoneO… in test_formatStyle()
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestDateTimeBuilderCombinations.java135 dtfb.appendValue(field1).appendLiteral('-'); in test_derive()
138 dtfb.appendValue(field2).appendLiteral('-'); in test_derive()
142 dtfb.appendValue(field3).appendLiteral('-'); in test_derive()
146 dtfb.appendValue(field4).appendLiteral('-'); in test_derive()
/libcore/luni/src/test/java/libcore/java/time/format/
DDateTimeFormatterBuilderTest.java45 .appendLiteral('<').append(DateTimeFormatter.ISO_LOCAL_DATE).appendLiteral('>') in test_append_DateTimeFormatter()
/libcore/ojluni/src/main/java/java/time/
DMonthDay.java132 .appendLiteral("--")
134 .appendLiteral('-')
DYearMonth.java137 .appendLiteral('-')