Topic: What type to use for a line?
For a long time did not write on With ++, and here it was required to write a component working both in Windows (32/64), and in Linux (34/64). Initially I planned to use type wstring, using wchar_t as the character, but came across many articles that wchar_t does not approach for development and generally for Unicode. Yes, I in course that in VC and GCC the size of this type differ, but I always considered that wchar_t have been entered to abstract that one character is occupied with 1 byte and function wcslen returns the correct amount of characters if we admit one of them occupies 4 bytes instead of two. But then the index operator for type wstring should be forbidden, and it is resolved. It is necessary to adhere to what approach?
1. To hammer in that some characters can not be located in wchar_t (is not supposed that the component will be used in the countries with hieroglyphs)
2. To use new type char32_t and somewhere to search for implementation of standard functions for this type
3. To start to use ICU and its type UChar32