<cctype>
Home Up

 

Same level pages:
<algorithms>
<cassert>
<cerrno>
<cctype>
<cfloat>
<climits>
<clocale>
<cmath>
<complex>
<csetjmp>
<csignal>
<cstdarg>
<cstddef>
<cstdio>
<cstdlib>
<cstring>
<ctime>
<cwchar>
<cwctype>
<exception>
<fstream>
<functional>
<iomanip>
<ios>
<iostream>
<istream>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
<ostream>
<sstream>
<stdexcept>
<streambuf>
<string>
<typeinfo>
<utility>
<valarray>

Parent level pages:
STL
FAQs
Headers
Libraries

<cctype> is part of the Standard C++ Strings Library.

Functions

Behavior of these functions is controlled by the current locale (use setlocale() to change the current locale). In the C locale, or in a locale where character type information is not defined, characters are classified according to the rules of the US-ASCII 7-bit coded character set.

bool isalnum(int c)
tests for any character for which isalpha() or isdigit() is true (letter or digit).
bool isdigit(int c)
tests for any decimal-digit character.
bool isprint(int c)
tests for any character for which ispunct(), isupper(), islower(), isdigit(), and the space character ("") is true.
bool isupper(int c)
tests for any character that is an upper-case letter.
int tolower(int c)
 
bool isalpha(int c)
tests for any character for which isupper() or islower() is true.
bool isgraph(int c)
tests for any character for which ispunct(), isupper(), islower(), and isdigit() is true.
bool ispunct(int c)
tests for any printing character which is neither a space ("") nor a character for which isalnum() or iscntrl() is true (i.e., punctuation).
bool isxdigit(int c)
tests for any hexadecimal-digit character.
int toupper(int c)
 
bool iscntrl(int c)
tests for any "control character'' as defined by the character set.
bool islower(int c)
tests for any character that is a lower-case letter.
bool isspace(int c)
tests for any space, tab, carriage-return, newline, vertical-tab or form-feed (standard white-space characters).
 
ŠPaul Buis & Ball State University Author: Paul Buis (peb@bsu.edu) Last Modified:10/31/00 05:24 PM

NOTICE: The information presented on this page represents the personal views, ideas, and opinions of the author. This is not an official Ball State University web page. Links contained at this web site to other organizations, are presented as a service and neither constitute nor imply university endorsement or warranty.