std::ctype<CharT>::is,std::ctype<CharT>::do_is (3) - Linux Manuals
std::ctype<CharT>::is,std::ctype<CharT>::do_is: std::ctype<CharT>::is,std::ctype<CharT>::do_is
NAME
std::ctype<CharT>::is,std::ctype<CharT>::do_is - std::ctype<CharT>::is,std::ctype<CharT>::do_is
Synopsis
Defined in header <locale>
public: (1)
bool is(mask m, CharT c) const;
public: (2)
const CharT* is(const CharT* low, const CharT* high, mask* vec) const;
protected: (3)
virtual bool do_is(mask m, CharT c) const;
protected: (4)
virtual const CharT* do_is(const CharT* low, const CharT* high, mask* vec) const;
1,2) public member function, calls the protected virtual member function do_is of the most derived class.
3) Checks if the character c is classified by the mask m
4) For every character in the character array [low, high), identifies the complete classification mask (e.g. digit|xdigit|alnum|print|graph for the digit '0' in the default locale), and stores the masks in the corresponding elements of the array pointed to by vec
Parameters
c - character to classify
m - mask to use for classifying a single character
low - pointer to the first character in an array of characters to classify
high - one past the end pointer for the array of characters to classify
vec - pointer to the first element of the array of masks to fill
Return value
1,3) true if c is classified by m
2,4) high
Example
// Run this code
Output:
See also
is (public member function of std::ctype<char>)
iswctype (function)