wstring #374
Replies: 2 comments 3 replies
-
Thanks for the suggestion, I understand this would make library interaction simpler when you're already using wstring. However, this one I can say will not be added. It opens up more questions, should we support both 16 and 32 bit wchar_t? If so, which encodings should they be considered to be? Probably UTF-16 and UTF-32. But now we have to add support for those encodings as well, and test it all. It's really a lot of work that can be better spent elsewhere, for little gain. Instead, you'll have to do this conversion at the API boundary. |
Beta Was this translation helpful? Give feedback.
-
I think UTF-16 would be enough, at the expense of 16-32 bits - I'm not competent here. For example, I have a project built using wchar_t as the main text type, that if I need to output a localized string in Cyrillic, I need to call ConvertToUTF16 from your api every time for this, and at this point I'm worried about performance, if necessary do each tick in some place - this raises even more doubts about the need for such a transformation every time ... and if, for example, I myself redo everything in your project to wstring - then there will be a problem with updating :) |
Beta Was this translation helpful? Give feedback.
-
You use std::string as the main text type, do you plan to add the possibility of a global config in the future, which will give the ability to use wstring/wchar_t globally instead of std::string?
Beta Was this translation helpful? Give feedback.
All reactions