Namespaces
Variants
Views
Actions

Narrow null-terminated strings

From cppreference.com
< cpp‎ | string
Revision as of 05:36, 27 September 2011 by Cubbi (Talk | contribs)

Template:cpp/string/narrow/sidebar

A null-terminated character string, or NTBS, is a character sequence, that consists of nonzero elements, except the last element (the terminating null-character), which has the value zero.

A null-terminated multibyte character string, or NTMBS, is a null-terminated character string, that consists of valid multibyte characters. The string must begin and end with the shift state. A multibyte character string is compatible with regular character strings, that is, can be processed using the same facilities, except for the length calculation.

Template:cpp/string/narrow/dcl list isalnumTemplate:cpp/string/narrow/dcl list isalphaTemplate:cpp/string/narrow/dcl list islowerTemplate:cpp/string/narrow/dcl list isupperTemplate:cpp/string/narrow/dcl list isdigitTemplate:cpp/string/narrow/dcl list isxdigitTemplate:cpp/string/narrow/dcl list iscntrlTemplate:cpp/string/narrow/dcl list isgraphTemplate:cpp/string/narrow/dcl list isspaceTemplate:cpp/string/narrow/dcl list isblankTemplate:cpp/string/narrow/dcl list isprintTemplate:cpp/string/narrow/dcl list ispunctTemplate:cpp/string/narrow/dcl list tolowerTemplate:cpp/string/narrow/dcl list toupper

Contents

Functions

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/narrow/dcl list atofTemplate:cpp/string/narrow/dcl list atoiTemplate:cpp/string/narrow/dcl list strtolTemplate:cpp/string/narrow/dcl list strtoulTemplate:cpp/string/narrow/dcl list strtofTemplate:cpp/string/narrow/dcl list strcpyTemplate:cpp/string/narrow/dcl list strncpyTemplate:cpp/string/narrow/dcl list strcatTemplate:cpp/string/narrow/dcl list strncatTemplate:cpp/string/narrow/dcl list strxfrmTemplate:cpp/string/narrow/dcl list strlenTemplate:cpp/string/narrow/dcl list strcmpTemplate:cpp/string/narrow/dcl list strncmpTemplate:cpp/string/narrow/dcl list strcollTemplate:cpp/string/narrow/dcl list strchrTemplate:cpp/string/narrow/dcl list strrchrTemplate:cpp/string/narrow/dcl list strspnTemplate:cpp/string/narrow/dcl list strcspnTemplate:cpp/string/narrow/dcl list strpbrkTemplate:cpp/string/narrow/dcl list strstrTemplate:cpp/string/narrow/dcl list strtokTemplate:cpp/string/narrow/dcl list memchrTemplate:cpp/string/narrow/dcl list memcmpTemplate:cpp/string/narrow/dcl list memsetTemplate:cpp/string/narrow/dcl list memcpyTemplate:cpp/string/narrow/dcl list memmoveTemplate:cpp/string/narrow/dcl list strerror
Conversions to numeric formats
String manipulation
String examination
Memory manipulation
Miscellaneous