Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Null-terminated byte strings

      From cppreference.com
      <cpp‎ |string
       
       
       
       

      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.

      Contents

      [edit]Functions

      Character classification
      Defined in header<cctype>
      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]
      (C++11)
      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 valuescharacters

      iscntrl
      iswcntrl

      isprint
      iswprint

      isspace
      iswspace

      isblank
      iswblank

      isgraph
      iswgraph

      ispunct
      iswpunct

      isalnum
      iswalnum

      isalpha
      iswalpha

      isupper
      iswupper

      islower
      iswlower

      isdigit
      iswdigit

      isxdigit
      iswxdigit

      decimalhexadecimaloctal
      0–8\x0\x8\0\10control codes (NUL, etc.)≠000000000000
      9\x9\11tab (\t)≠00≠0≠000000000
      10–13\xA\xD\12\15whitespaces (\n,\v,\f,\r)≠00≠0000000000
      14–31\xE\x1F\16\37control codes≠000000000000
      32\x20\40space0≠0≠0≠000000000
      33–47\x21\x2F\41\57!"#$%&'()*+,-./0≠000≠0≠0000000
      48–57\x30\x39\60\7101234567890≠000≠00≠0000≠0≠0
      58–64\x3A\x40\72\100:;<=>?@0≠000≠0≠0000000
      65–70\x41\x46\101\106ABCDEF0≠000≠00≠0≠0≠000≠0
      71–90\x47\x5A\107\132GHIJKLMNOP
      QRSTUVWXYZ
      0≠000≠00≠0≠0≠0000
      91–96\x5B\x60\133\140[\]^_`0≠000≠0≠0000000
      97–102\x61\x66\141\146abcdef0≠000≠00≠0≠00≠00≠0
      103–122\x67\x7A\147\172ghijklmnop
      qrstuvwxyz
      0≠000≠00≠0≠00≠000
      123–126\x7B\x7E\172\176{|}~0≠000≠0≠0000000
      127\x7F\177backspace character (DEL)≠000000000000
      Conversions to numeric formats
      Defined in header<cstdlib>
      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]
      Defined in header<cinttypes>
      (C++11)(C++11)
      converts a byte string tostd::intmax_t orstd::uintmax_t
      (function)[edit]
      String manipulation
      Defined in header<cstring>
      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 thatstrcmp would produce the same result asstrcoll
      (function)[edit]
      String examination
      Defined in header<cstring>
      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
      Defined in header<cstring>
      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
      Defined in header<cstring>
      returns a text version of a given error code
      (function)[edit]

      [edit]See also

      C documentation forNull-terminated byte strings
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/string/byte&oldid=148422"

      [8]ページ先頭

      ©2009-2025 Movatter.jp