From Jason Turner

[locale.moneypunct]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpp9mrtop5/{from.md → to.md} +17 -11
tmp/tmpp9mrtop5/{from.md → to.md} RENAMED
@@ -1,7 +1,9 @@
1
  #### Class template `moneypunct` <a id="locale.moneypunct">[[locale.moneypunct]]</a>
2
 
 
 
3
  ``` cpp
4
  namespace std {
5
  class money_base {
6
  public:
7
  enum part { none, space, symbol, sign, value };
@@ -46,14 +48,16 @@ namespace std {
46
 
47
  The `moneypunct<>` facet defines monetary formatting parameters used by
48
  `money_get<>` and `money_put<>`. A monetary format is a sequence of four
49
  components, specified by a `pattern` value `p`, such that the `part`
50
  value `static_cast<part>(p.field[i])` determines the `i`ᵗʰ component of
51
- the format[^21] In the `field` member of a `pattern` object, each value
52
- `symbol`, `sign`, `value`, and either `space` or `none` appears exactly
53
- once. The value `none`, if present, is not first; the value `space`, if
54
- present, is neither first nor last.
 
 
55
 
56
  Where `none` or `space` appears, whitespace is permitted in the format,
57
  except where `none` appears at the end, in which case no whitespace is
58
  permitted. The value `space` indicates that at least one space is
59
  required at that position. Where `symbol` appears, the sequence of
@@ -135,25 +139,25 @@ corresponding virtual member function `do_F()`.
135
  ``` cpp
136
  charT do_decimal_point() const;
137
  ```
138
 
139
  *Returns:* The radix separator to use in case `do_frac_digits()` is
140
- greater than zero.[^22]
141
 
142
  ``` cpp
143
  charT do_thousands_sep() const;
144
  ```
145
 
146
  *Returns:* The digit group separator to use in case `do_grouping()`
147
- specifies a digit grouping pattern.[^23]
148
 
149
  ``` cpp
150
  string do_grouping() const;
151
  ```
152
 
153
  *Returns:* A pattern defined identically as, but not necessarily equal
154
- to, the result of `numpunct<charT>::do_grouping()`.[^24]
155
 
156
  ``` cpp
157
  string_type do_curr_symbol() const;
158
  ```
159
 
@@ -167,19 +171,21 @@ specified by ISO 4217 followed by a space. — *end note*]
167
  string_type do_positive_sign() const;
168
  string_type do_negative_sign() const;
169
  ```
170
 
171
  *Returns:* `do_positive_sign()` returns the string to use to indicate a
172
- positive monetary value;[^25] `do_negative_sign()` returns the string to
173
- use to indicate a negative value.
 
 
174
 
175
  ``` cpp
176
  int do_frac_digits() const;
177
  ```
178
 
179
  *Returns:* The number of digits after the decimal radix separator, if
180
- any.[^26]
181
 
182
  ``` cpp
183
  pattern do_pos_format() const;
184
  pattern do_neg_format() const;
185
  ```
@@ -191,7 +197,7 @@ pattern do_neg_format() const;
191
  - `moneypunct<wchar_t>`,
192
  - `moneypunct<char, true>`, and
193
  - `moneypunct<wchar_t, true>`,
194
 
195
  return an object of type `pattern` initialized to
196
- `{ symbol, sign, none, value }`.[^27]
197
 
 
1
  #### Class template `moneypunct` <a id="locale.moneypunct">[[locale.moneypunct]]</a>
2
 
3
+ ##### General <a id="locale.moneypunct.general">[[locale.moneypunct.general]]</a>
4
+
5
  ``` cpp
6
  namespace std {
7
  class money_base {
8
  public:
9
  enum part { none, space, symbol, sign, value };
 
48
 
49
  The `moneypunct<>` facet defines monetary formatting parameters used by
50
  `money_get<>` and `money_put<>`. A monetary format is a sequence of four
51
  components, specified by a `pattern` value `p`, such that the `part`
52
  value `static_cast<part>(p.field[i])` determines the `i`ᵗʰ component of
53
+ the format[^19]
54
+
55
+ In the `field` member of a `pattern` object, each value `symbol`,
56
+ `sign`, `value`, and either `space` or `none` appears exactly once. The
57
+ value `none`, if present, is not first; the value `space`, if present,
58
+ is neither first nor last.
59
 
60
  Where `none` or `space` appears, whitespace is permitted in the format,
61
  except where `none` appears at the end, in which case no whitespace is
62
  permitted. The value `space` indicates that at least one space is
63
  required at that position. Where `symbol` appears, the sequence of
 
139
  ``` cpp
140
  charT do_decimal_point() const;
141
  ```
142
 
143
  *Returns:* The radix separator to use in case `do_frac_digits()` is
144
+ greater than zero.[^20]
145
 
146
  ``` cpp
147
  charT do_thousands_sep() const;
148
  ```
149
 
150
  *Returns:* The digit group separator to use in case `do_grouping()`
151
+ specifies a digit grouping pattern.[^21]
152
 
153
  ``` cpp
154
  string do_grouping() const;
155
  ```
156
 
157
  *Returns:* A pattern defined identically as, but not necessarily equal
158
+ to, the result of `numpunct<charT>::do_grouping()`.[^22]
159
 
160
  ``` cpp
161
  string_type do_curr_symbol() const;
162
  ```
163
 
 
171
  string_type do_positive_sign() const;
172
  string_type do_negative_sign() const;
173
  ```
174
 
175
  *Returns:* `do_positive_sign()` returns the string to use to indicate a
176
+ positive monetary value;[^23]
177
+
178
+ `do_negative_sign()` returns the string to use to indicate a negative
179
+ value.
180
 
181
  ``` cpp
182
  int do_frac_digits() const;
183
  ```
184
 
185
  *Returns:* The number of digits after the decimal radix separator, if
186
+ any.[^24]
187
 
188
  ``` cpp
189
  pattern do_pos_format() const;
190
  pattern do_neg_format() const;
191
  ```
 
197
  - `moneypunct<wchar_t>`,
198
  - `moneypunct<char, true>`, and
199
  - `moneypunct<wchar_t, true>`,
200
 
201
  return an object of type `pattern` initialized to
202
+ `{ symbol, sign, none, value }`.[^25]
203