git-svn-id: svn://db.shs.com.ru/pip@904 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2020-03-05 21:14:28 +00:00
parent 45137053ff
commit 6dff576888
6 changed files with 33 additions and 30 deletions

View File

@@ -3,12 +3,19 @@
int main() {
//piCout << __sysoemname__;
const char * s = "Eng, Русский №!123";
/*const char * s = "Eng, Русский №!123";
PIString str = PIString::fromUTF8(s);
piCout << str.size() << str;
str.forEach([](PIChar c){piCout << c; return c;});
PIFile f("1.txt", PIIODevice::ReadWrite);
f.clear();
f << str;
f << str;*/
PIChar c = PIChar::fromUTF8("");
PIString s = PIString::fromUTF8("");
piCout << c.unicode16Code() << s[0].unicode16Code();
piCout << c << s;
PIFile f("1.txt", PIIODevice::ReadWrite);
f.clear();
f << c;
return 0;
}