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

This commit is contained in:
2018-09-25 21:09:32 +00:00
parent 32093a62fd
commit 271f211fbc
4 changed files with 18 additions and 4 deletions

View File

@@ -41,10 +41,16 @@ public:
} }
}; };
int main() { int main() {
A a; /*A a;
CONNECTU(PICout::Notifier::object(), finished, &a, pcf); CONNECTU(PICout::Notifier::object(), finished, &a, pcf);
PIString buffer = "my buff:"; PIString buffer = "my buff:";
PICout(&buffer, 1) << "int 10 ->" << 10 << ", time ->" << PITime::current(); PICout(&buffer, 1) << "int 10 ->" << 10 << ", time ->" << PITime::current();*/
PIString s("str");
piCout << s;
piCout << s.quoted();
piCout << s.quoted();
piCout << s.quote();
piCout << s;
return 0; return 0;
/*} /*}

View File

@@ -344,6 +344,14 @@ public:
* \sa \a expandRightTo() */ * \sa \a expandRightTo() */
PIString & expandLeftTo(const int len, const PIChar & c) {if (len > length()) insert(0, PIString(len - length(), c)); return *this;} PIString & expandLeftTo(const int len, const PIChar & c) {if (len > length()) insert(0, PIString(len - length(), c)); return *this;}
/*! \brief Add " symbols at the beginning and end of the string, and return this string
* \sa \a quoted() */
PIString & quote() {insert(0, PIChar('"')); *this += PIChar('"'); return *this;}
/*! \brief Return quoted copy of this string
* \sa \a quote() */
PIString quoted() {return PIString(*this).quote();}
/*! \brief Reverse string and return this string /*! \brief Reverse string and return this string
* \details Example: \snippet pistring.cpp PIString::reverse * \details Example: \snippet pistring.cpp PIString::reverse
* \sa \a reversed() */ * \sa \a reversed() */

View File

@@ -4,7 +4,7 @@
#define PIP_VERSION_MAJOR 1 #define PIP_VERSION_MAJOR 1
#define PIP_VERSION_MINOR 7 #define PIP_VERSION_MINOR 7
#define PIP_VERSION_REVISION 1 #define PIP_VERSION_REVISION 2
#define PIP_VERSION_SUFFIX "" #define PIP_VERSION_SUFFIX ""
#endif // PIVERSION_H #endif // PIVERSION_H

View File

@@ -326,7 +326,7 @@ void PISystemMonitor::gatherThread(llong id) {
ts.id = id; ts.id = id;
ts.name = tbid.value(id, "<non-PIThread>"); ts.name = tbid.value(id, "<non-PIThread>");
#ifndef WINDOWS #ifndef WINDOWS
PIFile f(PRIVATE->proc_dir + "task/" + PIString(id) + "/stat"); PIFile f(PRIVATE->proc_dir + "task/" + PIString::fromNumber(id) + "/stat");
//piCout << f.path(); //piCout << f.path();
if (!f.open(PIIODevice::ReadOnly)) if (!f.open(PIIODevice::ReadOnly))
return; return;