std::basic_regex
From Cppreference
C++ Standard Library | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Regular expressions library | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::basic_regex | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <regex>
|
||
template<
class CharT = char, |
(C++11 feature) | |
The class template basic_regex provides a general framework for holding regular expressions.
This section is incomplete |
Several specializations for common character types are provided:
Defined in header
<regex> | |
Type | Definition |
regex | basic_regex<char> |
wregex | basic_regex<wchar_t> |
Contents |
[edit] Member types
Member type | Definition |
value_type | CharT |
traits_type | Traits |
string_type | Traits::string_type |
locale_type | Traits::locale_type |
flag_type | std::regex_constants::syntax_option_type |
[edit] Member functions
|
constructs the regex object (public member function) |
|
|
destructs the regex object (public member function) |
|
|
assigns the contents (public member function) |
|
|
assigns the contents (public member function) |
|
Observers | ||
|
returns the number of marked sub-expressions within the regular expression (public member function) |
|
|
returns the syntax flags (public member function) |
|
Locale | ||
|
get locale information (public member function) |
|
|
set locale information (public member function) |
|
Modifiers | ||
|
swaps the contents (public member function) |