9 #ifndef CPPCOMMON_STRING_FORMAT_H
10 #define CPPCOMMON_STRING_FORMAT_H
12 #if defined(__clang__)
13 #pragma clang system_header
14 #elif defined(__GNUC__)
15 #pragma GCC system_header
16 #elif defined(_MSC_VER)
21 #include <fmt/format.h>
22 #include <fmt/ostream.h>
23 #include <fmt/xchar.h>
37 template <
typename... T>
38 std::string
format(fmt::format_string<T...> pattern, T&&... args);
50 template <
typename... T>
51 std::wstring
format(fmt::wformat_string<T...> pattern, T&&... args);
62 template <
typename... T>
63 void print(fmt::format_string<T...> pattern, T&&... args);
74 template <
typename... T>
75 void print(fmt::wformat_string<T...> pattern, T&&... args);
87 template <
typename TOutputStream,
typename... T>
88 void print(TOutputStream& stream, fmt::format_string<T...> pattern, T&&... args);
100 template <
typename TOutputStream,
typename... T>
101 void print(TOutputStream& stream, fmt::wformat_string<T...> pattern, T&&... args);
C++ Common project definitions.
std::string format(fmt::format_string< T... > pattern, T &&... args)
Format string.
void print(fmt::format_string< T... > pattern, T &&... args)
Format string and print it into the std::cout.