std::regex_traits< _Ch_type >
- Provided by: libstdc++-4.8-doc (Version: 4.8.4-2ubuntu1~14.04.4)
- Source: gcc-4.8
- Report a bug
typedef std::ctype_base::mask char_class_type
typedef _Ch_type char_type
typedef std::locale locale_type
typedef std::basic_string
< char_type > string_type"
regex_traits ()
locale_type getloc () const
locale_type imbue (locale_type __loc)
bool isctype (_Ch_type __c, char_class_type __f) const
template<typename _Fwd_iter > char_class_type lookup_classname
(_Fwd_iter __first, _Fwd_iter __last, bool __icase=false) const
template<typename _Fwd_iter > string_type
lookup_collatename (_Fwd_iter __first, _Fwd_iter __last) const
template<typename _Fwd_iter > string_type transform
(_Fwd_iter __first, _Fwd_iter __last) const
template<typename _Fwd_iter > string_type
transform_primary (_Fwd_iter __first, _Fwd_iter __last) const
char_type translate (char_type __c) const
char_type translate_nocase (char_type __c) const
int value (_Ch_type __ch, int __radix) const
static std::size_t length (const char_type *__p)
locale_type _M_locale
Class regex_traits. Describes aspects of a regular expression.
A regular expression traits class that satisfies the requirements of section [28.7].
The class regex is parameterized around a set of related types and functions used to complete the definition of its semantics. This class satisfies the requirements of such a traits class.
Definition at line 51 of file regex.h.
Constructs a default traits object.
Definition at line 63 of file regex.h.
Gets a copy of the current locale in use by the regex_traits object.
Definition at line 270 of file regex.h.
Imbues the regex_traits object with a copy of a new locale.
Parameters:
Returns:
Note:
Definition at line 259 of file regex.h.
Gives the length of a C-style string starting at __p.
Parameters:
Returns:
Definition at line 76 of file regex.h.
Maps one or more characters to a named character classification.
Parameters:
Returns:
At least the following names (or their wide-character equivalent) are supported.
Todo
Definition at line 215 of file regex.h.
Gets a collation element by name.
Parameters:
Returns:
Todo
Definition at line 171 of file regex.h.
Gets a sort key for a character sequence.
Parameters:
Returns a sort key for the character sequence designated by the iterator range [F1, F2) such that if the character sequence [G1, G2) sorts before the character sequence [H1, H2) then v.transform(G1, G2) < v.transform(H1, H2).
What this really does is provide a more efficient way to compare a string to multiple other strings in locales with fancy collation rules and equivalence classes.
Returns:
Exceptions:
Definition at line 129 of file regex.h.
References std::basic_string< _CharT, _Traits, _Alloc >::data(), and std::basic_string< _CharT, _Traits, _Alloc >::size().
Gets a sort key for a character sequence, independent of case.
Parameters:
Effects: if typeid(use_facet<collate<_Ch_type> >) == typeid(collate_byname<_Ch_type>) and the form of the sort key returned by collate_byname<_Ch_type>::transform(__first, __last) is known and can be converted into a primary sort key then returns that key, otherwise returns an empty string.
Todo
Definition at line 153 of file regex.h.
Performs the identity translation.
Parameters:
Returns:
Definition at line 87 of file regex.h.
Translates a character into a case-insensitive equivalent.
Parameters:
Returns:
Exceptions:
Definition at line 100 of file regex.h.
Generated automatically by Doxygen for libstdc++ from the source code.