How QString conversions works these days? Is ICU still used?
-
I vaguely remember that when i learned Qt for the first time on Windows, the deployed program has to include some ICU related things.
But recently, I noticed that the Qt installation on Linux doesn't depend on ICU at all 😅
How Qt internally convert the utf8 ⇄ utf16 ⇄ utf32 if it doesn't depends on ICU?
Is another library internally used, or there is something written from scratch just for Qt?
In other words, how
QString::toStdU32String
andQString::fromUtf8
works? -
I vaguely remember that when i learned Qt for the first time on Windows, the deployed program has to include some ICU related things.
But recently, I noticed that the Qt installation on Linux doesn't depend on ICU at all 😅
How Qt internally convert the utf8 ⇄ utf16 ⇄ utf32 if it doesn't depends on ICU?
Is another library internally used, or there is something written from scratch just for Qt?
In other words, how
QString::toStdU32String
andQString::fromUtf8
works?@shenlebantongying said in How QString conversions works these days? Is ICU still used?:
how QString::toStdU32String and QString::fromUtf8
You could take a look at the implementation of these methods