Go to the documentation of this file.
59 inline static bool found_match
62 const std::string& text,
74 const std::string& text
96 return found_match(
values, text);
104 inline static const wordRes&
null();
131 inline bool match(
const std::string& text,
bool literal=
false)
const;
146 template<
class StringType>
157 inline bool operator()(
const std::string& text)
const;
List< label > labelList
A List of labels.
labelList matching(const UList< StringType > &input, const bool invert=false) const
Extract list indices for all matches.
wordRe::compOption matched(const std::string &text) const
Smart match in the list of matchers, returning the match type.
labelList invert(const label len, const labelUList &map)
Create an inverse one-to-one mapping.
bool match(const std::string &text, bool literal=false) const
Smart match as literal or regex, stopping on the first match.
bool operator()(const std::string &text) const
Identical to match(), for use as a predicate.
~wordRes()=default
Destructor.
void uniq()
Filter out duplicate entries (inplace).
constexpr List() noexcept
Null constructor.
matcher(const UList< wordRe > &list)
Functor wrapper for matching against a List of wordRe.
const UList< wordRe > & values
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A List of wordRe with additional matching capabilities.
bool operator()(const std::string &text) const
Return true if string matches ANY of the regular expressions.
static Istream & input(Istream &is, IntRange< T > &range)
compOption
Enumeration with compile options.