Lines Matching refs:StringPiece
14 typedef StringPiece::size_type size_type;
16 std::ostream& operator<<(std::ostream& o, const StringPiece& piece) {
21 bool operator==(const StringPiece& x, const StringPiece& y) {
25 return StringPiece::wordmemcmp(x.data(), y.data(), x.size()) == 0;
28 void StringPiece::CopyToString(std::string* target) const {
32 void StringPiece::AppendToString(std::string* target) const {
37 size_type StringPiece::copy(char* buf, size_type n, size_type pos) const {
43 size_type StringPiece::find(const StringPiece& s, size_type pos) const {
53 size_type StringPiece::find(char c, size_type pos) const {
61 size_type StringPiece::rfind(const StringPiece& s, size_type pos) const {
73 size_type StringPiece::rfind(char c, size_type pos) const {
94 static inline void BuildLookupTable(const StringPiece& characters_wanted,
103 size_type StringPiece::find_first_of(const StringPiece& s,
122 size_type StringPiece::find_first_not_of(const StringPiece& s,
144 size_type StringPiece::find_first_not_of(char c, size_type pos) const {
156 size_type StringPiece::find_last_of(const StringPiece& s, size_type pos) const {
175 size_type StringPiece::find_last_not_of(const StringPiece& s,
199 size_type StringPiece::find_last_not_of(char c, size_type pos) const {
212 StringPiece StringPiece::substr(size_type pos, size_type n) const {
215 return StringPiece(ptr_ + pos, n);
218 const StringPiece::size_type StringPiece::npos = size_type(-1);