diff --git a/doc/api.rst b/doc/api.rst index 8bf71c57..f41b840f 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -49,6 +49,9 @@ arguments in the resulting string. .. doxygenfunction:: print(std::FILE *, string_view, const Args&...) .. doxygenfunction:: vprint(std::FILE *, string_view, format_args) +.. doxygenfunction:: print(std::FILE *, wstring_view, const Args&...) +.. doxygenfunction:: vprint(std::FILE *, wstring_view, wformat_args) + Named arguments --------------- diff --git a/include/fmt/core.h b/include/fmt/core.h index cf87bce8..4b1250f7 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1285,6 +1285,10 @@ inline void print(std::FILE *f, string_view format_str, const Args & ... args) { format_arg_store as(args...); vprint(f, format_str, as); } +/** + Prints formatted data to the file *f* which should be in wide-oriented mode set + via ``fwide(f, 1)`` or ``_setmode(_fileno(f), _O_U8TEXT)`` on Windows. + */ template inline void print(std::FILE *f, wstring_view format_str, const Args & ... args) { format_arg_store as(args...);