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

This commit is contained in:
2020-03-22 17:43:21 +00:00
parent 7de11ea7bb
commit 05a29c03df
2 changed files with 7 additions and 28 deletions

View File

@@ -7,30 +7,9 @@ void print(PIConfig::Entry*e, PIString indent = "") {
}
int main() {
//piCout << __sysoemname__;
const char * s = "Eng, Русский №!123";
PIString str = PIString::fromUTF8(s);
//piCout << PIChar::fromUTF8("a").isDigit();
//piCout << PIChar::fromUTF8("1").isDigit();
piCout << PIChar::fromUTF8("щ") << PIChar::fromUTF8("щ").isLower() << PIChar::fromUTF8("щ").isUpper();
piCout << PIChar::fromUTF8("Ц") << PIChar::fromUTF8("Ц").isLower() << PIChar::fromUTF8("Ц").isUpper();
//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;*/
//PIConfig conf("spec_core.conf", PIIODevice::ReadOnly);
//print(&conf.rootEntry());
PIStringList dl = PISerial::availableDevices();
piCout << dl;
PISerial ser(dl[0]);
piCout << ser.open(PIIODevice::ReadWrite) << &ser;
return 0;
}