Lines Matching refs:StringPiece
4 // Copied from strings/stringpiece.cc with modifications
13 typedef StringPiece::size_type size_type;
15 bool operator==(const StringPiece& x, const StringPiece& y) {
19 return StringPiece::wordmemcmp(x.data(), y.data(), x.size()) == 0;
22 void StringPiece::CopyToString(std::string* target) const {
26 void StringPiece::AppendToString(std::string* target) const {
31 size_type StringPiece::copy(char* buf, size_type n, size_type pos) const {
37 size_type StringPiece::find(const StringPiece& s, size_type pos) const {
47 size_type StringPiece::find(char c, size_type pos) const {
55 size_type StringPiece::rfind(const StringPiece& s, size_type pos) const {
67 size_type StringPiece::rfind(char c, size_type pos) const {
88 static inline void BuildLookupTable(const StringPiece& characters_wanted,
97 size_type StringPiece::find_first_of(const StringPiece& s,
116 size_type StringPiece::find_first_not_of(const StringPiece& s,
138 size_type StringPiece::find_first_not_of(char c, size_type pos) const {
150 size_type StringPiece::find_last_of(const StringPiece& s, size_type pos) const {
169 size_type StringPiece::find_last_not_of(const StringPiece& s,
193 size_type StringPiece::find_last_not_of(char c, size_type pos) const {
206 StringPiece StringPiece::substr(size_type pos, size_type n) const {
209 return StringPiece(ptr_ + pos, n);
212 const StringPiece::size_type StringPiece::npos = size_type(-1);