Go to the documentation of this file.
69 template<
class String>
class SubStrings;
107 inline static bool meta(
char c);
125 inline explicit regExpPosix(
const std::string& pattern);
128 inline regExpPosix(
const char* pattern,
bool ignoreCase);
131 inline regExpPosix(
const std::string& pattern,
bool ignoreCase);
143 inline bool empty() const noexcept;
146 inline
bool exists() const noexcept;
149 inline
unsigned ngroups() const;
163 bool set(const
char* pattern,
bool ignoreCase=false);
167 bool set(const std::
string& pattern,
bool ignoreCase=false);
178 bool match(const std::
string& text) const;
186 inline
bool search(const std::
string& text) const;
192 inline
bool operator()(const std::
string& text) const;
202 inline
void operator=(const
char* pattern);
206 inline
void operator=(const std::
string& pattern);
216 #include "regExpPosixI.H"
Wrapper around POSIX extended regular expressions.
void swap(regExpPosix &rgx)
Swap contents.
bool search(const std::string &text) const
Return true if the regex was found within the text.
std::string::size_type find(const std::string &text) const
Find position within the text.
Sub-ranges of a string with a structure similar to std::match_results, but without the underlying reg...
~regExpPosix()
Destructor.
SubStrings< std::string > results_type
Type for matches - similar to std::smatch.
static bool meta(char c)
Test if character appears to be a regular expression meta-character.
graph_traits< Graph >::vertices_size_type size_type
bool empty() const noexcept
Return true if a precompiled expression does not exist.
bool set(const char *pattern, bool ignoreCase=false)
Compile pattern into a regular expression, optionally ignore case.
static int grammar
Grammar (unused) - for compatibility with Foam::regExpCxx.
regExpPosix()
Construct null.
unsigned ngroups() const
The number of capture groups for a non-empty expression.
bool match(const std::string &text) const
True if the regex matches the entire text.
bool exists() const noexcept
Return true if a precompiled expression exists.
const dimensionedScalar c
Speed of light in a vacuum.
bool clear()
Clear expression.