Lines Matching refs:StringPiece
61 class PCRECPP_EXP_DEFN StringPiece {
68 // in a "const char*" or a "string" wherever a "StringPiece" is
70 StringPiece()
72 StringPiece(const char* str)
74 StringPiece(const unsigned char* str)
77 StringPiece(const string& str)
79 StringPiece(const char* offset, int len)
114 bool operator==(const StringPiece& x) const {
118 bool operator!=(const StringPiece& x) const {
123 bool operator cmp (const StringPiece& x) const { \
133 int compare(const StringPiece& x) const {
151 bool starts_with(const StringPiece& x) const {
159 // Functions used to create STL containers that use StringPiece
160 // Remember that a StringPiece's lifetime had better be less than
162 // cannot safely store a StringPiece into an STL container
166 // This makes vector<StringPiece> really fast for some STL implementations
167 template<> struct __type_traits<pcrecpp::StringPiece> {
176 // allow StringPiece to be logged
178 const pcrecpp::StringPiece& piece);