From Jason Turner

[locale.money.get.virtuals]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpwkgp7r_p/{from.md → to.md} +10 -10
tmp/tmpwkgp7r_p/{from.md → to.md} RENAMED
@@ -1,6 +1,6 @@
1
- ##### Virtual functions <a id="locale.money.get.virtuals">[[locale.money.get.virtuals]]</a>
2
 
3
  ``` cpp
4
  iter_type do_get(iter_type s, iter_type end, bool intl, ios_base& str,
5
  ios_base::iostate& err, long double& units) const;
6
  iter_type do_get(iter_type s, iter_type end, bool intl, ios_base& str,
@@ -10,18 +10,18 @@ iter_type do_get(iter_type s, iter_type end, bool intl, ios_base& str,
10
  *Effects:* Reads characters from `s` to parse and construct a monetary
11
  value according to the format specified by a `moneypunct<charT, Intl>`
12
  facet reference `mp` and the character mapping specified by a
13
  `ctype<charT>` facet reference `ct` obtained from the locale returned by
14
  `str.getloc()`, and `str.flags()`. If a valid sequence is recognized,
15
- does not change `err`; otherwise, sets `err` to `(err|str.failbit)`, or
16
- `(err|str.failbit|str.eofbit)` if no more characters are available, and
17
- does not change `units` or `digits`. Uses the pattern returned by
18
- `mp.neg_format()` to parse all values. The result is returned as an
19
- integral value stored in `units` or as a sequence of digits possibly
20
- preceded by a minus sign (as produced by `ct.widen(c)` where `c` is
21
- `’-’` or in the range from `’0’` through `’9’` (inclusive)) stored in
22
- `digits`.
23
 
24
  [*Example 1*: The sequence `$1,056.23` in a common United States locale
25
  would yield, for `units`, `105623`, or, for `digits`,
26
  `"105623"`. — *end example*]
27
 
@@ -62,11 +62,11 @@ the result is given a positive sign.
62
 
63
  Digits in the numeric monetary component are extracted and placed in
64
  `digits`, or into a character buffer `buf1` for conversion to produce a
65
  value for `units`, in the order in which they appear, preceded by a
66
  minus sign if and only if the result is negative. The value `units` is
67
- produced as if by[^18]
68
 
69
  ``` cpp
70
  for (int i = 0; i < n; ++i)
71
  buf2[i] = src[find(atoms, atoms + sizeof(src), buf1[i]) - atoms];
72
  buf2[n] = 0;
 
1
+ ###### Virtual functions <a id="locale.money.get.virtuals">[[locale.money.get.virtuals]]</a>
2
 
3
  ``` cpp
4
  iter_type do_get(iter_type s, iter_type end, bool intl, ios_base& str,
5
  ios_base::iostate& err, long double& units) const;
6
  iter_type do_get(iter_type s, iter_type end, bool intl, ios_base& str,
 
10
  *Effects:* Reads characters from `s` to parse and construct a monetary
11
  value according to the format specified by a `moneypunct<charT, Intl>`
12
  facet reference `mp` and the character mapping specified by a
13
  `ctype<charT>` facet reference `ct` obtained from the locale returned by
14
  `str.getloc()`, and `str.flags()`. If a valid sequence is recognized,
15
+ does not change `err`; otherwise, sets `err` to `(err | str.failbit)`,
16
+ or `(err | str.failbit | str.eofbit)` if no more characters are
17
+ available, and does not change `units` or `digits`. Uses the pattern
18
+ returned by `mp.neg_format()` to parse all values. The result is
19
+ returned as an integral value stored in `units` or as a sequence of
20
+ digits possibly preceded by a minus sign (as produced by `ct.widen(c)`
21
+ where `c` is `’-’` or in the range from `’0’` through `’9’` (inclusive))
22
+ stored in `digits`.
23
 
24
  [*Example 1*: The sequence `$1,056.23` in a common United States locale
25
  would yield, for `units`, `105623`, or, for `digits`,
26
  `"105623"`. — *end example*]
27
 
 
62
 
63
  Digits in the numeric monetary component are extracted and placed in
64
  `digits`, or into a character buffer `buf1` for conversion to produce a
65
  value for `units`, in the order in which they appear, preceded by a
66
  minus sign if and only if the result is negative. The value `units` is
67
+ produced as if by[^17]
68
 
69
  ``` cpp
70
  for (int i = 0; i < n; ++i)
71
  buf2[i] = src[find(atoms, atoms + sizeof(src), buf1[i]) - atoms];
72
  buf2[n] = 0;