Lines Matching refs:StringPiece
44 typedef BasicStringPiece<std::string> StringPiece; typedef
58 BASE_EXPORT void CopyToString(const StringPiece& self, std::string* target);
61 BASE_EXPORT void AppendToString(const StringPiece& self, std::string* target);
64 BASE_EXPORT size_t copy(const StringPiece& self,
73 BASE_EXPORT size_t find(const StringPiece& self,
74 const StringPiece& s,
79 BASE_EXPORT size_t find(const StringPiece& self,
86 BASE_EXPORT size_t rfind(const StringPiece& self,
87 const StringPiece& s,
92 BASE_EXPORT size_t rfind(const StringPiece& self,
99 BASE_EXPORT size_t find_first_of(const StringPiece& self,
100 const StringPiece& s,
106 BASE_EXPORT size_t find_first_not_of(const StringPiece& self,
107 const StringPiece& s,
112 BASE_EXPORT size_t find_first_not_of(const StringPiece& self,
119 BASE_EXPORT size_t find_last_of(const StringPiece& self,
120 const StringPiece& s,
125 BASE_EXPORT size_t find_last_of(const StringPiece& self,
132 BASE_EXPORT size_t find_last_not_of(const StringPiece& self,
133 const StringPiece& s,
141 BASE_EXPORT size_t find_last_not_of(const StringPiece& self,
145 BASE_EXPORT StringPiece substr(const StringPiece& self,
366 BASE_EXPORT bool operator==(const StringPiece& x, const StringPiece& y);
368 inline bool operator!=(const StringPiece& x, const StringPiece& y) {
372 inline bool operator<(const StringPiece& x, const StringPiece& y) {
373 const int r = StringPiece::wordmemcmp(
378 inline bool operator>(const StringPiece& x, const StringPiece& y) {
382 inline bool operator<=(const StringPiece& x, const StringPiece& y) {
386 inline bool operator>=(const StringPiece& x, const StringPiece& y) {
422 const StringPiece& piece);
445 struct hash<base::StringPiece> {
446 std::size_t operator()(const base::StringPiece& sp) const {
447 HASH_STRING_PIECE(base::StringPiece, sp);
459 inline size_t hash_value(const base::StringPiece& sp) {
460 HASH_STRING_PIECE(base::StringPiece, sp);