Namespaces
Variants
Views
Actions

Standard library header <cctype>

From cppreference.com
< cpp‎ | header
 
 
Standard library headers
Algorithms
<algorithm>
<numeric>
Strings
<cctype>
<cstring>
<cuchar> (C++11)
<cwchar>
<cwctype>
<string_view> (C++17)
<string>
Text processing
<clocale>
<codecvt> (C++11/17/26*)
<locale>
<regex> (C++11)
<text_encoding> (C++26)   
Numerics
<cfenv> (C++11)
<cmath>
<complex>
<linalg> (C++26)
<numbers> (C++20)
<random> (C++11)
<simd> (C++26)
<valarray>
Time
<chrono> (C++11)
<ctime>
C compatibility
<ccomplex> (C++11/17/20*)
<ciso646> (until C++20)
<cstdalign> (C++11/17/20*)
<cstdbool> (C++11/17/20*)
<ctgmath> (C++11/17/20*)
 

This header was originally in the C standard library as <ctype.h>.

This header is part of the null-terminated byte strings library.

Functions

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]
converts a character to lowercase
(function) [edit]
converts a character to uppercase
(function) [edit]

[edit] Synopsis

namespace std {
  int isalnum(int c);
  int isalpha(int c);
  int isblank(int c);
  int iscntrl(int c);
  int isdigit(int c);
  int isgraph(int c);
  int islower(int c);
  int isprint(int c);
  int ispunct(int c);
  int isspace(int c);
  int isupper(int c);
  int isxdigit(int c);
  int tolower(int c);
  int toupper(int c);
}