Go to the documentation of this file.
60 inline static label first_match
63 const std::string& text,
64 const bool literal=
false
75 const std::string& text
95 inline bool operator()(
const std::string& text)
const;
102 inline static const wordRes&
null();
129 inline bool match(
const std::string& text,
bool literal=
false)
const;
144 template<
class StringType>
155 inline bool operator()(
const std::string& text)
const;
labelList matching(const UList< StringType > &input, const bool invert=false) const
Return list indices for all matches.
wordRe::compOption matched(const std::string &text) const
Smart match in the list of matchers, returning the match type.
matcher(const UList< wordRe > &selectors)
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).
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
True if text matches ANY of the entries.
static Istream & input(Istream &is, IntRange< T > &range)
compOption
Enumeration with compile options.