PIFile::readAll release
patch deploy_tool: ignore libc.so and take last dpkg dependency instead of first
This commit is contained in:
7
main.cpp
7
main.cpp
@@ -86,8 +86,9 @@ int main(int argc, char * argv[]) {
|
||||
if (argc < 2) return 0;
|
||||
PIFile f(argv[1], PIIODevice::ReadOnly);
|
||||
piCout << "read" << f.path();
|
||||
auto fc = f._readAll();
|
||||
piCout << fc.size() << PIString::fromUTF8(fc.resized(32));
|
||||
auto fc = f.readAll();
|
||||
piCout << fc.size();
|
||||
if (!fc.isEmpty()) piCout << PIString::fromUTF8(fc.resized(32));
|
||||
return 0;
|
||||
|
||||
|
||||
@@ -174,7 +175,7 @@ int main(int argc, char * argv[]) {
|
||||
// return 0;
|
||||
PIRegularExpression pire("(?:\\/\\/\\s*)?.*\\n?(?:\\bfunction\\b)\\s*(?<name>\\b\\w+\\b)\\s*(?:\\((?<args>[^;()]*?)\\))",
|
||||
PIRegularExpression::Multiline);
|
||||
PIString subj = PIString::fromUTF8(PIFile::readAll("telegram.qs", false));
|
||||
PIString subj = PIString::fromUTF8(PIFile::readAll("telegram.qs"));
|
||||
|
||||
piCout << "Pattern:" << pire.pattern();
|
||||
piCout << "Valid:" << pire.isValid();
|
||||
|
||||
Reference in New Issue
Block a user