There are many string types in C ++: WideString, UnicodeString, String, wstring, string, AnsiString, Variant
There are a lot of conversions in my code, for example
WideString s1 = UnicodeString ( wstring(s2.str().c_str()).c_str()).c_str();
That one word: confusing!
Is there an easy way to handle all string conversions with one helper class without thinking about how to convert one string type to another, for example:
s1 = sc(s2); // sc = string-converter
or
sc(s1,s2); // s1 = convert to, s2 = convert from
user5598651
source
share