• Home
  • Raw
  • Download

Lines Matching refs:StringPiece

34 class StringPiece {
52 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece() function
53 StringPiece(const char* str) // NOLINT implicit constructor desired in StringPiece() function
55 StringPiece(const std::string& str) // NOLINT implicit constructor desired in StringPiece() function
57 StringPiece(const char* offset, size_t len) : ptr_(offset), length_(len) { } in StringPiece() function
103 int compare(const StringPiece& x) const { in compare()
131 bool starts_with(const StringPiece& x) const { in starts_with()
137 bool ends_with(const StringPiece& x) const { in ends_with()
157 size_type find(const StringPiece& s, size_type pos = 0) const {
174 size_type rfind(const StringPiece& s, size_type pos = npos) const {
195 StringPiece substr(size_type pos, size_type n = npos) const {
198 return StringPiece(ptr_ + pos, n);
201 int Compare(const StringPiece& rhs) const { in Compare()
224 inline bool operator==(const StringPiece& x, const StringPiece& y) {
225 StringPiece::size_type len = x.size();
250 inline bool operator==(const StringPiece& x, const char* y) {
258 inline bool operator!=(const StringPiece& x, const StringPiece& y) {
262 inline bool operator!=(const StringPiece& x, const char* y) {
266 inline bool operator<(const StringPiece& x, const StringPiece& y) {
270 inline bool operator>(const StringPiece& x, const StringPiece& y) {
274 inline bool operator<=(const StringPiece& x, const StringPiece& y) {
278 inline bool operator>=(const StringPiece& x, const StringPiece& y) {
282 inline std::ostream& operator<<(std::ostream& o, const StringPiece& piece) {