Home
last modified time | relevance | path

Searched refs:width (Results 1 – 17 of 17) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DIllegalFormatWidthExceptionTest.java32 int width = Integer.MAX_VALUE; in test_illegalFormatWidthException() local
34 width); in test_illegalFormatWidthException()
35 assertEquals(width, illegalFormatWidthException.getWidth()); in test_illegalFormatWidthException()
43 int width = 12345; in test_getWidth() local
45 width); in test_getWidth()
46 assertEquals(width, illegalFormatWidthException.getWidth()); in test_getWidth()
54 int width = 12345; in test_getMessage() local
56 width); in test_getMessage()
DFormatterTest.java80 public void formatTo(Formatter formatter, int flags, int width, in formatTo() argument
84 + width + " PRECISION: " + precision); in formatTo()
87 + width + " precision: " + precision); in formatTo()
/libcore/ojluni/src/main/java/sun/util/calendar/
DCalendarUtils.java156 public static final StringBuilder sprintf0d(StringBuilder sb, int value, int width) { in sprintf0d() argument
161 --width; in sprintf0d()
164 for (int i = 2; i < width; i++) { in sprintf0d()
167 for (int i = 1; i < width && d < n; i++) { in sprintf0d()
175 public static final StringBuffer sprintf0d(StringBuffer sb, int value, int width) { in sprintf0d() argument
180 --width; in sprintf0d()
183 for (int i = 2; i < width; i++) { in sprintf0d()
186 for (int i = 1; i < width && d < n; i++) { in sprintf0d()
/libcore/ojluni/src/main/java/java/util/
DFormatter.java2582 private String width; field in Formatter.FormatSpecifierParser
2603 width = nint; in FormatSpecifierParser()
2608 while (width == null && FLAGS.indexOf(peek()) >= 0) { in FormatSpecifierParser()
2612 if (width == null && nextIsInt()) { in FormatSpecifierParser()
2613 width = nextInt(); in FormatSpecifierParser()
2630 fs = new FormatSpecifier(index, flags, width, precision, tT, conv); in FormatSpecifierParser()
2710 private int width; field in Formatter.FormatSpecifier
2745 private int width(String s) { in width() method in Formatter.FormatSpecifier
2746 width = -1; in width()
2749 width = Integer.parseInt(s); in width()
[all …]
DFormattable.java163 void formatTo(Formatter formatter, int flags, int width, int precision); in formatTo() argument
/libcore/ojluni/src/main/java/sun/util/locale/provider/
DCalendarDataUtility.java267 int width = toWidth(style); in getNames() local
271 return symbols.getMonths(context, width); in getNames()
273 switch (width) { in getNames()
281 throw new UnsupportedOperationException("Unknown width: " + width); in getNames()
284 return symbols.getWeekdays(context, width); in getNames()
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DCalendarUtils.java80 java.lang.StringBuilder sb, int value, int width) { in sprintf0d() argument
85 java.lang.StringBuffer sb, int value, int width) { in sprintf0d() argument
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestReducedParser.java99 private DateTimeFormatter getFormatter0(TemporalField field, int width, int baseValue) { in getFormatter0() argument
100 …return builder.appendValueReduced(field, width, width, baseValue).toFormatter(locale).withDecimalS… in getFormatter0()
121 …public void test_parse_error(TemporalField field, int width, int baseValue, String text, int pos, … in test_parse_error() argument
123 getFormatter0(field, width, baseValue).parseUnresolved(text, new ParsePosition(pos)); in test_parse_error()
186 …public void test_parseAllStrict(TemporalField field, int width, int baseValue, String input, int p… in test_parseAllStrict() argument
189 … TemporalAccessor parsed = getFormatter0(field, width, baseValue).parseUnresolved(input, ppos); in test_parseAllStrict()
200 …public void test_parseAllLenient(TemporalField field, int width, int baseValue, String input, int … in test_parseAllLenient() argument
203 … TemporalAccessor parsed = getFormatter0(field, width, baseValue).parseUnresolved(input, ppos); in test_parseAllLenient()
DTestReducedPrinter.java83 private DateTimeFormatter getFormatter0(TemporalField field, int width, int baseValue) { in getFormatter0() argument
84 …return builder.appendValueReduced(field, width, width, baseValue).toFormatter(locale).withDecimalS… in getFormatter0()
/libcore/ojluni/annotations/mmodule/java/time/format/
DDateTimeFormatterBuilder.annotated.java86 …eFormatterBuilder appendValue(java.time.temporal.TemporalField field, int width) { throw new Runti… in appendValue() argument
90 …terBuilder appendValueReduced(java.time.temporal.TemporalField field, int width, int maxWidth, int… in appendValueReduced() argument
92 …terBuilder appendValueReduced(java.time.temporal.TemporalField field, int width, int maxWidth, jav… in appendValueReduced() argument
/libcore/dom/src/test/resources/
Dhc_nodtdstaff.svg1 <svg xmlns='http://www.w3.org/2000/svg'><rect x="0" y="0" width="100" height="100"/><head xmlns='ht…
Dstaff2.dtd18 width CDATA #REQUIRED attribute
/libcore/luni/src/test/java/libcore/java/util/
DOldFormatterTest.java32 …public void formatTo(Formatter formatter, int flags, int width, int precision) throws IllegalForma… in test_Formattable()
41 …public void formatTo(Formatter formatter, int flags, int width, int precision) throws IllegalForma… in test_Formattable()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java466 public DateTimeFormatterBuilder appendValue(TemporalField field, int width) { in appendValue() argument
468 if (width < 1 || width > 19) { in appendValue()
469 … throw new IllegalArgumentException("The width must be from 1 to 19 inclusive but was " + width); in appendValue()
471 … NumberPrinterParser pp = new NumberPrinterParser(field, width, width, SignStyle.NOT_NEGATIVE); in appendValue()
569 int width, int maxWidth, int baseValue) { in appendValueReduced() argument
571 ReducedPrinterParser pp = new ReducedPrinterParser(field, width, maxWidth, baseValue, null); in appendValueReduced()
629 TemporalField field, int width, int maxWidth, ChronoLocalDate baseDate) { in appendValueReduced() argument
632 ReducedPrinterParser pp = new ReducedPrinterParser(field, width, maxWidth, 0, baseDate); in appendValueReduced()
/libcore/ojluni/src/test/java/util/Arrays/
DArraysEqCmpTest.java970 int width = to - from; in ranges() local
971 switch (width) { in ranges()
/libcore/ojluni/src/main/java/java/text/
DSimpleDateFormat.java2722 int width = pos.getIndex() - parseStart; in subParse() local
2723 final double divisor = Math.pow(10, width); in subParse()
/libcore/benchmarks/src/benchmarks/regression/
DR.java2483 public static final int width = 0; field in R