tmp/tmpxr_98h7s/{from.md → to.md}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
-
#### `ctype<char>` specialization <a id="facet.ctype.special">[[facet.ctype.special]]</a>
|
| 2 |
|
| 3 |
-
##### General <a id="facet.ctype.special.general">[[facet.ctype.special.general]]</a>
|
| 4 |
|
| 5 |
``` cpp
|
| 6 |
namespace std {
|
| 7 |
template<>
|
| 8 |
class ctype<char> : public locale::facet, public ctype_base {
|
|
@@ -52,20 +52,20 @@ A specialization `ctype<char>` is provided so that the member functions
|
|
| 52 |
on type `char` can be implemented inline.[^7]
|
| 53 |
|
| 54 |
The *implementation-defined* value of member `table_size` is at least
|
| 55 |
256.
|
| 56 |
|
| 57 |
-
##### Destructor <a id="facet.ctype.char.dtor">[[facet.ctype.char.dtor]]</a>
|
| 58 |
|
| 59 |
``` cpp
|
| 60 |
~ctype();
|
| 61 |
```
|
| 62 |
|
| 63 |
*Effects:* If the constructor’s first argument was nonzero, and its
|
| 64 |
second argument was `true`, does `delete [] table()`.
|
| 65 |
|
| 66 |
-
##### Members <a id="facet.ctype.char.members">[[facet.ctype.char.members]]</a>
|
| 67 |
|
| 68 |
In the following member descriptions, for `unsigned char` values `v`
|
| 69 |
where `v >= table_size`, `table()[v]` is assumed to have an
|
| 70 |
implementation-specific value (possibly different for each such value
|
| 71 |
`v`) without performing the array lookup.
|
|
@@ -148,21 +148,21 @@ const mask* table() const noexcept;
|
|
| 148 |
```
|
| 149 |
|
| 150 |
*Returns:* The first constructor argument, if it was nonzero, otherwise
|
| 151 |
`classic_table()`.
|
| 152 |
|
| 153 |
-
##### Static members <a id="facet.ctype.char.statics">[[facet.ctype.char.statics]]</a>
|
| 154 |
|
| 155 |
``` cpp
|
| 156 |
static const mask* classic_table() noexcept;
|
| 157 |
```
|
| 158 |
|
| 159 |
*Returns:* A pointer to the initial element of an array of size
|
| 160 |
`table_size` which represents the classifications of characters in the
|
| 161 |
`"C"` locale.
|
| 162 |
|
| 163 |
-
##### Virtual functions <a id="facet.ctype.char.virtuals">[[facet.ctype.char.virtuals]]</a>
|
| 164 |
|
| 165 |
``` cpp
|
| 166 |
char do_toupper(char) const;
|
| 167 |
const char* do_toupper(char* low, const char* high) const;
|
| 168 |
char do_tolower(char) const;
|
|
|
|
| 1 |
+
##### `ctype<char>` specialization <a id="facet.ctype.special">[[facet.ctype.special]]</a>
|
| 2 |
|
| 3 |
+
###### General <a id="facet.ctype.special.general">[[facet.ctype.special.general]]</a>
|
| 4 |
|
| 5 |
``` cpp
|
| 6 |
namespace std {
|
| 7 |
template<>
|
| 8 |
class ctype<char> : public locale::facet, public ctype_base {
|
|
|
|
| 52 |
on type `char` can be implemented inline.[^7]
|
| 53 |
|
| 54 |
The *implementation-defined* value of member `table_size` is at least
|
| 55 |
256.
|
| 56 |
|
| 57 |
+
###### Destructor <a id="facet.ctype.char.dtor">[[facet.ctype.char.dtor]]</a>
|
| 58 |
|
| 59 |
``` cpp
|
| 60 |
~ctype();
|
| 61 |
```
|
| 62 |
|
| 63 |
*Effects:* If the constructor’s first argument was nonzero, and its
|
| 64 |
second argument was `true`, does `delete [] table()`.
|
| 65 |
|
| 66 |
+
###### Members <a id="facet.ctype.char.members">[[facet.ctype.char.members]]</a>
|
| 67 |
|
| 68 |
In the following member descriptions, for `unsigned char` values `v`
|
| 69 |
where `v >= table_size`, `table()[v]` is assumed to have an
|
| 70 |
implementation-specific value (possibly different for each such value
|
| 71 |
`v`) without performing the array lookup.
|
|
|
|
| 148 |
```
|
| 149 |
|
| 150 |
*Returns:* The first constructor argument, if it was nonzero, otherwise
|
| 151 |
`classic_table()`.
|
| 152 |
|
| 153 |
+
###### Static members <a id="facet.ctype.char.statics">[[facet.ctype.char.statics]]</a>
|
| 154 |
|
| 155 |
``` cpp
|
| 156 |
static const mask* classic_table() noexcept;
|
| 157 |
```
|
| 158 |
|
| 159 |
*Returns:* A pointer to the initial element of an array of size
|
| 160 |
`table_size` which represents the classifications of characters in the
|
| 161 |
`"C"` locale.
|
| 162 |
|
| 163 |
+
###### Virtual functions <a id="facet.ctype.char.virtuals">[[facet.ctype.char.virtuals]]</a>
|
| 164 |
|
| 165 |
``` cpp
|
| 166 |
char do_toupper(char) const;
|
| 167 |
const char* do_toupper(char* low, const char* high) const;
|
| 168 |
char do_tolower(char) const;
|