Home
last modified time | relevance | path

Searched refs:width (Results 1 – 15 of 15) 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.java2577 private String width; field in Formatter.FormatSpecifierParser
2598 width = nint; in FormatSpecifierParser()
2603 while (width == null && FLAGS.indexOf(peek()) >= 0) { in FormatSpecifierParser()
2607 if (width == null && nextIsInt()) { in FormatSpecifierParser()
2608 width = nextInt(); in FormatSpecifierParser()
2625 fs = new FormatSpecifier(index, flags, width, precision, tT, conv); in FormatSpecifierParser()
2705 private int width; field in Formatter.FormatSpecifier
2740 private int width(String s) { in width() method in Formatter.FormatSpecifier
2741 width = -1; in width()
2744 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.java263 int width = toWidth(style); in getNames() local
267 return symbols.getMonths(context, width); in getNames()
269 switch (width) { in getNames()
277 throw new UnsupportedOperationException("Unknown width: " + width); in getNames()
280 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/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.java447 public DateTimeFormatterBuilder appendValue(TemporalField field, int width) { in appendValue() argument
449 if (width < 1 || width > 19) { in appendValue()
450 … throw new IllegalArgumentException("The width must be from 1 to 19 inclusive but was " + width); in appendValue()
452 … NumberPrinterParser pp = new NumberPrinterParser(field, width, width, SignStyle.NOT_NEGATIVE); in appendValue()
550 int width, int maxWidth, int baseValue) { in appendValueReduced() argument
552 ReducedPrinterParser pp = new ReducedPrinterParser(field, width, maxWidth, baseValue, null); in appendValueReduced()
610 TemporalField field, int width, int maxWidth, ChronoLocalDate baseDate) { in appendValueReduced() argument
613 ReducedPrinterParser pp = new ReducedPrinterParser(field, width, maxWidth, 0, baseDate); in appendValueReduced()
/libcore/ojluni/src/main/java/java/text/
DSimpleDateFormat.java2698 int width = pos.getIndex() - parseStart; in subParse() local
2699 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