Lines Matching refs:string_view
74 return Trim(std::string_view(s)); in Trim()
81 template std::string Trim(std::string_view&);
82 template std::string Trim(std::string_view&&);
91 bool StartsWith(std::string_view s, std::string_view prefix) { in StartsWith()
95 bool StartsWith(std::string_view s, char prefix) { in StartsWith()
99 bool StartsWithIgnoreCase(std::string_view s, std::string_view prefix) { in StartsWithIgnoreCase()
103 bool EndsWith(std::string_view s, std::string_view suffix) { in EndsWith()
107 bool EndsWith(std::string_view s, char suffix) { in EndsWith()
111 bool EndsWithIgnoreCase(std::string_view s, std::string_view suffix) { in EndsWithIgnoreCase()
116 bool EqualsIgnoreCase(std::string_view lhs, std::string_view rhs) { in EqualsIgnoreCase()
120 std::string StringReplace(std::string_view s, std::string_view from, std::string_view to, in StringReplace()
125 std::string_view::size_type start_pos = 0; in StringReplace()
127 std::string_view::size_type pos = s.find(from, start_pos); in StringReplace()
128 if (pos == std::string_view::npos) break; in StringReplace()