@@ -19892,27 +19892,20 @@
19892
19892
This option is only valid for arithmetic types other than
19893
19893
\tcode{charT} and \tcode{bool}
19894
19894
or when an integer presentation type is specified.
19895
- For integers,
19896
- when binary or hexadecimal output is used,
19897
- this option adds the respective prefix
19898
- \tcode{0b} (\tcode{0B}) or
19899
- \tcode{0x} (\tcode{0X})
19895
+ For integral types,
19896
+ the alternate form adds the
19897
+ base prefix (if any) specified in \tref{format.type.int}
19900
19898
to the output value.
19901
- For nonzero integers,
19902
- when octal output is used,
19903
- this option adds the prefix \tcode{0}
19904
- to the output value.
19905
- Whether the prefix is lower-case or upper-case
19906
- is determined by the case of the type format specifier.
19907
- For floating-point numbers
19899
+ For floating-point types,
19908
19900
the alternate form causes the result of the conversion
19909
19901
to always contain a decimal-point character,
19910
19902
even if no digits follow it.
19911
19903
% FIXME: This is a weird place for this part of the spec to appear.
19912
19904
Normally, a decimal-point character appears in the result of these
19913
19905
conversions only if a digit follows it.
19914
19906
In addition, for \tcode{g} and \tcode{G} conversions,
19915
- % FIXME: Are they normally?
19907
+ % FIXME: Are they normally? What does this even mean? Reach into to_chars and
19908
+ % alter its behavior?
19916
19909
trailing zeros are not removed from the result.
19917
19910
19918
19911
\pnum
@@ -20000,13 +19993,14 @@
20000
19993
\lhdr{Type} & \rhdr{Meaning} \\ \rowsep
20001
19994
\tcode{b} &
20002
19995
\tcode{to_chars(first, last, value, 2)};
20003
- % FIXME: This duplicates things we said earlier.
20004
- using the \tcode{\#} option with this type adds the prefix \tcode{0b} to the output .
19996
+ \indextext{base prefix}%
19997
+ the base prefix is \tcode{0b}.
20005
19998
\\ \rowsep
20006
19999
%
20007
20000
\tcode{B} &
20008
20001
The same as \tcode{b}, except that
20009
- the \tcode{\#} option adds the prefix \tcode{0B} to the output.
20002
+ \indextext{base prefix}%
20003
+ the base prefix is \tcode{0B}.
20010
20004
\\ \rowsep
20011
20005
%
20012
20006
\tcode{c} &
@@ -20021,18 +20015,21 @@
20021
20015
%
20022
20016
\tcode{o} &
20023
20017
\tcode{to_chars(first, last, value, 8)};
20024
- using the \tcode{\#} option with this type adds the prefix \tcode{0} to the output.
20018
+ \indextext{base prefix}%
20019
+ the base prefix is \tcode{0} if \tcode{value} is nonzero and is empty otherwise.
20025
20020
\\ \rowsep
20026
20021
%
20027
20022
\tcode{x} &
20028
20023
\tcode{to_chars(first, last, value, 16)};
20029
- using the \tcode{\#} option with this type adds the prefix \tcode{0x} to the output.
20024
+ \indextext{base prefix}%
20025
+ the base prefix is \tcode{0x}.
20030
20026
\\ \rowsep
20031
20027
%
20032
20028
\tcode{X} &
20033
20029
The same as \tcode{x}, except that
20034
20030
it uses uppercase letters for digits above 9 and
20035
- the \tcode{\#} option adds the prefix \tcode{0X} to the output.
20031
+ \indextext{base prefix}%
20032
+ the base prefix is \tcode{0X}.
20036
20033
\\ \rowsep
20037
20034
%
20038
20035
\tcode{n} &
0 commit comments