1 #ifndef OOKII_FORMAT_HELPER_H_
12 #define OOKII_FORMAT_HELPER_H_
16 #if __has_include(<format>) && !defined(OOKII_FORCE_LIBFMT)
23 #define OOKII_FMT_NS std::
28 #include <fmt/ranges.h>
29 #include <fmt/xchar.h>
34 #define OOKII_FMT_NS fmt::
39 #define OOKII_USING_LIBFMT
54 template<
typename... Args>
55 std::string
ncformat(
const std::locale &loc, std::string_view format, Args&&... args)
68 template<
typename... Args>
69 std::wstring
ncformat(
const std::locale &loc, std::wstring_view format, Args&&... args)
71 return OOKII_FMT_NS vformat(loc, format,
OOKII_FMT_NS make_format_args<OOKII_FMT_NS wformat_context>(std::forward<Args>(args)...));
Provides helper types and functions for working with strings.