Searched defs:width (Results 1 - 5 of 5) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
H A DFormattable.java57 * public void formatTo(Formatter fmt, int f, int width, int precision) {
76 * // apply width and justification
78 * if (len < width)
79 * for (int i = 0; i < width - len; i++)
139 * @param width
142 * <tt>width</tt> then the output will be padded by
144 * equals width. The padding is at the beginning by default. If
146 * padding will be at the end. If <tt>width</tt> is <tt>-1</tt>
151 * The precision is applied before the width, thus the output will
153 * <tt>width</t
163 formatTo(Formatter formatter, int flags, int width, int precision) argument
[all...]
H A DFormatter.java90 * // locale-specific formatting of numbers. The precision and width can be
176 * %[argument_index$][flags][width][.precision]conversion
186 * <p> The optional <i>width</i> is a non-negative decimal integer indicating
201 * %[argument_index$][flags][width]conversion
204 * <p> The optional <i>argument_index</i>, <i>flags</i> and <i>width</i> are
217 * %[flags][width]conversion
220 * <p> The optional <i>flags</i> and <i>width</i> is defined as above.
611 * <p> The width is the minimum number of characters to be written to the
612 * output. For the line separator conversion, width is not applicable; if it
663 * <p> If the format specifier contains a width o
2543 private String width; field in class:Formatter.FormatSpecifierParser
2657 private int width; field in class:Formatter.FormatSpecifier
2690 private int width(String s) { method in class:Formatter.FormatSpecifier
2704 int width() { method in class:Formatter.FormatSpecifier
3875 adjustWidth(int width, Flags f, boolean neg) argument
4147 localizedMagnitude(StringBuilder sb, long value, Flags f, int width, Locale l) argument
4155 localizedMagnitude(StringBuilder sb, char[] value, Flags f, int width, Locale l) argument
[all...]
/libcore/ojluni/src/main/java/sun/util/calendar/
H A DCalendarUtils.java154 * Mimics sprintf(buf, "%0*d", decaimal, width).
156 public static final StringBuilder sprintf0d(StringBuilder sb, int value, int width) { argument
161 --width;
164 for (int i = 2; i < width; i++) {
167 for (int i = 1; i < width && d < n; i++) {
175 public static final StringBuffer sprintf0d(StringBuffer sb, int value, int width) { argument
180 --width;
183 for (int i = 2; i < width; i++) {
186 for (int i = 1; i < width && d < n; i++) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DFormatterTest.java79 public void formatTo(Formatter formatter, int flags, int width, argument
83 + width + " PRECISION: " + precision);
85 formatter.format("customized format function" + " width: "
86 + width + " precision: " + precision);
830 * java.util.Formatter#format(String, Object...) for width
1063 * spaces till the whole string is 4 chars width.
1072 * 4 chars width.
1111 // They are characters used as flags, width or conversions
1228 { new MockFormattable(), "%2.3s", "customized format function width: 2 precision: 3", },
1229 { new MockFormattable(), "%-6.4s", "customized format function width
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DR.java2483 public static final int width = 0; field in class:R

Completed in 246 milliseconds