tmp/tmpk6nep0qc/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
#####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
charT do_decimal_point() const;
|
| 5 |
```
|
| 6 |
|
|
@@ -23,35 +23,43 @@ to, the result of `numpunct<charT>::do_grouping()`.[^24]
|
|
| 23 |
|
| 24 |
``` cpp
|
| 25 |
string_type do_curr_symbol() const;
|
| 26 |
```
|
| 27 |
|
| 28 |
-
*Returns:* A string to use as the currency identifier symbol.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
``` cpp
|
| 31 |
string_type do_positive_sign() const;
|
| 32 |
string_type do_negative_sign() const;
|
| 33 |
```
|
| 34 |
|
| 35 |
*Returns:* `do_positive_sign()` returns the string to use to indicate a
|
| 36 |
-
positive monetary value;[^
|
| 37 |
use to indicate a negative value.
|
| 38 |
|
| 39 |
``` cpp
|
| 40 |
int do_frac_digits() const;
|
| 41 |
```
|
| 42 |
|
| 43 |
*Returns:* The number of digits after the decimal radix separator, if
|
| 44 |
-
any.[^
|
| 45 |
|
| 46 |
``` cpp
|
| 47 |
pattern do_pos_format() const;
|
| 48 |
pattern do_neg_format() const;
|
| 49 |
```
|
| 50 |
|
| 51 |
*Returns:* The specializations required in
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
`moneypunct<char
|
| 55 |
-
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
|
|
|
| 1 |
+
##### Virtual functions <a id="locale.moneypunct.virtuals">[[locale.moneypunct.virtuals]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
charT do_decimal_point() const;
|
| 5 |
```
|
| 6 |
|
|
|
|
| 23 |
|
| 24 |
``` cpp
|
| 25 |
string_type do_curr_symbol() const;
|
| 26 |
```
|
| 27 |
|
| 28 |
+
*Returns:* A string to use as the currency identifier symbol.
|
| 29 |
+
|
| 30 |
+
[*Note 1*: For specializations where the second template parameter is
|
| 31 |
+
`true`, this is typically four characters long: a three-letter code as
|
| 32 |
+
specified by ISO 4217 followed by a space. — *end note*]
|
| 33 |
|
| 34 |
``` cpp
|
| 35 |
string_type do_positive_sign() const;
|
| 36 |
string_type do_negative_sign() const;
|
| 37 |
```
|
| 38 |
|
| 39 |
*Returns:* `do_positive_sign()` returns the string to use to indicate a
|
| 40 |
+
positive monetary value;[^25] `do_negative_sign()` returns the string to
|
| 41 |
use to indicate a negative value.
|
| 42 |
|
| 43 |
``` cpp
|
| 44 |
int do_frac_digits() const;
|
| 45 |
```
|
| 46 |
|
| 47 |
*Returns:* The number of digits after the decimal radix separator, if
|
| 48 |
+
any.[^26]
|
| 49 |
|
| 50 |
``` cpp
|
| 51 |
pattern do_pos_format() const;
|
| 52 |
pattern do_neg_format() const;
|
| 53 |
```
|
| 54 |
|
| 55 |
*Returns:* The specializations required in
|
| 56 |
+
[[locale.spec]][[locale.category]], namely
|
| 57 |
+
|
| 58 |
+
- `moneypunct<char>`,
|
| 59 |
+
- `moneypunct<wchar_t>`,
|
| 60 |
+
- `moneypunct<char, true>`, and
|
| 61 |
+
- `moneypunct<wchar_t, true>`,
|
| 62 |
+
|
| 63 |
+
return an object of type `pattern` initialized to
|
| 64 |
+
`{ symbol, sign, none, value }`.[^27]
|
| 65 |
|