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)
<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)
checks if a character is alphabetic
(function)
checks if a character is lowercase
(function)
checks if a character is an uppercase character
(function)
checks if a character is a digit
(function)
checks if a character is a hexadecimal character
(function)
checks if a character is a control character
(function)
checks if a character is a graphical character
(function)
checks if a character is a space character
(function)
(C++11)
checks if a character is a blank character
(function)
checks if a character is a printing character
(function)
checks if a character is a punctuation character
(function)
converts a character to lowercase
(function)
converts a character to uppercase
(function)

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);
}