tstring-into-piece.patch 340 B

1234567891011
  1. --- a/re2/re2.h (index)
  2. +++ a/re2/re2.h (working tree)
  3. @@ -280,6 +280,8 @@ class RE2 {
  4. #endif
  5. RE2(absl::string_view pattern);
  6. RE2(absl::string_view pattern, const Options& options);
  7. + // ambiguity resolution.
  8. + RE2(const TString& pattern) : RE2(StringPiece(pattern)) {}
  9. ~RE2();
  10. // Returns whether RE2 was created properly.