tmp/tmp_kztcisv/{from.md → to.md}
RENAMED
|
@@ -532,19 +532,20 @@ mapped between.
|
|
| 532 |
The specializations required in Table
|
| 533 |
[[tab:localization.category.facets]] ([[locale.category]]) convert the
|
| 534 |
implementation-defined native character set.
|
| 535 |
`codecvt<char, char, mbstate_t>` implements a degenerate conversion; it
|
| 536 |
does not convert at all. The specialization `codecvt<char16_t,`
|
| 537 |
-
`char, mbstate_t>` converts between the UTF-16 and UTF-8 encoding
|
| 538 |
-
|
| 539 |
-
|
| 540 |
`codecvt<wchar_t,char,mbstate_t>` converts between the native character
|
| 541 |
sets for narrow and wide characters. Specializations on `mbstate_t`
|
| 542 |
perform conversion between encodings known to the library implementer.
|
| 543 |
Other encodings can be converted by specializing on a user-defined
|
| 544 |
-
`stateT` type.
|
| 545 |
-
to communicate to or from the specialized `do_in` or `do_out`
|
|
|
|
| 546 |
|
| 547 |
##### `codecvt` members <a id="locale.codecvt.members">[[locale.codecvt.members]]</a>
|
| 548 |
|
| 549 |
``` cpp
|
| 550 |
result out(stateT& state,
|
|
|
|
| 532 |
The specializations required in Table
|
| 533 |
[[tab:localization.category.facets]] ([[locale.category]]) convert the
|
| 534 |
implementation-defined native character set.
|
| 535 |
`codecvt<char, char, mbstate_t>` implements a degenerate conversion; it
|
| 536 |
does not convert at all. The specialization `codecvt<char16_t,`
|
| 537 |
+
`char, mbstate_t>` converts between the UTF-16 and UTF-8 encoding forms,
|
| 538 |
+
and the specialization `codecvt` `<char32_t, char, mbstate_t>` converts
|
| 539 |
+
between the UTF-32 and UTF-8 encoding forms.
|
| 540 |
`codecvt<wchar_t,char,mbstate_t>` converts between the native character
|
| 541 |
sets for narrow and wide characters. Specializations on `mbstate_t`
|
| 542 |
perform conversion between encodings known to the library implementer.
|
| 543 |
Other encodings can be converted by specializing on a user-defined
|
| 544 |
+
`stateT` type. Objects of type `stateT` can contain any state that is
|
| 545 |
+
useful to communicate to or from the specialized `do_in` or `do_out`
|
| 546 |
+
members.
|
| 547 |
|
| 548 |
##### `codecvt` members <a id="locale.codecvt.members">[[locale.codecvt.members]]</a>
|
| 549 |
|
| 550 |
``` cpp
|
| 551 |
result out(stateT& state,
|