Showing content from https://en.cppreference.com/w/cpp/string/basic_string/../../../c/language/../string/byte.html below:
Null-terminated byte strings - cppreference.com
Null-terminated byte strings
A null-terminated byte string (NTBS) is a sequence of nonzero bytes followed by a byte with value zero (the terminating null character). Each byte in a byte string encodes one character of some character set. For example, the character array {'\x63','\x61','\x74','\0'} is an NTBS holding the string "cat" in ASCII encoding.
[edit] Functions Character classification checks if a character is alphanumeric
(function) [edit] checks if a character is alphabetic
(function) [edit] checks if a character is lowercase
(function) [edit] checks if a character is an uppercase character
(function) [edit] checks if a character is a digit
(function) [edit] checks if a character is a hexadecimal character
(function) [edit] checks if a character is a control character
(function) [edit] checks if a character is a graphical character
(function) [edit] checks if a character is a space character
(function) [edit] checks if a character is a blank character
(function) [edit] checks if a character is a printing character
(function) [edit] checks if a character is a punctuation character
(function) [edit] Character manipulation converts a character to lowercase
(function) [edit] converts a character to uppercase
(function) [edit]
Note: additional functions whose names begin with either to
or is
, followed by a lowercase letter, may be added to the header <ctype.h> in future and should not be defined by programs that include that header.
ASCII values characters
iscntrl
iswcntrl
isprint
iswprint
isspace
iswspace
isblank
iswblank
isgraph
iswgraph
ispunct
iswpunct
isalnum
iswalnum
isalpha
iswalpha
isupper
iswupper
islower
iswlower
isdigit
iswdigit
isxdigit
iswxdigit
decimal hexadecimal octal 0â8 \x0
â\x8
\0
â\10
control codes (NUL
, etc.) â 0
0
0
0
0
0
0
0
0
0
0
0
9 \x9
\11
tab (\t
) â 0
0
â 0
â 0
0
0
0
0
0
0
0
0
10â13 \xA
â\xD
\12
â\15
whitespaces (\n
, \v
, \f
, \r
) â 0
0
â 0
0
0
0
0
0
0
0
0
0
14â31 \xE
â\x1F
\16
â\37
control codes â 0
0
0
0
0
0
0
0
0
0
0
0
32 \x20
\40
space 0
â 0
â 0
â 0
0
0
0
0
0
0
0
0
33â47 \x21
â\x2F
\41
â\57
!"#$%&'()*+,-./
0
â 0
0
0
â 0
â 0
0
0
0
0
0
0
48â57 \x30
â\x39
\60
â\71
0123456789
0
â 0
0
0
â 0
0
â 0
0
0
0
â 0
â 0
58â64 \x3A
â\x40
\72
â\100
:;<=>?@
0
â 0
0
0
â 0
â 0
0
0
0
0
0
0
65â70 \x41
â\x46
\101
â\106
ABCDEF
0
â 0
0
0
â 0
0
â 0
â 0
â 0
0
0
â 0
71â90 \x47
â\x5A
\107
â\132
GHIJKLMNOP
QRSTUVWXYZ
0
â 0
0
0
â 0
0
â 0
â 0
â 0
0
0
0
91â96 \x5B
â\x60
\133
â\140
[\]^_`
0
â 0
0
0
â 0
â 0
0
0
0
0
0
0
97â102 \x61
â\x66
\141
â\146
abcdef
0
â 0
0
0
â 0
0
â 0
â 0
0
â 0
0
â 0
103â122 \x67
â\x7A
\147
â\172
ghijklmnop
qrstuvwxyz
0
â 0
0
0
â 0
0
â 0
â 0
0
â 0
0
0
123â126 \x7B
â\x7E
\173
â\176
{|}~
0
â 0
0
0
â 0
â 0
0
0
0
0
0
0
127 \x7F
\177
backspace character (DEL
) â 0
0
0
0
0
0
0
0
0
0
0
0
[edit] References Extended content
- C23 standard (ISO/IEC 9899:2024):
-
- 7.4 Character handling <ctype.h> (p: TBD)
-
- 7.8 Format conversion of integer types <inttypes.h> (p: TBD)
-
- 7.22 General utilities <stdlib.h> (p: TBD)
-
- 7.24 String handling <string.h> (p: TBD)
-
- 7.31.2 Character handling <ctype.h> (p: TBD)
-
- 7.31.5 Format conversion of integer types <inttypes.h> (p: TBD)
-
- 7.31.12 General utilities <stdlib.h> (p: TBD)
-
- 7.31.13 String handling <string.h> (p: TBD)
-
- K.3.6 General utilities <stdlib.h> (p: TBD)
-
- K.3.7 String handling <string.h> (p: TBD)
- C17 standard (ISO/IEC 9899:2018):
-
- 7.4 Character handling <ctype.h> (p: TBD)
-
- 7.8 Format conversion of integer types <inttypes.h> (p: TBD)
-
- 7.22 General utilities <stdlib.h> (p: TBD)
-
- 7.24 String handling <string.h> (p: TBD)
-
- 7.31.2 Character handling <ctype.h> (p: TBD)
-
- 7.31.5 Format conversion of integer types <inttypes.h> (p: TBD)
-
- 7.31.12 General utilities <stdlib.h> (p: TBD)
-
- 7.31.13 String handling <string.h> (p: TBD)
-
- K.3.6 General utilities <stdlib.h> (p: TBD)
-
- K.3.7 String handling <string.h> (p: TBD)
- C11 standard (ISO/IEC 9899:2011):
-
- 7.4 Character handling <ctype.h> (p: 200-204)
-
- 7.8 Format conversion of integer types <inttypes.h> (p: 217-220)
-
- 7.22 General utilities <stdlib.h> (p: 340-360)
-
- 7.24 String handling <string.h> (p: 362-372)
-
- 7.31.2 Character handling <ctype.h> (p: 455)
-
- 7.31.5 Format conversion of integer types <inttypes.h> (p: 455)
-
- 7.31.12 General utilities <stdlib.h> (p: 456)
-
- 7.31.13 String handling <string.h> (p: 456)
-
- K.3.6 General utilities <stdlib.h> (p: 604-613)
-
- K.3.7 String handling <string.h> (p: 614-623)
- C99 standard (ISO/IEC 9899:1999):
-
- 7.4 Character handling <ctype.h> (p: 181-185)
-
- 7.8 Format conversion of integer types <inttypes.h> (p: 198-201)
-
- 7.20 General utilities <stdlib.h> (p: 306-324)
-
- 7.21 String handling <string.h> (p: 325-334)
-
- 7.26.2 Character handling <ctype.h> (p: 401)
-
- 7.26.4 Format conversion of integer types <inttypes.h> (p: 401)
-
- 7.26.10 General utilities <stdlib.h> (p: 402)
-
- 7.26.11 String handling <string.h> (p: 402)
- C89/C90 standard (ISO/IEC 9899:1990):
-
- 4.3 CHARACTER HANDLING <ctype.h>
-
- 4.10 GENERAL UTILITIES <stdlib.h>
-
- 4.11 STRING HANDLING <string.h>
-
- 4.13.2 Character handling <ctype.h>
-
- 4.13.7 General utilities <stdlib.h>
-
- 4.13.8 String handling <string.h>
[edit] See also
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4