commit | df7a2dc2e0b7b9e7bf0c84b677b53ae931283ea6 | [log] [tgz] |
---|---|---|
author | Paul Wankadia <junyer@google.com> | Sat Mar 05 12:29:22 2016 +1100 |
committer | Paul Wankadia <junyer@google.com> | Sat Mar 05 01:35:19 2016 +0000 |
tree | bb8504dd183e5b5f304bfa0e5207d240a63016e3 | |
parent | 63e4dbd1996d2cf723f740e08521a67ad66a09de [diff] |
Allow RE2::Set::Match() to accept a null pointer. Some users simply want to know whether any regular expression in the set matched, not which regular expression(s) matched. The DFA code already does the right thing when passed a null std::vector<int> pointer, so make RE2::Set::Match() do it too. Change-Id: I3a6bfd4abb72c96a9e81340eb875ba9b41217eed Reviewed-on: https://code-review.googlesource.com/4290 Reviewed-by: Paul Wankadia <junyer@google.com>