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