STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
regex_traits< char > Class Template Reference
Inheritance diagram for regex_traits< char >:
_Regex_traits< char > _Regex_traits_base

Public Member Functions

int value (char _Ch, int _Base) const
 
- Public Member Functions inherited from _Regex_traits< char >
 _Regex_traits ()
 
 _Regex_traits (const _Myt &_Right)
 
_Mytoperator= (const _Myt &_Right)
 
char translate (char_Ch) const
 
char translate_nocase (char_Ch) const
 
string_type transform (_FwdIt _First, _FwdIt _Last) const
 
string_type transform_primary (_FwdIt _First, _FwdIt _Last) const
 
bool isctype (char_Ch, char_class_type _Fx) const
 
char_class_type lookup_classname (_Iter _First, _Iter _Last, bool _Icase=false) const
 
string_type lookup_collatename (_FwdIt _First, _FwdIt _Last) const
 
locale_type imbue (locale_type _Lx)
 
locale_type getloc () const
 
const collate< char > * _Getcoll () const
 
const ctype< char > * _Getctype () const
 

Additional Inherited Members

- Public Types inherited from _Regex_traits< char >
typedef make_unsigned< char >::type _Uelem
 
typedef _Regex_traits< char > _Myt
 
typedef char char_type
 
typedef size_t size_type
 
typedef basic_string< char > string_type
 
typedef locale locale_type
 
- Public Types inherited from _Regex_traits_base
enum  _Char_class_type {
  _Ch_none = 0, _Ch_alnum = ctype_base::alnum, _Ch_alpha = ctype_base::alpha, _Ch_cntrl = ctype_base::cntrl,
  _Ch_digit = ctype_base::digit, _Ch_graph = ctype_base::graph, _Ch_lower = ctype_base::lower, _Ch_print = ctype_base::print,
  _Ch_punct = ctype_base::punct, _Ch_space = ctype_base::space, _Ch_upper = ctype_base::upper, _Ch_xdigit = ctype_base::xdigit,
  _Ch_blank = ctype_base::blank
}
 
typedef ctype_base::mask char_class_type
 
- Static Public Member Functions inherited from _Regex_traits< char >
static size_type length (const char *_Str)
 

Member Function Documentation

int regex_traits< char >::value ( char  _Ch,
int  _Base 
) const
inline
429  { // map character value to numeric value
430  if ((_Base != 8 && '0' <= _Ch && _Ch <= '9')
431  || (_Base == 8 && '0' <= _Ch && _Ch <= '7'))
432  return (_Ch - '0');
433  else if (_Base != 16)
434  ;
435  else if ('a' <= _Ch && _Ch <= 'f')
436  return (_Ch - 'a' + 10);
437  else if ('A' <= _Ch && _Ch <= 'F')
438  return (_Ch - 'A' + 10);
439  return (-1);
440  }
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89

The documentation for this class was generated from the following file: