From Jason Turner

[depr.locale.stdcvt.req]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpo130fvov/{from.md → to.md} +49 -0
tmp/tmpo130fvov/{from.md → to.md} RENAMED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Requirements <a id="depr.locale.stdcvt.req">[[depr.locale.stdcvt.req]]</a>
2
+
3
+ For each of the three code conversion facets `codecvt_utf8`,
4
+ `codecvt_utf16`, and `codecvt_utf8_utf16`:
5
+
6
+ - `Elem` is the wide-character type, such as `wchar_t`, `char16_t`, or
7
+ `char32_t`.
8
+ - `Maxcode` is the largest wide-character code that the facet will read
9
+ or write without reporting a conversion error.
10
+ - If `(Mode & consume_header)`, the facet shall consume an initial
11
+ header sequence, if present, when reading a multibyte sequence to
12
+ determine the endianness of the subsequent multibyte sequence to be
13
+ read.
14
+ - If `(Mode & generate_header)`, the facet shall generate an initial
15
+ header sequence when writing a multibyte sequence to advertise the
16
+ endianness of the subsequent multibyte sequence to be written.
17
+ - If `(Mode & little_endian)`, the facet shall generate a multibyte
18
+ sequence in little-endian order, as opposed to the default big-endian
19
+ order.
20
+
21
+ For the facet `codecvt_utf8`:
22
+
23
+ - The facet shall convert between UTF-8 multibyte sequences and UCS2 or
24
+ UCS4 (depending on the size of `Elem`) within the program.
25
+ - Endianness shall not affect how multibyte sequences are read or
26
+ written.
27
+ - The multibyte sequences may be written as either a text or a binary
28
+ file.
29
+
30
+ For the facet `codecvt_utf16`:
31
+
32
+ - The facet shall convert between UTF-16 multibyte sequences and UCS2 or
33
+ UCS4 (depending on the size of `Elem`) within the program.
34
+ - Multibyte sequences shall be read or written according to the `Mode`
35
+ flag, as set out above.
36
+ - The multibyte sequences may be written only as a binary file.
37
+ Attempting to write to a text file produces undefined behavior.
38
+
39
+ For the facet `codecvt_utf8_utf16`:
40
+
41
+ - The facet shall convert between UTF-8 multibyte sequences and UTF-16
42
+ (one or two 16-bit codes) within the program.
43
+ - Endianness shall not affect how multibyte sequences are read or
44
+ written.
45
+ - The multibyte sequences may be written as either a text or a binary
46
+ file.
47
+
48
+ ISO/IEC 10646-1:1993.
49
+