From 9b92720b6124b5e0ed0694632e8cbaf4c6619cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Wed, 26 Sep 2018 08:15:46 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@631 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/core/pistring.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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