std::regex_traits

From Cppreference

Jump to: navigation, search
Defined in header <string>

template<

    class CharT

> class regex_traits;

The regex_traits parameterizes behaviour of a regex.

[edit] Member types

Type Definition
char_type CharT
string_type A std::basic_string parameterized on CharT.
locale_type The locale used for localized behaviour in the regular expression.
char_class_type Represents a character classification and is capable of holding an implementation specific set returned by lookup_classname.

[edit] Member functions

(constructor)
constructs the regex_traits object
(public member function)
length
gets the localized length of a string
(public member function)
translate
returns its input
(public member function)
translate_nocase
converts a character to lower case (if defined)
(public member function)
transform
converts a string into a localized collation sequence
(public member function)
transform_primary
converts a string into a localized primary collation sequence
(public member function)
lookup_collatename
gets a collation element by name
(public member function)
lookup_classname
gets a character class by name
(public member function)
isctype
indicates membership in a localized character class
(public member function)
value
translates a numeric digit into an integral value
(public member function)
imbue
sets the locale
(public member function)
getloc
gets the locale
(public member function)


Specializations for char and wchar_t are defined.