Searched defs:StringPiece (Results 1 - 1 of 1) sorted by relevance

/build/kati/
H A Dstring_piece.h22 // Functions or methods may use const StringPiece& parameters to accept either
24 // a StringPiece. The implicit conversion means that it is often appropriate
26 // StringPiece as would be appropriate for most other Google classes.
28 // Systematic usage of StringPiece is encouraged as it will reduce unnecessary
44 class StringPiece { class
62 // in a "const char*" or a "string" wherever a "StringPiece" is
64 StringPiece() : ptr_(NULL), length_(0) {} function in class:StringPiece
65 StringPiece(const char* str) function in class:StringPiece
67 StringPiece(const std::string& str) : ptr_(str.data()), length_(str.size()) {} function in class:StringPiece
68 StringPiece(cons function in class:StringPiece
70 StringPiece(const char* offset, size_type len) : ptr_(offset), length_(len) {} function in class:StringPiece
[all...]

Completed in 58 milliseconds