From Jason Turner

[locale.money.get]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpkhghrna5/{from.md → to.md} +14 -12
tmp/tmpkhghrna5/{from.md → to.md} RENAMED
@@ -1,6 +1,8 @@
1
- #### Class template `money_get` <a id="locale.money.get">[[locale.money.get]]</a>
 
 
2
 
3
  ``` cpp
4
  namespace std {
5
  template<class charT, class InputIterator = istreambuf_iterator<charT>>
6
  class money_get : public locale::facet {
@@ -28,22 +30,22 @@ namespace std {
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,
@@ -53,18 +55,18 @@ iter_type do_get(iter_type s, iter_type end, bool intl, ios_base& str,
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
56
  `ctype<charT>` facet reference `ct` obtained from the locale returned by
57
  `str.getloc()`, and `str.flags()`. If a valid sequence is recognized,
58
- does not change `err`; otherwise, sets `err` to `(err|str.failbit)`, or
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*]
70
 
@@ -105,11 +107,11 @@ the result is given a positive sign.
105
 
106
  Digits in the numeric monetary component are extracted and placed in
107
  `digits`, or into a character buffer `buf1` for conversion to produce a
108
  value for `units`, in the order in which they appear, preceded by a
109
  minus sign if and only if the result is negative. The value `units` is
110
- produced as if by[^18]
111
 
112
  ``` cpp
113
  for (int i = 0; i < n; ++i)
114
  buf2[i] = src[find(atoms, atoms + sizeof(src), buf1[i]) - atoms];
115
  buf2[n] = 0;
 
1
+ ##### Class template `money_get` <a id="locale.money.get">[[locale.money.get]]</a>
2
+
3
+ ###### General <a id="locale.money.get.general">[[locale.money.get.general]]</a>
4
 
5
  ``` cpp
6
  namespace std {
7
  template<class charT, class InputIterator = istreambuf_iterator<charT>>
8
  class money_get : public locale::facet {
 
30
  ios_base::iostate& err, string_type& digits) const;
31
  };
32
  }
33
  ```
34
 
35
+ ###### Members <a id="locale.money.get.members">[[locale.money.get.members]]</a>
36
 
37
  ``` cpp
38
  iter_type get(iter_type s, iter_type end, bool intl, ios_base& f,
39
  ios_base::iostate& err, long double& quant) const;
40
  iter_type get(iter_type s, iter_type end, bool intl, ios_base& f,
41
  ios_base::iostate& err, string_type& quant) const;
42
  ```
43
 
44
  *Returns:* `do_get(s, end, intl, f, err, quant)`.
45
 
46
+ ###### Virtual functions <a id="locale.money.get.virtuals">[[locale.money.get.virtuals]]</a>
47
 
48
  ``` cpp
49
  iter_type do_get(iter_type s, iter_type end, bool intl, ios_base& str,
50
  ios_base::iostate& err, long double& units) const;
51
  iter_type do_get(iter_type s, iter_type end, bool intl, ios_base& str,
 
55
  *Effects:* Reads characters from `s` to parse and construct a monetary
56
  value according to the format specified by a `moneypunct<charT, Intl>`
57
  facet reference `mp` and the character mapping specified by a
58
  `ctype<charT>` facet reference `ct` obtained from the locale returned by
59
  `str.getloc()`, and `str.flags()`. If a valid sequence is recognized,
60
+ does not change `err`; otherwise, sets `err` to `(err | str.failbit)`,
61
+ or `(err | str.failbit | str.eofbit)` if no more characters are
62
+ available, and does not change `units` or `digits`. Uses the pattern
63
+ returned by `mp.neg_format()` to parse all values. The result is
64
+ returned as an integral value stored in `units` or as a sequence of
65
+ digits possibly preceded by a minus sign (as produced by `ct.widen(c)`
66
+ where `c` is `’-’` or in the range from `’0’` through `’9’` (inclusive))
67
+ stored in `digits`.
68
 
69
  [*Example 1*: The sequence `$1,056.23` in a common United States locale
70
  would yield, for `units`, `105623`, or, for `digits`,
71
  `"105623"`. — *end example*]
72
 
 
107
 
108
  Digits in the numeric monetary component are extracted and placed in
109
  `digits`, or into a character buffer `buf1` for conversion to produce a
110
  value for `units`, in the order in which they appear, preceded by a
111
  minus sign if and only if the result is negative. The value `units` is
112
+ produced as if by[^17]
113
 
114
  ``` cpp
115
  for (int i = 0; i < n; ++i)
116
  buf2[i] = src[find(atoms, atoms + sizeof(src), buf1[i]) - atoms];
117
  buf2[n] = 0;