FullMatch(str, re) returns true iff regular expression re matches the entire str. PartialMatch(str, re) returns true iff regular expression re matches a substring of str (including str itself).
| 1157 | // PartialMatch(str, re) returns true iff regular expression re |
| 1158 | // matches a substring of str (including str itself). |
| 1159 | static bool FullMatch(const ::std::string& str, const RE& re) { |
| 1160 | return FullMatch(str.c_str(), re); |
| 1161 | } |
| 1162 | static bool PartialMatch(const ::std::string& str, const RE& re) { |
| 1163 | return PartialMatch(str.c_str(), re); |
| 1164 | } |