字符类型
来自cppreference.com
< cpp | string | basic string
ASCII 值 (hex) |
字符 | /string/c/iscntrl /string/cw/iswcntrl |
/string/c/isprint /string/cw/iswprint |
/string/c/isspace /string/cw/iswspace |
/string/c/isgraph /string/cw/iswgraph |
/string/c/ispunct /string/cw/iswpunct |
/string/c/isalnum /string/cw/iswalnum |
/string/c/isalpha /string/cw/iswalpha |
/string/c/isupper /string/cw/iswupper |
/string/c/islower /string/cw/iswlower |
/string/c/isdigit /string/cw/iswdigit |
/string/c/isxdigit /string/cw/iswxdigit |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 - 8 (0x00-0x08) |
控制码 (NUL 等) | X | |||||||||||
9 - 13 (0x09-0x0D) |
空白字符 (\t','\f','\v','\n','\r') |
X | X | ||||||||||
14 - 31 (0x0E-0x1F) |
控制码 | X | |||||||||||
32 (0x20) |
空格 | X | X | ||||||||||
33 - 47 (0x21-0x2F) |
!"#$%&'()*+,-./ | X | X | X | |||||||||
48 - 57 (0x30-0x39) |
01234567890 | X | X | X | X | X | |||||||
58 - 64 (0x3a-0x40) |
:;<=>?@ | X | X | X | |||||||||
65 - 70 (0x41-0x46) |
ABCDEF | X | X | X | X | X | X | ||||||
71 - 90 (0x47-0x5A) |
GHIJKLMNOPQRSTUVWXYZ | X | X | X | X | X | |||||||
91 - 96 (0x5B-0x60) |
[\] !_` | X | X | X | |||||||||
97 -102 (0x61-0x66) |
abcdef | X | X | X | X | X | X | ||||||
103-122 (0x67-0x7A) |
ghijklmnopqrstuvwxyz | X | X | X | X | X | |||||||
123-126 (0x7B-0x7E) |
{ |}~ | X | X | X | |||||||||
127 (0x7F) |
退格字符 (DEL) | X |