Lines Matching full:stringpiece
4 // Copied from strings/stringpiece.h with modifications
8 // Functions or methods may use const StringPiece& parameters to accept either
10 // a StringPiece. The implicit conversion means that it is often appropriate
12 // StringPiece as would be appropriate for most other Google classes.
14 // Systematic usage of StringPiece is encouraged as it will reduce unnecessary
17 // StringPiece16 is similar to StringPiece but for base::string16 instead of
19 // from basic_string as in StringPiece, but this can be changed if these
39 typedef BasicStringPiece<std::string> StringPiece;
45 // StringPiece and StringPiece16. Do not refer to this class directly, but
46 // rather to BasicStringPiece, StringPiece, or StringPiece16.
63 // in a "const char*" or a "string" wherever a "StringPiece" is
160 BASE_EXPORT void CopyToString(const StringPiece& self, std::string* target);
161 BASE_EXPORT void AppendToString(const StringPiece& self, std::string* target);
163 const StringPiece& self,
168 const StringPiece& self,
169 const StringPiece& s,
172 const StringPiece& self,
176 const StringPiece& self,
177 const StringPiece& s,
180 const StringPiece& self,
184 const StringPiece& self,
185 const StringPiece& s,
188 const StringPiece& self,
189 const StringPiece& s,
192 const StringPiece& self,
196 const StringPiece& self,
197 const StringPiece& s,
200 const StringPiece& self,
204 const StringPiece& self,
205 const StringPiece& s,
208 const StringPiece& self,
211 BASE_EXPORT StringPiece substr(const StringPiece& self,
216 // Defines the template type that is instantiated as either StringPiece or
351 BASE_EXPORT bool operator==(const StringPiece& x, const StringPiece& y);
353 inline bool operator!=(const StringPiece& x, const StringPiece& y) {
357 inline bool operator<(const StringPiece& x, const StringPiece& y) {
358 const int r = StringPiece::wordmemcmp(
363 inline bool operator>(const StringPiece& x, const StringPiece& y) {
367 inline bool operator<=(const StringPiece& x, const StringPiece& y) {
371 inline bool operator>=(const StringPiece& x, const StringPiece& y) {
405 const StringPiece& piece);
409 // We provide appropriate hash functions so StringPiece and StringPiece16 can
426 struct hash<base::StringPiece> {
427 std::size_t operator()(const base::StringPiece& sp) const {
428 HASH_STRING_PIECE(base::StringPiece, sp);
440 inline size_t hash_value(const base::StringPiece& sp) {
441 HASH_STRING_PIECE(base::StringPiece, sp);