15 #ifndef NINJA_STRINGPIECE_H_ 16 #define NINJA_STRINGPIECE_H_ 41 return !(*
this == other);
70 #endif // NINJA_STRINGPIECE_H_ std::string AsString() const
Convert the slice into a full-fledged std::string, copying the data into a new string.
StringPiece represents a slice of a string whose memory is managed externally.
const_iterator end() const
StringPiece(const char *str)
bool operator!=(const StringPiece &other) const
StringPiece(const std::string &str)
The constructors intentionally allow for implicit conversions.
StringPiece(const char *str, size_t len)
const_iterator begin() const
char operator[](size_t pos) const
const char * const_iterator
bool operator==(const StringPiece &other) const