11USERVER_NAMESPACE_BEGIN
17std::string
Trim(
const std::string& str);
20std::string
Trim(std::string&& str);
37std::string
Join(
const std::vector<std::string>& strs, std::string_view sep);
40std::string
Format(
double value,
int ndigits);
44 std::string_view needle)
noexcept {
45 return hay.substr(0, needle.size()) == needle;
50 std::string_view needle)
noexcept {
51 return hay.size() >= needle.size() &&
52 hay.substr(hay.size() - needle.size()) == needle;
59bool ICaseEndsWith(std::string_view hay, std::string_view needle)
noexcept;
89 std::size_t length)
noexcept;
92bool IsValid(
const unsigned char* bytes, std::size_t length)
noexcept;
123void TakePrefix(std::string& text, std::size_t count)
noexcept;