Home
last modified time | relevance | path

Searched refs:width (Results 1 – 21 of 21) 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/luni/src/main/java/libcore/internal/
DJava17LanguageFeatures.java44 return (r.length * r.width); in calculateApproximateArea()
67 public final int width; field in Java17LanguageFeatures.Rectangle
69 public Rectangle(int length, int width) { in Rectangle() argument
71 this.width = width; in Rectangle()
/libcore/ojluni/src/main/java/java/util/
DFormatter.java2756 private String width; field in Formatter.FormatSpecifierParser
2777 width = nint; in FormatSpecifierParser()
2782 while (width == null && FLAGS.indexOf(peek()) >= 0) { in FormatSpecifierParser()
2786 if (width == null && nextIsInt()) { in FormatSpecifierParser()
2787 width = nextInt(); in FormatSpecifierParser()
2804 fs = new FormatSpecifier(index, flags, width, precision, tT, conv); in FormatSpecifierParser()
2906 private int width = -1; field in Formatter.FormatSpecifier
2967 private void width(String s) { in width() method in Formatter.FormatSpecifier
2968 width = -1; in width()
2973 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.java333 int width = toWidth(style); in getNames() local
337 return symbols.getMonths(context, width); in getNames()
339 switch (width) { in getNames()
347 throw new UnsupportedOperationException("Unknown width: " + width); in getNames()
350 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/test/java/util/regex/
DTestCases.txt973 // Zero width Positive lookahead
982 // Zero width Negative lookahead
991 // Zero width Positive lookbehind
1000 // Zero width Negative lookbehind
DBMPTestCases.txt754 // Zero width Positive lookahead
763 // Zero width Negative lookahead
772 // Zero width Positive lookbehind
782 // Zero width Negative lookbehind
DSupplementaryTestCases.txt927 // Zero width Positive lookahead
944 // Zero width Negative lookahead
961 // Zero width Positive lookbehind
966 // Zero width Negative lookbehind
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java468 public DateTimeFormatterBuilder appendValue(TemporalField field, int width) { in appendValue() argument
470 if (width < 1 || width > 19) { in appendValue()
471 … throw new IllegalArgumentException("The width must be from 1 to 19 inclusive but was " + width); in appendValue()
473 … NumberPrinterParser pp = new NumberPrinterParser(field, width, width, SignStyle.NOT_NEGATIVE); in appendValue()
571 int width, int maxWidth, int baseValue) { in appendValueReduced() argument
573 ReducedPrinterParser pp = new ReducedPrinterParser(field, width, maxWidth, baseValue, null); in appendValueReduced()
631 TemporalField field, int width, int maxWidth, ChronoLocalDate baseDate) { in appendValueReduced() argument
634 ReducedPrinterParser pp = new ReducedPrinterParser(field, width, maxWidth, 0, baseDate); in appendValueReduced()
/libcore/ojluni/src/test/java/nio/Buffer/
DEqualsCompareTest.java702 int width = to - from; in ranges() local
703 switch (width) { in ranges()
/libcore/ojluni/src/test/java/util/Arrays/
DArraysEqCmpTest.java976 int width = to - from; in ranges() local
977 switch (width) { in ranges()
/libcore/ojluni/src/main/java/java/text/
DSimpleDateFormat.java2733 int width = pos.getIndex() - parseStart; in subParse() local
2734 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