Hi,
I am in doubt:
Or I abstract away my string-type and implicitly use the local stringtype or I use something like ICU and convert to the local type when needed.
Let me give you an example the following:
enum StringKind {
ICU_STRING,
STD_STRING,
MSCORLIB_STRING,
NSSTRING,
... /* You get the picture */
};
template<class E>
class _MyString {
};
template<>
class _MyString<ICU_STRING> {};
template<>
class _MyString<NSSTRING> {};
#if defined(__ICU_INSTALLED__)
typedef _MyString<ICU_STRING> MyString;
#elif defined(__DOT_NET__)
typedef _MyString<MSCORLIB_STRING> MyString;
/* ... */
#endif
or I just use the ICU implementation in my code and convert the UnicodeString to the characterencoding of that runtime. Be aware, string can get very big in my implementation!
What should I do/chose?
Thank you,
Filip