Switching from std::string to std::wstring for embedded applications?

后端 未结 3 516
情书的邮戳
情书的邮戳 2021-01-03 07:11

Up until now I have been using std::string in my C++ applications for embedded system (routers, switches, telco gear, etc.).

For the next project, I am considering t

3条回答
  •  Happy的楠姐
    2021-01-03 08:01

    std::wstring is a good choice for holding Unicode strings on Windows, but not on most other platforms, and ceirtanly not for a portable code. Better try to stick with std::string and UTF-8.

提交回复
热议问题