|
| 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 > |
regex_traits< _Ch_type >
::char_class_type | lookup_classname (_Fwd_iter __first, _Fwd_iter __last, bool __icase) const |
|
template<typename _Fwd_iter > |
regex_traits< _Ch_type >
::string_type | lookup_collatename (_Fwd_iter __first, _Fwd_iter __last) 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 |
|
template<typename _Ch_type>
struct std::regex_traits< _Ch_type >
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 72 of file regex.h.
template<typename _Ch_type>
template<typename _Fwd_iter >
Gets a sort key for a character sequence.
- Parameters
-
__first | beginning of the character sequence. |
__last | one-past-the-end of the character sequence. |
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
- a locale-specific sort key equivalent to the input range.
- Exceptions
-
std::bad_cast | if the current locale does not have a collate facet. |
Definition at line 218 of file regex.h.
References std::basic_string< _CharT, _Traits, _Alloc >::data(), and std::basic_string< _CharT, _Traits, _Alloc >::size().
Referenced by std::regex_traits< _Ch_type >::transform_primary().
template<typename _Ch_type>
template<typename _Fwd_iter >
Gets a sort key for a character sequence, independent of case.
- Parameters
-
__first | beginning of the character sequence. |
__last | one-past-the-end of the character sequence. |
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:
- Implement this function correctly.
Definition at line 242 of file regex.h.
References std::vector< _Tp, _Alloc >::data(), std::vector< _Tp, _Alloc >::size(), and std::regex_traits< _Ch_type >::transform().