tmp/tmpaip3_sqb/{from.md → to.md}
RENAMED
|
@@ -28,31 +28,28 @@ namespace std {
|
|
| 28 |
ios_base::iostate& err, string_type& digits) const;
|
| 29 |
};
|
| 30 |
}
|
| 31 |
```
|
| 32 |
|
| 33 |
-
#####
|
| 34 |
|
| 35 |
``` cpp
|
| 36 |
-
iter_type get(iter_type s, iter_type end, bool intl,
|
| 37 |
-
ios_base
|
| 38 |
-
|
| 39 |
-
iter_type get(s, iter_type end, bool intl, ios_base&f,
|
| 40 |
ios_base::iostate& err, string_type& quant) const;
|
| 41 |
```
|
| 42 |
|
| 43 |
*Returns:* `do_get(s, end, intl, f, err, quant)`.
|
| 44 |
|
| 45 |
-
#####
|
| 46 |
|
| 47 |
``` cpp
|
| 48 |
-
iter_type do_get(iter_type s, iter_type end, bool intl,
|
| 49 |
-
ios_base
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
ios_base& str, ios_base::iostate& err,
|
| 53 |
-
string_type& digits) const;
|
| 54 |
```
|
| 55 |
|
| 56 |
*Effects:* Reads characters from `s` to parse and construct a monetary
|
| 57 |
value according to the format specified by a `moneypunct<charT, Intl>`
|
| 58 |
facet reference `mp` and the character mapping specified by a
|
|
@@ -62,11 +59,11 @@ does not change `err`; otherwise, sets `err` to `(err|str.failbit)`, or
|
|
| 62 |
`(err|str.failbit|str.eofbit)` if no more characters are available, and
|
| 63 |
does not change `units` or `digits`. Uses the pattern returned by
|
| 64 |
`mp.neg_format()` to parse all values. The result is returned as an
|
| 65 |
integral value stored in `units` or as a sequence of digits possibly
|
| 66 |
preceded by a minus sign (as produced by `ct.widen(c)` where `c` is
|
| 67 |
-
`’-’` or in the range from `’0’` through `’9’`
|
| 68 |
`digits`.
|
| 69 |
|
| 70 |
[*Example 1*: The sequence `$1,056.23` in a common United States locale
|
| 71 |
would yield, for `units`, `105623`, or, for `digits`,
|
| 72 |
`"105623"`. — *end example*]
|
|
@@ -81,13 +78,13 @@ Where `money_base::space` or `money_base::none` appears as the last
|
|
| 81 |
element in the format pattern, no white space is consumed. Otherwise,
|
| 82 |
where `money_base::space` appears in any of the initial elements of the
|
| 83 |
format pattern, at least one white space character is required. Where
|
| 84 |
`money_base::none` appears in any of the initial elements of the format
|
| 85 |
pattern, white space is allowed but not required. If
|
| 86 |
-
`(str.flags() & str.showbase)` is false, the currency symbol is
|
| 87 |
-
and is consumed only if other characters are needed to complete
|
| 88 |
-
format; otherwise, the currency symbol is required.
|
| 89 |
|
| 90 |
If the first character (if any) in the string `pos` returned by
|
| 91 |
`mp.positive_sign()` or the string `neg` returned by
|
| 92 |
`mp.negative_sign()` is recognized in the position indicated by `sign`
|
| 93 |
in the format pattern, it is consumed and any remaining characters in
|
|
|
|
| 28 |
ios_base::iostate& err, string_type& digits) const;
|
| 29 |
};
|
| 30 |
}
|
| 31 |
```
|
| 32 |
|
| 33 |
+
##### Members <a id="locale.money.get.members">[[locale.money.get.members]]</a>
|
| 34 |
|
| 35 |
``` cpp
|
| 36 |
+
iter_type get(iter_type s, iter_type end, bool intl, ios_base& f,
|
| 37 |
+
ios_base::iostate& err, long double& quant) const;
|
| 38 |
+
iter_type get(iter_type s, iter_type end, bool intl, ios_base& f,
|
|
|
|
| 39 |
ios_base::iostate& err, string_type& quant) const;
|
| 40 |
```
|
| 41 |
|
| 42 |
*Returns:* `do_get(s, end, intl, f, err, quant)`.
|
| 43 |
|
| 44 |
+
##### Virtual functions <a id="locale.money.get.virtuals">[[locale.money.get.virtuals]]</a>
|
| 45 |
|
| 46 |
``` cpp
|
| 47 |
+
iter_type do_get(iter_type s, iter_type end, bool intl, ios_base& str,
|
| 48 |
+
ios_base::iostate& err, long double& units) const;
|
| 49 |
+
iter_type do_get(iter_type s, iter_type end, bool intl, ios_base& str,
|
| 50 |
+
ios_base::iostate& err, string_type& digits) const;
|
|
|
|
|
|
|
| 51 |
```
|
| 52 |
|
| 53 |
*Effects:* Reads characters from `s` to parse and construct a monetary
|
| 54 |
value according to the format specified by a `moneypunct<charT, Intl>`
|
| 55 |
facet reference `mp` and the character mapping specified by a
|
|
|
|
| 59 |
`(err|str.failbit|str.eofbit)` if no more characters are available, and
|
| 60 |
does not change `units` or `digits`. Uses the pattern returned by
|
| 61 |
`mp.neg_format()` to parse all values. The result is returned as an
|
| 62 |
integral value stored in `units` or as a sequence of digits possibly
|
| 63 |
preceded by a minus sign (as produced by `ct.widen(c)` where `c` is
|
| 64 |
+
`’-’` or in the range from `’0’` through `’9’` (inclusive)) stored in
|
| 65 |
`digits`.
|
| 66 |
|
| 67 |
[*Example 1*: The sequence `$1,056.23` in a common United States locale
|
| 68 |
would yield, for `units`, `105623`, or, for `digits`,
|
| 69 |
`"105623"`. — *end example*]
|
|
|
|
| 78 |
element in the format pattern, no white space is consumed. Otherwise,
|
| 79 |
where `money_base::space` appears in any of the initial elements of the
|
| 80 |
format pattern, at least one white space character is required. Where
|
| 81 |
`money_base::none` appears in any of the initial elements of the format
|
| 82 |
pattern, white space is allowed but not required. If
|
| 83 |
+
`(str.flags() & str.showbase)` is `false`, the currency symbol is
|
| 84 |
+
optional and is consumed only if other characters are needed to complete
|
| 85 |
+
the format; otherwise, the currency symbol is required.
|
| 86 |
|
| 87 |
If the first character (if any) in the string `pos` returned by
|
| 88 |
`mp.positive_sign()` or the string `neg` returned by
|
| 89 |
`mp.negative_sign()` is recognized in the position indicated by `sign`
|
| 90 |
in the format pattern, it is consumed and any remaining characters in
|