Lines Matching refs:s
32 std::vector<std::string> Split(const std::string& s,
47 std::vector<std::string> Tokenize(const std::string& s, const std::string& delimiters);
50 std::string Trim(const std::string& s);
74 bool StartsWith(std::string_view s, std::string_view prefix);
75 bool StartsWith(std::string_view s, char prefix);
76 bool StartsWithIgnoreCase(std::string_view s, std::string_view prefix);
79 bool EndsWith(std::string_view s, std::string_view suffix);
80 bool EndsWith(std::string_view s, char suffix);
81 bool EndsWithIgnoreCase(std::string_view s, std::string_view suffix);
88 inline bool ConsumePrefix(std::string_view* s, std::string_view prefix) { in ConsumePrefix() argument
89 if (!StartsWith(*s, prefix)) return false; in ConsumePrefix()
90 s->remove_prefix(prefix.size()); in ConsumePrefix()
96 inline bool ConsumeSuffix(std::string_view* s, std::string_view suffix) { in ConsumeSuffix() argument
97 if (!EndsWith(*s, suffix)) return false; in ConsumeSuffix()
98 s->remove_suffix(suffix.size()); in ConsumeSuffix()
104 [[nodiscard]] std::string StringReplace(std::string_view s, std::string_view from,