git-svn-id: svn://db.shs.com.ru/pip@630 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -343,6 +343,14 @@ public:
|
||||
* \details Example: \snippet pistring.cpp PIString::expandLeftTo
|
||||
* \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
|
||||
* \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
|
||||
* \details Example: \snippet pistring.cpp PIString::reverse
|
||||
|
||||
Reference in New Issue
Block a user