libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ isctype()

template<typename _Ch_type>
bool std::regex_traits< _Ch_type >::isctype ( _Ch_type __c,
char_class_type __f ) const

Determines if c is a member of an identified class.

Parameters
__ca character.
__fa class type (as returned from lookup_classname).
Returns
true if the character __c is a member of the classification represented by __f, false otherwise.
Exceptions
std::bad_castif the current locale does not have a ctype facet.

Definition at line 393 of file regex.tcc.

395 {
398
399 return __fctyp.is(__f._M_base, __c)
400 // [[:w:]]
401 || ((__f._M_extended & _RegexMask::_S_under)
402 && __c == __fctyp.widen('_'));
403 }
locale_type _M_locale
Definition regex.h:415
Describes aspects of a regular expression.
Definition regex.h:100
static constexpr unsigned char _S_under
Definition regex.h:112

References regex_traits(), std::regex_traits< _Ch_type >::_RegexMask::_M_base, std::regex_traits< _Ch_type >::_RegexMask::_M_extended, _M_locale, std::regex_traits< _Ch_type >::_RegexMask::_S_under, and std::use_facet().

Here is the call graph for this function: