/libcore/ojluni/src/test/java/text/Format/NumberFormat/ |
D | BigDecimalFormat.java | 100 StringBuffer formatted = new StringBuffer(1000); field in BigDecimalFormat 115 formatted.setLength(0); in test_Format_in_NumberFormat_BigDecimal() 117 nf.format(new BigDecimal(from), formatted, new FieldPosition(0)); in test_Format_in_NumberFormat_BigDecimal() 118 checkFormat(from, formatted, from, ((DecimalFormat)nf).getMultiplier()); in test_Format_in_NumberFormat_BigDecimal() 126 formatted.setLength(0); in test_Format_in_NumberFormat_BigDecimal() 128 nf.format(new BigDecimal(from), formatted, fp); in test_Format_in_NumberFormat_BigDecimal() 129 checkFormat(from, formatted, from, ((DecimalFormat)nf).getMultiplier()); in test_Format_in_NumberFormat_BigDecimal() 138 formatted.setLength(0); in test_Format_in_NumberFormat_BigDecimal() 141 nf.format(new BigDecimal(from), formatted, fp); in test_Format_in_NumberFormat_BigDecimal() 142 checkFormat(from, formatted, to, ((DecimalFormat)nf).getMultiplier()); in test_Format_in_NumberFormat_BigDecimal() [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | InetSocketAddress.java | 106 String formatted; in toString() local 109 formatted = hostname + "/<unresolved>"; in toString() 111 formatted = addr.toString(); in toString() 113 int i = formatted.lastIndexOf("/"); in toString() 114 formatted = formatted.substring(0, i + 1) in toString() 115 + "[" + formatted.substring(i + 1) + "]"; in toString() 118 return formatted + ":" + port; in toString()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestUnicodeExtension.java | 860 String formatted = dtf.format(ZDT); in test_localizedBy() 861 assertEquals(formatted, formatExpected); in test_localizedBy() 862 assertEquals(dtf.parse(formatted, ZonedDateTime::from), in test_localizedBy() 883 String formatted = dtf.format(ZDT); in test_withLocale() local 885 assertEquals(formatted, formatExpected, locale.toString()); in test_withLocale() 886 assertEquals(dtf.parse(formatted, ZonedDateTime::from), in test_withLocale() 910 String formatted = dtf.format(ZDT); in test_ofPattern() local 911 assertEquals(formatted, formatExpected); in test_ofPattern() 912 assertEquals(dtf.parse(formatted, ZonedDateTime::from), in test_ofPattern() 924 String formatted = dtf.format(ZDT); in test_toFormatter() local [all …]
|
/libcore/ojluni/src/main/java/java/text/ |
D | DontCareFieldPosition.java | 38 public void formatted(Format.Field attr, Object value, int start, 41 public void formatted(int fieldID, Format.Field attr, Object value,
|
D | CharacterIteratorFieldDelegate.java | 56 public void formatted(Format.Field attr, Object value, int start, int end, in formatted() method in CharacterIteratorFieldDelegate 95 public void formatted(int fieldID, Format.Field attr, Object value, in formatted() method in CharacterIteratorFieldDelegate 97 formatted(attr, value, start, end, buffer); in formatted()
|
D | Format.java | 393 public void formatted(Format.Field attr, Object value, int start, in formatted() method 407 public void formatted(int fieldID, Format.Field attr, Object value, in formatted() method
|
D | FieldPosition.java | 296 public void formatted(Format.Field attr, Object value, int start, in formatted() method in FieldPosition.Delegate 305 public void formatted(int fieldID, Format.Field attr, Object value, in formatted() method in FieldPosition.Delegate
|
D | SimpleDateFormat.java | 1605 delegate.formatted(fieldID, f, f, beginOffset, buffer.length(), buffer); in subFormat()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKLocalizedPrinterParser.java | 152 String formatted = f.format(date); in test_date_print() local 153 assertEquals(formatted, text); in test_date_print() 205 String formatted = f.format(time); in test_time_print() local 208 formatted = formatted.replace('\u202f', ' '); in test_time_print() 210 assertEquals(formatted, text); in test_time_print()
|
/libcore/ojluni/src/test/java/lang/String/ |
D | Formatted.java | 44 "Test this %s".formatted("and that"), in testFormatted()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | DateFormatTest.java | 116 String formatted = df.format(new Date(1672610148000L)); in assertFormat_forBug266731719() local 117 assertEquals("Jan 1, 2023 9:55:48 PM", formatted); in assertFormat_forBug266731719()
|
D | SimpleDateFormatTest.java | 415 String formatted = sdf.format(d); in testParseArabic() local 416 assertEquals("٢٠١٢-٠٨-٢٩ ١٠:٠٢:٤٥", formatted); in testParseArabic() 420 Date d2 = sdf.parse(formatted); in testParseArabic()
|
/libcore/ojluni/src/test/java/util/Random/ |
D | RandomExponentialTest.java | 59 .formatted(errCount, SAMPLES, errSample)); in main()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | ChoiceFormatTest.java | 444 String formatted = format.format(0); in testEscapedPatternWithConsecutiveQuotes() local 445 assertEquals("12'3'4''.", formatted); in testEscapedPatternWithConsecutiveQuotes() 448 formatted = format.format(0); in testEscapedPatternWithConsecutiveQuotes() 449 assertEquals("12'3''4''.", formatted); in testEscapedPatternWithConsecutiveQuotes()
|
/libcore/ojluni/src/test/java/text/Format/MessageFormat/ |
D | MessageRegression.java | 439 String formatted = prefix + "YES"; in Test4118592() local 442 Object[] objs = mf.parse(formatted, new ParsePosition(0)); in Test4118592() 444 log(" \"" + formatted + "\" parsed as "); in Test4118592()
|
/libcore/support/src/test/java/tests/resources/ |
D | junit4-4.3.1.jar | ... (java.lang.String)
String message
String formatted
public static void failNotSame (java.lang.String ... |
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | String.annotated.java | 202 @libcore.util.NonNull public java.lang.String formatted(java.lang.@libcore.util.Nullable Object @li… in formatted() method in String
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | Parsed.java | 570 … throw new DateTimeException("Conflict found: Resolved time %02d:%02d".formatted(hod, mohVal) + in resolveTimeLenient()
|
D | DateTimeFormatterBuilder.java | 5477 return "DayPeriod(%02d:%02d".formatted(from / 60, from % 60) + in toString() 5478 (from == to ? ")" : "-%02d:%02d)".formatted(to / 60, to % 60)); in toString()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | String.java | 4088 public String formatted(Object... args) {
|
/libcore/api/ |
D | current.txt | 4136 method @NonNull public String formatted(@NonNull java.lang.Object...);
|