4#include <initializer_list>
17 template <
typename Container>
25 if constexpr (std::is_arithmetic_v<std::decay_t<
decltype(
part)>>)
26 result += std::format(
"{}",
part);
String helpers: case, trimming, splitting, joining, replacing, parsing and hashing.
Definition Char.hpp:3
std::string join(const Container &parts, std::string_view separator="")
Joins the elements of parts, strings or numbers, with separator between them.
Definition Join.hpp:18
std::string joinString(const std::vector< std::string > &stringList, char delimiter='\0')
Joins stringList with a one-character delimiter; the default adds none.
std::optional< T > parseNumber(std::string_view text, int base=10) noexcept
Parses text as a number, or returns std::nullopt if it is not entirely one.
Definition Convert.hpp:23