A wrapper for matching a List of wordRe. More...
#include <OpenFOAM/wordReListMatcher.H>
A wrapper for matching a List of wordRe.
Definition at line 54 of file wordReListMatcher.H.
Collaboration diagram for wordReListMatcher:Public Member Functions | |
| wordReListMatcher (const UList< wordRe > &) | |
| Construct from a List of wordRe.
| |
| label | size () const |
| bool | empty () const |
| const UList< wordRe > & | operator() () const |
| Return underlying list of wordRe.
| |
| bool | match (const string &, bool literalMatch=false) const |
| Return true if string matches any of the regular expressions.
| |
| wordReListMatcher | ( | const UList< wordRe > & | lst ) | [inline]
|
Construct from a List of wordRe.
Definition at line 30 of file wordReListMatcherI.H.
| Foam::label size | ( | ) | const [inline]
|
Definition at line 40 of file wordReListMatcherI.H.
References UList< T >::size().
| bool empty | ( | ) | const [inline]
|
Definition at line 46 of file wordReListMatcherI.H.
| const Foam::UList< Foam::wordRe > & operator() | ( | ) | const [inline]
|
Return underlying list of wordRe.
Definition at line 53 of file wordReListMatcherI.H.
| bool match | ( | const string & | str, |
| bool | literalMatch = false
|
||
| ) | const [inline]
|
Return true if string matches any of the regular expressions.
Smart match as regular expression or as a string. Optionally specify a literal match only.
Definition at line 60 of file wordReListMatcherI.H.
Referenced by Foam::findStrings().