query matches
| 14 | namespace YAML { |
| 15 | // query matches |
| 16 | inline bool RegEx::Matches(char ch) const { |
| 17 | std::string str; |
| 18 | str += ch; |
| 19 | return Matches(str); |
| 20 | } |
| 21 | |
| 22 | inline bool RegEx::Matches(const std::string& str) const { |
| 23 | return Match(str) >= 0; |