Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/string/byte"

From cppreference.com
< cpp‎ | string
(move ntmbs desc to separate page)
m (Text replace - "{{cpp|" to "{{c|")
Line 2: Line 2:
 
{{cpp/string/byte/sidebar}}
 
{{cpp/string/byte/sidebar}}
  
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 {{cpp|{'\x63','\x61','\x74','\0'}}} is an NTBS holding the string {{cpp|"cat"}} in ASCII encoding.
+
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 {{c|{'\x63','\x61','\x74','\0'}}} is an NTBS holding the string {{c|"cat"}} in ASCII encoding.
  
 
===Functions===
 
===Functions===

Revision as of 20:53, 19 April 2012

Template:cpp/string/byte/sidebar

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 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
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>