class
RegularExpression
(Return to index)
A regular expression.
This class encapsulates the UNIX regular expressions as defined in
regexp(5). It provides a simple interface to the POSIX-compliant
regcomp/regexec package.
Type: |
Instantiable |
Include file: |
./Utilities/RegularExpression.hh |
Synopsis (including inherited members):
- Public members:
-
RegularExpression
(const string&,bool)
;
-
RegularExpression
(const RegularExpression&)
;
-
~RegularExpression
()
;
-
bool match
(const string&)const
;
-
bool OK
()const
;
Documentation:
- Public members:
-
bool OK
()const
;
- Check the regular expression for sanity.
-
RegularExpression
(const string&,bool)
;
- Constructor.
Construct regular expression from pattern.
If ignore is true, the expression ignores upper/lower case.
-
bool match
(const string&)const
;
- Match a string against the pattern.
Documentation generated by fci on Mon Feb 7 12:30:06 2000