Namespaces
Variants
Views
Actions

Null-terminated byte strings

From cppreference.com
< cpp‎ | string
Revision as of 09:41, 2 November 2012 by P12bot (Talk | contribs)

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.

Contents

Functions

Template:cpp/string/byte/dcl list isalnumTemplate:cpp/string/byte/dcl list isalphaTemplate:cpp/string/byte/dcl list islowerTemplate:cpp/string/byte/dcl list isupperTemplate:cpp/string/byte/dcl list isdigitTemplate:cpp/string/byte/dcl list isxdigitTemplate:cpp/string/byte/dcl list iscntrlTemplate:cpp/string/byte/dcl list isgraphTemplate:cpp/string/byte/dcl list isspaceTemplate:cpp/string/byte/dcl list isblankTemplate:cpp/string/byte/dcl list isprintTemplate:cpp/string/byte/dcl list ispunctTemplate:cpp/string/byte/dcl list tolowerTemplate:cpp/string/byte/dcl list toupper
Character classification
Defined in header <cctype>
Character manipulation
ASCII values
(hex)
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

0 - 8 0x00-0x08 control codes (NUL, etc.) ≠0 0 0 0 0 0 0 0 0 0 0 0
9 0x09 tab (\t) ≠0 0 ≠0 ≠0 0 0 0 0 0 0 0 0
10 - 13 0x0A-0x0D whitespaces (\n,\v,\f,\r) ≠0 0 ≠0 0 0 0 0 0 0 0 0 0
14 - 31 0x0E-0x1F control codes ≠0 0 0 0 0 0 0 0 0 0 0 0
32 0x20 space 0 ≠0 ≠0 ≠0 0 0 0 0 0 0 0 0
33 - 47 0x21-0x2F !"#$%&'()*+,-./ 0 ≠0 0 0 ≠0 ≠0 0 0 0 0 0 0
48 - 57 0x30-0x39 0123456789 0 ≠0 0 0 ≠0 0 ≠0 0 0 0 ≠0 ≠0
58 - 64 0x3a-0x40 :;<=>?@ 0 ≠0 0 0 ≠0 ≠0 0 0 0 0 0 0
65 - 70 0x41-0x46 ABCDEF 0 ≠0 0 0 ≠0 0 ≠0 ≠0 ≠0 0 0 ≠0
71 - 90 0x47-0x5A GHIJKLMNOPQRSTUVWXYZ 0 ≠0 0 0 ≠0 0 ≠0 ≠0 ≠0 0 0 0
91 - 96 0x5B-0x60 [\]^_` 0 ≠0 0 0 ≠0 ≠0 0 0 0 0 0 0
97 -102 0x61-0x66 abcdef 0 ≠0 0 0 ≠0 0 ≠0 ≠0 0 ≠0 0 ≠0
103-122 0x67-0x7A ghijklmnopqrstuvwxyz 0 ≠0 0 0 ≠0 0 ≠0 ≠0 0 ≠0 0 0
123-126 0x7B-0x7E {|}~ 0 ≠0 0 0 ≠0 ≠0 0 0 0 0 0 0
127 0x7F backspace character (DEL) ≠0 0 0 0 0 0 0 0 0 0 0 0
Template:cpp/string/byte/dcl list atofTemplate:cpp/string/byte/dcl list atoiTemplate:cpp/string/byte/dcl list strtolTemplate:cpp/string/byte/dcl list strtoulTemplate:cpp/string/byte/dcl list strtofTemplate:cpp/string/byte/dcl list strtoimaxTemplate:cpp/string/byte/dcl list strcpyTemplate:cpp/string/byte/dcl list strncpyTemplate:cpp/string/byte/dcl list strcatTemplate:cpp/string/byte/dcl list strncatTemplate:cpp/string/byte/dcl list strxfrmTemplate:cpp/string/byte/dcl list strlenTemplate:cpp/string/byte/dcl list strcmpTemplate:cpp/string/byte/dcl list strncmpTemplate:cpp/string/byte/dcl list strcollTemplate:cpp/string/byte/dcl list strchrTemplate:cpp/string/byte/dcl list strrchrTemplate:cpp/string/byte/dcl list strspnTemplate:cpp/string/byte/dcl list strcspnTemplate:cpp/string/byte/dcl list strpbrkTemplate:cpp/string/byte/dcl list strstrTemplate:cpp/string/byte/dcl list strtokTemplate:cpp/string/byte/dcl list memchrTemplate:cpp/string/byte/dcl list memcmpTemplate:cpp/string/byte/dcl list memsetTemplate:cpp/string/byte/dcl list memcpyTemplate:cpp/string/byte/dcl list memmoveTemplate:cpp/string/byte/dcl list strerror
Conversions to numeric formats
Defined in header <cstdlib>
Defined in header <cinttypes>
String manipulation
Defined in header <cstring>
String examination
Defined in header <cstring>
Character array manipulation
Defined in header <cstring>
Miscellaneous
Defined in header <cstring>