ultimatepp/uppdev/WString/WString.cpp
cxl 3cd394812c Merge continued
git-svn-id: svn://ultimatepp.org/upp/trunk@10263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-10-04 08:34:39 +00:00

20 lines
340 B
C++

#include <Core/Core.h>
CONSOLE_APP_MAIN
{
String q = "Ahoj kamarade";
WString w;
{
TimeStop s;
for(int i = 0; i < 10000000; i++)
w = ToUnicode(q, CHARSET_WIN1250);
RLOG("normal: " << s);
}
{
TimeStop s;
for(int i = 0; i < 10000000; i++)
w = ToUnicode(q, CHARSET_UTF8);
RLOG("utf8: " << s);
}
}