Lines Matching refs:StringPiece
29 class StringPiece {
38 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() function
39 StringPiece(const char* str) in StringPiece() function
41 StringPiece(const std::string& str) in StringPiece() function
43 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { } in StringPiece() function
79 int compare(const StringPiece& x) const { in compare()
104 bool starts_with(const StringPiece& x) const { in starts_with()
110 bool ends_with(const StringPiece& x) const { in ends_with()
141 int find(const StringPiece& s, size_type pos = 0) const;
143 int rfind(const StringPiece& s, size_type pos = npos) const;
146 StringPiece substr(size_type pos, size_type n = npos) const;
148 static bool _equal(const StringPiece&, const StringPiece&);
151 inline bool operator==(const StringPiece& x, const StringPiece& y) {
152 return StringPiece::_equal(x, y);
155 inline bool operator!=(const StringPiece& x, const StringPiece& y) {
159 inline bool operator<(const StringPiece& x, const StringPiece& y) {
165 inline bool operator>(const StringPiece& x, const StringPiece& y) {
169 inline bool operator<=(const StringPiece& x, const StringPiece& y) {
173 inline bool operator>=(const StringPiece& x, const StringPiece& y) {
180 extern std::ostream& operator<<(std::ostream& o, const re2::StringPiece& piece);