|
Boost Users : |
From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2007-01-22 17:15:00
John Christopher wrote:
> Hello,
> Does Boost contain facilities to convert std::string into std::wstring and
> the other way around?
Should there?
std::string a;
std::wstring b(a.begin(),a.end());
std::string c(b.begin(),b.end());
All string algorithms in Boost are templates so they should work fine
with both std::string and std::wstring.
http://www.boost.org/doc/html/string_algo.html
Regards,
Tobias
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net