tmp/tmp5ac5xvkx/{from.md → to.md}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
-
#### Class template `ctype` <a id="locale.ctype">[[locale.ctype]]</a>
|
| 2 |
|
| 3 |
-
##### General <a id="locale.ctype.general">[[locale.ctype.general]]</a>
|
| 4 |
|
| 5 |
``` cpp
|
| 6 |
namespace std {
|
| 7 |
template<class charT>
|
| 8 |
class ctype : public locale::facet, public ctype_base {
|
|
@@ -53,11 +53,11 @@ input parsing.
|
|
| 53 |
The specializations required in [[locale.category.facets]]
|
| 54 |
[[locale.category]], namely `ctype<char>` and `ctype<wchar_t>`,
|
| 55 |
implement character classing appropriate to the implementation’s native
|
| 56 |
character set.
|
| 57 |
|
| 58 |
-
##### `ctype` members <a id="locale.ctype.members">[[locale.ctype.members]]</a>
|
| 59 |
|
| 60 |
``` cpp
|
| 61 |
bool is(mask m, charT c) const;
|
| 62 |
const charT* is(const charT* low, const charT* high, mask* vec) const;
|
| 63 |
```
|
|
@@ -75,11 +75,11 @@ const charT* scan_not(mask m, const charT* low, const charT* high) const;
|
|
| 75 |
```
|
| 76 |
|
| 77 |
*Returns:* `do_scan_not(m, low, high)`.
|
| 78 |
|
| 79 |
``` cpp
|
| 80 |
-
charT toupper(charT) const;
|
| 81 |
const charT* toupper(charT* low, const charT* high) const;
|
| 82 |
```
|
| 83 |
|
| 84 |
*Returns:* `do_toupper(c)` or `do_toupper(low, high)`.
|
| 85 |
|
|
@@ -102,11 +102,11 @@ char narrow(charT c, char dfault) const;
|
|
| 102 |
const charT* narrow(const charT* low, const charT* high, char dfault, char* to) const;
|
| 103 |
```
|
| 104 |
|
| 105 |
*Returns:* `do_narrow(c, dfault)` or `do_narrow(low, high, dfault, to)`.
|
| 106 |
|
| 107 |
-
##### `ctype` virtual functions <a id="locale.ctype.virtuals">[[locale.ctype.virtuals]]</a>
|
| 108 |
|
| 109 |
``` cpp
|
| 110 |
bool do_is(mask m, charT c) const;
|
| 111 |
const charT* do_is(const charT* low, const charT* high, mask* vec) const;
|
| 112 |
```
|
|
@@ -178,11 +178,11 @@ value or sequence of `char` values to the corresponding `charT` value or
|
|
| 178 |
values.[^5]
|
| 179 |
|
| 180 |
The only characters for which unique transformations are required are
|
| 181 |
those in the basic character set [[lex.charset]].
|
| 182 |
|
| 183 |
-
For any named `ctype` category with a `ctype<
|
| 184 |
valid `ctype_base::mask` value `M`,
|
| 185 |
`(ctc.is(M, c) || !is(M, do_widen(c)) )` is `true`.[^6]
|
| 186 |
|
| 187 |
The second form transforms each character `*p` in the range \[`low`,
|
| 188 |
`high`), placing the result in `dest[p - low]`.
|
|
|
|
| 1 |
+
##### Class template `ctype` <a id="locale.ctype">[[locale.ctype]]</a>
|
| 2 |
|
| 3 |
+
###### General <a id="locale.ctype.general">[[locale.ctype.general]]</a>
|
| 4 |
|
| 5 |
``` cpp
|
| 6 |
namespace std {
|
| 7 |
template<class charT>
|
| 8 |
class ctype : public locale::facet, public ctype_base {
|
|
|
|
| 53 |
The specializations required in [[locale.category.facets]]
|
| 54 |
[[locale.category]], namely `ctype<char>` and `ctype<wchar_t>`,
|
| 55 |
implement character classing appropriate to the implementation’s native
|
| 56 |
character set.
|
| 57 |
|
| 58 |
+
###### `ctype` members <a id="locale.ctype.members">[[locale.ctype.members]]</a>
|
| 59 |
|
| 60 |
``` cpp
|
| 61 |
bool is(mask m, charT c) const;
|
| 62 |
const charT* is(const charT* low, const charT* high, mask* vec) const;
|
| 63 |
```
|
|
|
|
| 75 |
```
|
| 76 |
|
| 77 |
*Returns:* `do_scan_not(m, low, high)`.
|
| 78 |
|
| 79 |
``` cpp
|
| 80 |
+
charT toupper(charT c) const;
|
| 81 |
const charT* toupper(charT* low, const charT* high) const;
|
| 82 |
```
|
| 83 |
|
| 84 |
*Returns:* `do_toupper(c)` or `do_toupper(low, high)`.
|
| 85 |
|
|
|
|
| 102 |
const charT* narrow(const charT* low, const charT* high, char dfault, char* to) const;
|
| 103 |
```
|
| 104 |
|
| 105 |
*Returns:* `do_narrow(c, dfault)` or `do_narrow(low, high, dfault, to)`.
|
| 106 |
|
| 107 |
+
###### `ctype` virtual functions <a id="locale.ctype.virtuals">[[locale.ctype.virtuals]]</a>
|
| 108 |
|
| 109 |
``` cpp
|
| 110 |
bool do_is(mask m, charT c) const;
|
| 111 |
const charT* do_is(const charT* low, const charT* high, mask* vec) const;
|
| 112 |
```
|
|
|
|
| 178 |
values.[^5]
|
| 179 |
|
| 180 |
The only characters for which unique transformations are required are
|
| 181 |
those in the basic character set [[lex.charset]].
|
| 182 |
|
| 183 |
+
For any named `ctype` category with a `ctype<char>` facet `ctc` and
|
| 184 |
valid `ctype_base::mask` value `M`,
|
| 185 |
`(ctc.is(M, c) || !is(M, do_widen(c)) )` is `true`.[^6]
|
| 186 |
|
| 187 |
The second form transforms each character `*p` in the range \[`low`,
|
| 188 |
`high`), placing the result in `dest[p - low]`.
|