diff --git a/src_main/core/pistring.h b/src_main/core/pistring.h index cd868130..11ba18e5 100755 --- a/src_main/core/pistring.h +++ b/src_main/core/pistring.h @@ -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