tmp/tmp5v93p1_1/{from.md → to.md}
RENAMED
|
@@ -1,26 +1,26 @@
|
|
| 1 |
-
#### General <a id="category.ctype.general">[[category.ctype.general]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
class ctype_base {
|
| 6 |
public:
|
| 7 |
using mask = see below;
|
| 8 |
|
| 9 |
// numeric values are for exposition only.
|
| 10 |
-
static
|
| 11 |
-
static
|
| 12 |
-
static
|
| 13 |
-
static
|
| 14 |
-
static
|
| 15 |
-
static
|
| 16 |
-
static
|
| 17 |
-
static
|
| 18 |
-
static
|
| 19 |
-
static
|
| 20 |
-
static
|
| 21 |
-
static
|
| 22 |
};
|
| 23 |
}
|
| 24 |
```
|
| 25 |
|
| 26 |
The type `mask` is a bitmask type [[bitmask.types]].
|
|
|
|
| 1 |
+
##### General <a id="category.ctype.general">[[category.ctype.general]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
namespace std {
|
| 5 |
class ctype_base {
|
| 6 |
public:
|
| 7 |
using mask = see below;
|
| 8 |
|
| 9 |
// numeric values are for exposition only.
|
| 10 |
+
static constexpr mask space = 1 << 0;
|
| 11 |
+
static constexpr mask print = 1 << 1;
|
| 12 |
+
static constexpr mask cntrl = 1 << 2;
|
| 13 |
+
static constexpr mask upper = 1 << 3;
|
| 14 |
+
static constexpr mask lower = 1 << 4;
|
| 15 |
+
static constexpr mask alpha = 1 << 5;
|
| 16 |
+
static constexpr mask digit = 1 << 6;
|
| 17 |
+
static constexpr mask punct = 1 << 7;
|
| 18 |
+
static constexpr mask xdigit = 1 << 8;
|
| 19 |
+
static constexpr mask blank = 1 << 9;
|
| 20 |
+
static constexpr mask alnum = alpha | digit;
|
| 21 |
+
static constexpr mask graph = alnum | punct;
|
| 22 |
};
|
| 23 |
}
|
| 24 |
```
|
| 25 |
|
| 26 |
The type `mask` is a bitmask type [[bitmask.types]].
|