Home | History | Annotate | Download | only in gn

Lines Matching refs:string

15 inline std::string operator+(const std::string& a, const base::StringPiece& b) {
16 std::string ret;
23 inline std::string operator+(const base::StringPiece& a, const std::string& b) {
24 std::string ret;
38 // Removes the given prefix from the string. Asserts if the string does
42 std::string RemovePrefix(const std::string& str, const std::string& prefix);
44 // Appends the given string piece to the given string. This avoids an
46 inline void AppendStringPiece(std::string* dest,
51 // Removes the trailing slash from the given string. This asserts that either
52 // the string is empty or it ends with a slash (normally used to process
54 void TrimTrailingSlash(std::string* str);