Go to the documentation of this file.
87 static inline std::regex::flag_type syntax();
113 inline static bool meta(
const char c);
128 inline explicit regExpCxx(
const char* pattern);
131 inline explicit regExpCxx(
const std::string& pattern);
134 inline regExpCxx(
const char* pattern,
bool ignoreCase);
137 inline regExpCxx(
const std::string& pattern,
bool ignoreCase);
149 inline bool empty() const noexcept;
152 inline
bool exists() const noexcept;
155 inline
unsigned ngroups() const;
158 inline
bool nocase() const;
172 bool set(const
char* pattern,
bool ignoreCase=false);
176 bool set(const std::
string& pattern,
bool ignoreCase=false);
183 inline std::
string::
size_type find(const std::
string& text) const;
187 inline
bool match(const std::
string& text) const;
195 inline
bool search(const std::
string& text) const;
201 inline
bool operator()(const std::
string& text) const;
204 inline
void operator=(const
regExpCxx& rgx);
211 inline
void operator=(const
char* pattern);
215 inline
void operator=(const std::
string& pattern);
225 #include "regExpCxxI.H"
unsigned ngroups() const
The number of capture groups for a non-empty expression.
std::string::size_type find(const std::string &text) const
Find position within the text.
~regExpCxx()=default
Destructor.
bool set(const char *pattern, bool ignoreCase=false)
Compile pattern into a regular expression, optionally ignore case.
bool match(const std::string &text) const
True if the regex matches the entire text.
regExpCxx()
Construct null.
bool empty() const noexcept
Return true if expression is empty.
graph_traits< Graph >::vertices_size_type size_type
Wrapper around C++11 regular expressions.
bool search(const std::string &text) const
Return true if the regex was found within the text.
std::smatch results_type
Type for matches.
bool clear()
Clear expression.
void swap(regExpCxx &rgx)
Swap contents.
static bool meta(const char c)
Test if character appears to be a regular expression meta-character.
const dimensionedScalar c
Speed of light in a vacuum.
bool exists() const noexcept
Return true if expression is non-empty.
static int grammar
The default grammar (extended | ECMAScript).