Showing content from https://en.cppreference.com/w/cpp/language/../string/byte.html below:
Null-terminated byte strings - cppreference.com
Null-terminated byte strings
A null-terminated byte string (NTBS) is a possibly empty 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] 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
\172
â\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
Conversions to numeric formats converts a byte string to a floating point value
(function) [edit] converts a byte string to an integer value
(function) [edit] converts a byte string to an integer value
(function) [edit] converts a byte string to an unsigned integer value
(function) [edit] converts a byte string to a floating-point value
(function) [edit] converts a byte string to std::intmax_t or std::uintmax_t
(function) [edit] String manipulation copies one string to another
(function) [edit] copies a certain amount of characters from one string to another
(function) [edit] concatenates two strings
(function) [edit] concatenates a certain amount of characters of two strings
(function) [edit] transform a string so that strcmp
would produce the same result as strcoll
(function) [edit] String examination returns the length of a given string
(function) [edit] compares two strings
(function) [edit] compares a certain number of characters from two strings
(function) [edit] compares two strings in accordance to the current locale
(function) [edit] finds the first occurrence of a character
(function) [edit] finds the last occurrence of a character
(function) [edit] returns the length of the maximum initial segment that consists
of only the characters found in another byte string
(function) [edit] returns the length of the maximum initial segment that consists
of only the characters not found in another byte string
(function) [edit] finds the first location of any character from a set of separators
(function) [edit] finds the first occurrence of a substring of characters
(function) [edit] finds the next token in a byte string
(function) [edit] Character array functions searches an array for the first occurrence of a character
(function) [edit] compares two buffers
(function) [edit] fills a buffer with a character
(function) [edit] copies one buffer to another
(function) [edit] moves one buffer to another
(function) [edit] Miscellaneous returns a text version of a given error code
(function) [edit] [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