Go to the documentation of this file.
41 int main(
int argc,
char *argv[])
44 Info<<
"Test expressions:" << rawList <<
endl;
52 const string& pat = rawList[elemI].first();
53 const string& str = rawList[elemI].second();
56 Info<< str <<
" =~ m/" << pat.c_str() <<
"/ == ";
58 if (
re.match(str, groups))
63 Info<<
nl <<
"groups: " << groups;
70 Info<<
" partial match";
80 Info<<
nl <<
"test regExp(const char*) ..." <<
endl;
90 Info<<
"pass - null pointer is no expression" <<
endl;
104 if (
regExp(
"mar[ck]",
true).match(
me))
114 if (
regExp(
"(?i)mar[ck]").match(
me))
130 Info<<
"pass - no match on empty expression" <<
endl;
140 Info<<
"pass - no match on empty expression" <<
endl;
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.
const dimensionedScalar me
Electron mass.
Wrapper around POSIX extended regular expressions.
const dimensionedScalar re
Classical electron radius: default SI units: [m].
static Stream & writeDivider(Stream &os)
Write the standard file section divider.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
int main(int argc, char *argv[])