Standard facility to convert between ANSI and UNICODE. Similar to ATL::CA2W and ATL::CW2A
malkindan opened this issue · comments
sparcu commented
Is there any standard way to convert strings in WIL? I could not find any examples.
Duncan Horn commented
You mean like a wrapper around WideCharToMultiByte
& vice-versa? Nothing currently seems to exist from what I can see, but such a thing might be generally useful. E.g. something like wil::WideCharToMultiByte<StringT>(...)
/wil::WideCharToMultiByteNoThrow(..., StringT&)
sparcu commented
Yes . Wrappers over WideCharToMultiByte and MultiByteToWideChar