PIIODevice registration dramatically optimization
This commit is contained in:
25
main.cpp
25
main.cpp
@@ -38,15 +38,38 @@ int main(int argc, char * argv[]) {
|
||||
cmp(PIConstChars("1a"), PIConstChars("1b"));
|
||||
cmp(PIConstChars("1c"), PIConstChars("1b"));*/
|
||||
|
||||
PIMap<PIConstChars, int> map;
|
||||
/*PIMap<PIConstChars, int> map;
|
||||
map[PIConstChars()] = 0;
|
||||
map[PIConstChars()] = -1;
|
||||
map["_2"] = 22;
|
||||
map["1"] = 11;
|
||||
map["__3"] = 33;
|
||||
map["10"] = 10;
|
||||
map[""] = 999;
|
||||
piCout << map;
|
||||
|
||||
piCout << PIConstChars().toString();
|
||||
piCout << PIConstChars("").toString();
|
||||
piCout << PIConstChars("str").toString();
|
||||
PIConstChars s = " 1 2 \t";
|
||||
piCout << "trim:";
|
||||
PICout(DefaultControls | AddQuotes) << s.trimmed();
|
||||
PICout(DefaultControls | AddQuotes) << s;
|
||||
PICout(DefaultControls | AddQuotes) << s.isEmpty();*/
|
||||
|
||||
/*piCout << PIIODevice::availablePrefixes();
|
||||
auto * d = PIIODevice::createFromFullPath("ser://COM1");
|
||||
piCout << "";
|
||||
piCout << d;
|
||||
d->dump();
|
||||
d = PIIODevice::createFromFullPath("eth://udp:127.0.0.1:5000");
|
||||
piCout << "";
|
||||
piCout << d;
|
||||
d->dump();*/
|
||||
|
||||
piCout << "";
|
||||
dumpApplication();
|
||||
|
||||
return 0;
|
||||
|
||||
auto rstr = PIString::fromUTF8("ascii русский!");
|
||||
|
||||
Reference in New Issue
Block a user