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 _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
489  { // map character value to numeric value
490  if ((base != 8 && '0' <= ch && ch <= '9')
491  || (base == 8 && '0' <= ch && ch <= '7'))
492  return (ch - '0');
493  else if (base != 16)
494  ;
495  else if ('a' <= ch && ch <= 'f')
496  return (ch - 'a' + 10);
497  else if ('A' <= ch && ch <= 'F')
498  return (ch - 'A' + 10);
499  return (-1);
500  }

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