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

This commit is contained in:
2018-09-26 08:15:46 +00:00
parent 271f211fbc
commit 9b92720b61

View File

@@ -344,13 +344,13 @@ public:
* \sa \a expandRightTo() */
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
/*! \brief Add "c" 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;}
PIString & quote(PIChar c = PIChar('"')) {insert(0, c); *this += c; return *this;}
/*! \brief Return quoted copy of this string
* \sa \a quote() */
PIString quoted() {return PIString(*this).quote();}
PIString quoted(PIChar c = PIChar('"')) {return PIString(*this).quote(c);}
/*! \brief Reverse string and return this string
* \details Example: \snippet pistring.cpp PIString::reverse