commit | 499ef7eff7455ce9c9fae86111d4a77b6ac335de | [log] [tgz] |
---|---|---|
author | Russ Cox <[email protected]> | Thu Dec 18 12:24:33 2014 -0500 |
committer | Russ Cox <[email protected]> | Thu Dec 18 19:01:10 2014 +0000 |
tree | af03e212ba674abda57eb8af82fbab62e9f703aa | |
parent | 22025459f900b956b5b2394eea4d823c627ba43a [diff] [blame] |
re2: import various changes from Google's copy Change-Id: I63bd284d742da393713dfdd0164d2ff38fd44920 Reviewed-on: https://code-review.googlesource.com/1592 Reviewed-by: Russ Cox <[email protected]>
diff --git a/re2/stringpiece.h b/re2/stringpiece.h index ab9297c..37c73d1 100644 --- a/re2/stringpiece.h +++ b/re2/stringpiece.h
@@ -138,6 +138,8 @@ int copy(char* buf, size_type n, size_type pos = 0) const; + bool contains(StringPiece s) const; + int find(const StringPiece& s, size_type pos = 0) const; int find(char c, size_type pos = 0) const; int rfind(const StringPiece& s, size_type pos = npos) const;