Lines Matching refs:std
27 const std::string WHITESPACE = " \n\r\t\f\v";
32 std::string_view LTrim(const std::string_view s) { 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()
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()
44 std::vector<std::string_view> Split(const std::string_view s, in Split()
45 const std::string_view &delimiters) { in Split()
46 std::vector<std::string_view> result; in Split()
48 while ((start = s.find_first_not_of(delimiters, end)) != std::string::npos) { in Split()
55 std::vector<std::string> Split(const std::string s, in Split()
56 const std::string &delimiters) { in Split()
57 std::vector<std::string> result; in Split()
59 while ((start = s.find_first_not_of(delimiters, end)) != std::string::npos) { in Split()
66 std::string ToHexString(uint8_t x, uint8_t y) { in ToHexString()
75 std::string ToHexString(uint8_t x) { in ToHexString()
79 std::string ToHexString(const uint8_t *buf, size_t len) { in ToHexString()
80 std::stringstream ss; in ToHexString()
90 std::string ToHexString(const std::vector<uint8_t> &data, int max_length) { in ToHexString()
91 std::string result; in ToHexString()