Lines Matching refs:width

90  *   // 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 or precision with an invalid
755 * width of the field. If the width is not provided, then a {@link
766 * <p> The <a name="genWidth">width</a> is the minimum number of characters to
768 * output. If the length of the converted value is less than the width then
770 * until the total number of characters equals the width. The padding is on
772 * will be on the right. If the width is not specified then there is no
776 * output. The precision is applied before the width, thus the output will be
777 * truncated to {@code precision} characters even if the width is greater than
812 * <p> The width is defined as for <a href="#genWidth">General conversions</a>.
864 * the length of the string is equal to the requested field width.
920 * with leading zeros to the field width following any indication of sign.
942 * the field width with leading zeros after the radix indicator or sign (if
962 * {@code "0X"} for hexadecimal), some number of zeros (based on the width),
994 * width following any sign or radix indicator except when converting NaN
995 * or infinity. If the width is not provided, then a {@link
1021 * <li> The output is right-justified within the {@code width}
1032 * <p> The <a name="intWidth">width</a> is the minimum number of characters to
1035 * converted value is less than the width then the output will be padded by
1037 * width. The padding is on the left by default. If {@code '-'} flag is
1038 * given then the padding will be on the right. If width is not specified then
1077 * with leading zeros to the field width following any indication of sign.
1100 * the field width with leading zeros after the radix indicator or sign (if
1119 * {@code "0X"} for hexadecimal), some number of zeros (based on the width),
1132 * <p> The specification of <a href="#intWidth">width</a> is the same as
1326 * <li> The output is right-justified within the {@code width}
1339 * <p> The <a name="floatDWidth">width</a> is the minimum number of characters
1343 * the length of the converted value is less than the width then the output
1345 * characters equals width. The padding is on the left by default. If the
1346 * {@code '-'} flag is given then the padding will be on the right. If width
1485 * <p> The specification of <a href="#floatDWidth">width</a> and <a
1715 * <p> The <a name="dtWidth">width</a> is the minimum number of characters to
1717 * the {@code width} then the output will be padded by spaces
1718 * (<tt>'&#92;u0020'</tt>) until the total number of characters equals width.
1720 * then the padding will be on the right. If width is not specified then there
1735 * <p> The <a name="dtWidth">width</a> is the minimum number of characters to
1737 * converted value is less than the {@code width} then the output will be
1739 * characters equals width. The padding is on the left. If width is not
1763 * <p> Flags, width, and precision are not applicable. If any are provided an
2504 // %[argument_index$][flags][width][.precision][t]conversion
2572 private int width;
2605 private int width(String s) {
2606 width = -1;
2609 width = Integer.parseInt(s);
2610 if (width < 0)
2611 throw new IllegalFormatWidthException(width);
2616 return width;
2619 int width() {
2620 return width;
2665 width(m.group(idx++));
2831 ((Formattable)arg).formatTo(fmt, f.valueOf(), width, precision);
2869 if (width == -1)
2873 int sp = width - s.length();
2889 if (width != -1)
2890 sb.append(width);
2904 // '-' requires a width
2905 if (width == -1 && f.contains(Flags.LEFT_JUSTIFY))
2918 // '-' requires a width
2919 if (width == -1 && f.contains(Flags.LEFT_JUSTIFY))
2928 // '-' requires a width
2929 if (width == -1 && f.contains(Flags.LEFT_JUSTIFY))
2965 if (width != -1 && width < 0)
2966 throw new IllegalFormatWidthException(width);
2971 // '-' and '0' require a width
2972 if (width == -1
2990 // '-' requires a width
2991 if (width == -1 && f.contains(Flags.LEFT_JUSTIFY))
2995 if (width != -1)
2996 throw new IllegalFormatWidthException(width);
3054 localizedMagnitude(sb, va, f, adjustWidth(width, f, neg), l);
3070 for (int i = 0; i < width - len; i++) sb.append('0');
3084 for (int i = 0; i < width - len; i++) sb.append('0');
3090 // justify based on width
3129 localizedMagnitude(sb, va, f, adjustWidth(width, f, neg), l);
3143 for (int i = 0; i < width - len; i++)
3160 for (int i = 0; i < width - len; i++)
3170 // justify based on width
3201 // justify based on width
3232 int newW = width;
3233 if (width != -1)
3234 newW = adjustWidth(width - exp.length - 1, f, neg);
3268 int newW = width;
3269 if (width != -1)
3270 newW = adjustWidth(width, f, neg);
3301 int newW = width;
3302 if (width != -1) {
3304 newW = adjustWidth(width - exp.length - 1, f, neg);
3306 newW = adjustWidth(width, f, neg);
3337 for (int i = 0; i < width - s.length() - 2; i++)
3515 // justify based on width
3563 int newW = width;
3564 if (width != -1)
3565 newW = adjustWidth(width - exp.length - 1, f, neg);
3616 localizedMagnitude(sb, mant, f, adjustWidth(width, f, neg), l);
3785 private int adjustWidth(int width, Flags f, boolean neg) {
3786 int newW = width;
3819 // justify based on width
3831 assert(width == -1);
3870 sb.append(localizedMagnitude(null, i, flags, width, l));
3887 sb.append(localizedMagnitude(null, i, flags, width, l));
4058 int width, Locale l)
4061 return localizedMagnitude(sb, va, f, width, l);
4066 int width, Locale l)
4126 if (width != -1 && f.contains(Flags.ZERO_PAD))
4127 for (int k = 0; k < width - len; k++)