Lines Matching refs:s
32 std::string_view LTrim(const std::string_view s) { in LTrim() argument
33 auto start = s.find_first_not_of(WHITESPACE); in LTrim()
34 return (start == std::string::npos) ? "" : s.substr(start); in LTrim()
37 std::string_view RTrim(const std::string_view s) { in RTrim() argument
38 size_t end = s.find_last_not_of(WHITESPACE); in RTrim()
39 return (end == std::string::npos) ? "" : s.substr(0, end + 1); in RTrim()
42 std::string_view Trim(const std::string_view s) { return RTrim(LTrim(s)); } in Trim() argument
44 std::vector<std::string_view> Split(const std::string_view s, in Split() argument
48 while ((start = s.find_first_not_of(delimiters, end)) != std::string::npos) { in Split()
49 end = s.find(delimiters, start); in Split()
50 result.emplace_back(s.substr(start, end - start)); in Split()
55 std::vector<std::string> Split(const std::string s, in Split() argument
59 while ((start = s.find_first_not_of(delimiters, end)) != std::string::npos) { in Split()
60 end = s.find(delimiters, start); in Split()
61 result.emplace_back(s.substr(start, end - start)); in Split()