16 namespace stringutils {
21 value <
static_cast<double>(std::numeric_limits<long long>::max()) &&
22 value >
static_cast<double>(std::numeric_limits<long long>::min())) {
27 return fmt::format(format_spec,
value);
33 }
else if (
rhs.empty()) {
36 return fmt::format(
"{}", fmt::join({lhs,
rhs},
", "));
std::string join_arguments(const std::string &lhs, const std::string &rhs)
Joint two (list of) arguments.
std::string to_string(double value, const std::string &format_spec)
Convert double value to string without trailing zeros.
encapsulates code generation backend implementations
Implement string manipulation functions.