| #ifndef BENCHMARK_STRING_UTIL_H_ |
| #define BENCHMARK_STRING_UTIL_H_ |
| #include "internal_macros.h" |
| void AppendHumanReadable(int n, std::string* str); |
| std::string HumanReadableNumber(double n); |
| std::string StringPrintF(const char* format, ...); |
| inline std::ostream& StringCatImp(std::ostream& out) BENCHMARK_NOEXCEPT { |
| template <class First, class... Rest> |
| inline std::ostream& StringCatImp(std::ostream& out, First&& f, |
| out << std::forward<First>(f); |
| return StringCatImp(out, std::forward<Rest>(rest)...); |
| inline std::string StrCat(Args&&... args) { |
| StringCatImp(ss, std::forward<Args>(args)...); |
| void ReplaceAll(std::string* str, const std::string& from, |
| } // end namespace benchmark |
| #endif // BENCHMARK_STRING_UTIL_H_ |