Is there a way to get boost.format to use and return wide (Unicode) character strings?
I'd like to be able to do things like:
wcout << boost::format(L"...") % ...
and
wstring s = boost::str(boost::format(L"...") % ...)
Is this possible?
format_fwd.hpp
contains this typedef:
typedef basic_format<wchar_t > wformat;
I think this will get you started. This works here:
std::wcout << boost::wformat(L"...") % ...
Also the boost::str
works using wformat
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With