From Jason Turner

[locale.codecvt.virtuals]

Diff to HTML by rtfpessoa

tmp/tmppfj9veym/{from.md → to.md} RENAMED
@@ -1,6 +1,6 @@
1
- ##### Virtual functions <a id="locale.codecvt.virtuals">[[locale.codecvt.virtuals]]</a>
2
 
3
  ``` cpp
4
  result do_out(
5
  stateT& state,
6
  const internT* from, const internT* from_end, const internT*& from_next,
@@ -22,13 +22,13 @@ the sequence.
22
  destination `to`. Converts no more than `(from_end - from)` source
23
  elements, and stores no more than `(to_end - to)` destination elements.
24
 
25
  Stops if it encounters a character it cannot convert. It always leaves
26
  the `from_next` and `to_next` pointers pointing one beyond the last
27
- element successfully converted. If returns `noconv`, `internT` and
28
- `externT` are the same type and the converted sequence is identical to
29
- the input sequence \[`from`, `from``next`). `to_next` is set equal to
30
  `to`, the value of `state` is unchanged, and there are no changes to the
31
  values in \[`to`, `to_end`).
32
 
33
  A `codecvt` facet that is used by `basic_filebuf` [[file.streams]] shall
34
  have the property that if
@@ -139,14 +139,14 @@ sequence.
139
 
140
  *Effects:* The effect on the `state` argument is as if it called
141
  `do_in(state, from, from_end, from, to, to + max, to)` for `to` pointing
142
  to a buffer of at least `max` elements.
143
 
144
- *Returns:* `(from_next-from)` where `from_next` is the largest value in
145
- the range \[`from`, `from_end`\] such that the sequence of values in the
146
- range \[`from`, `from_next`) represents `max` or fewer valid complete
147
- characters of type `internT`. The specialization
148
  `codecvt<char, char, mbstate_t>`, returns the lesser of `max` and
149
  `(from_end - from)`.
150
 
151
  ``` cpp
152
  int do_max_length() const noexcept;
 
1
+ ###### Virtual functions <a id="locale.codecvt.virtuals">[[locale.codecvt.virtuals]]</a>
2
 
3
  ``` cpp
4
  result do_out(
5
  stateT& state,
6
  const internT* from, const internT* from_end, const internT*& from_next,
 
22
  destination `to`. Converts no more than `(from_end - from)` source
23
  elements, and stores no more than `(to_end - to)` destination elements.
24
 
25
  Stops if it encounters a character it cannot convert. It always leaves
26
  the `from_next` and `to_next` pointers pointing one beyond the last
27
+ element successfully converted. If it returns `noconv`, `internT` and
28
+ `externT` are the same type, and the converted sequence is identical to
29
+ the input sequence \[`from`, `from``next`), `to_next` is set equal to
30
  `to`, the value of `state` is unchanged, and there are no changes to the
31
  values in \[`to`, `to_end`).
32
 
33
  A `codecvt` facet that is used by `basic_filebuf` [[file.streams]] shall
34
  have the property that if
 
139
 
140
  *Effects:* The effect on the `state` argument is as if it called
141
  `do_in(state, from, from_end, from, to, to + max, to)` for `to` pointing
142
  to a buffer of at least `max` elements.
143
 
144
+ *Returns:* `(from_next - from)` where `from_next` is the largest value
145
+ in the range \[`from`, `from_end`\] such that the sequence of values in
146
+ the range \[`from`, `from_next`) represents `max` or fewer valid
147
+ complete characters of type `internT`. The specialization
148
  `codecvt<char, char, mbstate_t>`, returns the lesser of `max` and
149
  `(from_end - from)`.
150
 
151
  ``` cpp
152
  int do_max_length() const noexcept;