tmp/tmp9jr71zot/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
###### General <a id="character.seq.general">[[character.seq.general]]</a>
|
| 2 |
+
|
| 3 |
+
The C standard library makes widespread use of characters and character
|
| 4 |
+
sequences that follow a few uniform conventions:
|
| 5 |
+
|
| 6 |
+
- Properties specified as *locale-specific* may change during program
|
| 7 |
+
execution by a call to `setlocale(int, const char*)` [[clocale.syn]],
|
| 8 |
+
or by a change to a `locale` object, as described in [[locales]] and
|
| 9 |
+
[[input.output]].
|
| 10 |
+
- The *execution character set* and the *execution wide-character set*
|
| 11 |
+
are supersets of the basic literal character set [[lex.charset]]. The
|
| 12 |
+
encodings of the execution character sets and the sets of additional
|
| 13 |
+
elements (if any) are locale-specific. Each element of the execution
|
| 14 |
+
wide-character set is encoded as a single code unit representable by a
|
| 15 |
+
value of type `wchar_t`. \[*Note 1*: The encodings of the execution
|
| 16 |
+
character sets can be unrelated to any literal
|
| 17 |
+
encoding. — *end note*]
|
| 18 |
+
- A *letter* is any of the 26 lowercase or 26 uppercase letters in the
|
| 19 |
+
basic character set.
|
| 20 |
+
- The *decimal-point character* is the locale-specific (single-byte)
|
| 21 |
+
character used by functions that convert between a (single-byte)
|
| 22 |
+
character sequence and a value of one of the floating-point types. It
|
| 23 |
+
is used in the character sequence to denote the beginning of a
|
| 24 |
+
fractional part. It is represented in [[support]] through [[thread]]
|
| 25 |
+
and [[depr]] by a period, `'.'`, which is also its value in the `"C"`
|
| 26 |
+
locale.
|
| 27 |
+
- A *character sequence* is an array object [[dcl.array]] `A` that can
|
| 28 |
+
be declared as `T A[N]`, where `T` is any of the types `char`,
|
| 29 |
+
`unsigned char`, or `signed char` [[basic.fundamental]], optionally
|
| 30 |
+
qualified by any combination of `const` or `volatile`. The initial
|
| 31 |
+
elements of the array have defined contents up to and including an
|
| 32 |
+
element determined by some predicate. A character sequence can be
|
| 33 |
+
designated by a pointer value `S` that points to its first element.
|
| 34 |
+
|