Go to the documentation of this file.
37 int main(
int argc,
char *argv[])
59 Info<<
"stringList " << strLst <<
nl;
63 Info<<
"matches found for regexp .*ee.* :" <<
nl << matches <<
nl;
66 Info<<
" -> " << strLst[matches[i]] <<
nl;
72 Info<<
"matches found for " << reLst <<
nl << matches <<
nl;
75 Info<<
" -> " << strLst[matches[i]] <<
nl;
80 Info<<
"subset stringList: " << subLst <<
nl;
83 Info<<
"subset stringList: " << subLst <<
nl;
86 Info<<
"subsetted stringList: " << strLst <<
nl;
89 Info<<
"subsetted stringList: " << strLst <<
nl;
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
#define forAll(list, i)
Loop across all elements in list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
int main(int argc, char *argv[])
StringListType subsetStrings(const regExp &re, const StringListType &lst, const bool invert=false)
Extract elements of StringList when regular expression matches.
void inplaceSubsetStrings(const regExp &re, StringListType &lst, const bool invert=false)
Inplace extract elements of StringList when regular expression matches.
Input from memory buffer stream.
bool findStrings(const wordReListMatcher &matcher, const std::string &str)
Return true if string matches one of the regular expressions.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Operations on lists of strings.