diff --git a/Utilities/StrFmt.h b/Utilities/StrFmt.h index 2cbf2c99e7..4598e5925d 100644 --- a/Utilities/StrFmt.h +++ b/Utilities/StrFmt.h @@ -603,6 +603,14 @@ namespace fmt } }; + static std::string format(const char* fmt, size_t len) + { + const size_t fmt_start = get_fmt_start(fmt, len); + assert(fmt_start == len); + + return std::string(fmt, len); + } + template static std::string format(const char* fmt, size_t len, const T& arg, Args... args) { @@ -612,14 +620,6 @@ namespace fmt return std::string(fmt, fmt_start) + get_fmt::text(fmt + fmt_start, fmt_len, arg) + format(fmt + fmt_end, len - fmt_end, args...); } - - static std::string format(const char* fmt, size_t len) - { - const size_t fmt_start = get_fmt_start(fmt, len); - assert(fmt_start == len); - - return std::string(fmt, len); - } }; // formatting function with very limited functionality (compared to printf-like formatting) and be_t<> support