| 200 | |
| 201 | |
| 202 | inline bool Foam::wordRe::match(const std::string& str, bool literalMatch) const |
| 203 | { |
| 204 | if (literalMatch || !re_.exists()) |
| 205 | { |
| 206 | // check as string |
| 207 | return (str == *this); |
| 208 | } |
| 209 | else |
| 210 | { |
| 211 | // check as regex |
| 212 | return re_.match(str); |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | |
| 217 | inline Foam::string Foam::wordRe::quotemeta() const |