Lines Matching refs:StringPiece
5 #include "re2/stringpiece.h"
8 using re2::StringPiece;
10 std::ostream& operator<<(std::ostream& o, const StringPiece& piece) {
15 bool StringPiece::_equal(const StringPiece& x, const StringPiece& y) {
32 void StringPiece::CopyToString(string* target) const {
36 int StringPiece::copy(char* buf, size_type n, size_type pos) const {
42 int StringPiece::find(const StringPiece& s, size_type pos) const {
52 int StringPiece::find(char c, size_type pos) const {
60 int StringPiece::rfind(const StringPiece& s, size_type pos) const {
70 int StringPiece::rfind(char c, size_type pos) const {
81 StringPiece StringPiece::substr(size_type pos, size_type n) const {
84 return StringPiece(ptr_ + pos, n);
87 const StringPiece::size_type StringPiece::npos = size_type(-1);