Files
pip/main.cpp

24 lines
628 B
C++

#include "pip.h"
int main() {
//piCout << __sysoemname__;
const char * s = "Eng, Русский №!123";
PIString str = PIString::fromUTF8(s);
piCout << str;
piCout << str.toLowerCase();
piCout << str.toUpperCase();
/*str.forEach([](PIChar c){piCout << c; return c;});
PIFile f("1.txt", PIIODevice::ReadWrite);
f.clear();
f << str;
PIChar c = PIChar::fromUTF8("│");
PIString s = PIString::fromUTF8("│");
piCout << c.unicode16Code() << s[0].unicode16Code();
piCout << c << s << PISystemInfo::machineKey();
PIFile f("1.txt", PIIODevice::ReadWrite);
f.clear();
f << c;*/
return 0;
}