31 namespace std _GLIBCXX_VISIBILITY(default)
35 _GLIBCXX_BEGIN_NAMESPACE_VERSION
53 _S_token_subexpr_begin,
54 _S_token_subexpr_no_group_begin,
55 _S_token_subexpr_lookahead_begin,
57 _S_token_bracket_begin,
58 _S_token_bracket_neg_begin,
60 _S_token_interval_begin,
61 _S_token_interval_end,
62 _S_token_quoted_class,
63 _S_token_char_class_name,
65 _S_token_equiv_class_name,
90 _ScannerBase(_FlagT __flags)
91 : _M_state(_S_state_normal),
93 _M_escape_tbl(_M_is_ecma()
96 _M_spec_char(_M_is_ecma()
100 : _M_extended_spec_char),
101 _M_at_bracket_start(false)
106 _M_find_escape(
char __c)
108 auto __it = _M_escape_tbl;
109 for (; __it->first !=
'\0'; ++__it)
110 if (__it->first == __c)
111 return &__it->second;
124 _M_is_extended()
const
142 {
'^', _S_token_line_begin},
143 {
'$', _S_token_line_end},
144 {
'.', _S_token_anychar},
145 {
'*', _S_token_closure0},
146 {
'+', _S_token_closure1},
177 const char* _M_ecma_spec_char =
"^$\\.*+?()[]{}|";
178 const char* _M_basic_spec_char =
".[\\*^$";
179 const char* _M_extended_spec_char =
".[\\()*+?{|^$";
185 const char* _M_spec_char;
186 bool _M_at_bracket_start;
199 template<
typename _CharT>
201 :
public _ScannerBase
204 typedef const _CharT* _IterT;
209 _Scanner(_IterT __begin, _IterT __end,
223 #ifdef _GLIBCXX_DEBUG
225 _M_print(std::ostream&);
233 _M_scan_in_bracket();
239 _M_eat_escape_ecma();
242 _M_eat_escape_posix();
258 _GLIBCXX_END_NAMESPACE_VERSION
262 #include <bits/regex_scanner.tcc>
Container class for localization functionality.The locale class is first a class wrapper for C librar...
constexpr syntax_option_type grep
Primary class template ctype facet.This template class defines classification and conversion function...
_TokenT
Token types returned from the scanner.
Scans an input range for regex tokens.
syntax_option_type
This is a bitmask type indicating how to interpret the regex.
constexpr syntax_option_type awk
constexpr syntax_option_type ECMAScript
constexpr syntax_option_type extended
ISO C++ entities toplevel namespace is std.
constexpr syntax_option_type basic
constexpr syntax_option_type egrep