From 0c3646f6f908715ed71f116daef5f0d56fa3bfc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Wed, 21 Aug 2019 15:12:58 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@848 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/core/pistring.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src_main/core/pistring.h b/src_main/core/pistring.h index 77abac57..f701263c 100755 --- a/src_main/core/pistring.h +++ b/src_main/core/pistring.h @@ -246,6 +246,9 @@ public: * \details All variants demonstrated in example: \snippet pistring.cpp PIString::mid * \sa \a left(), \a right() */ PIString mid(const int start, const int len = -1) const; + + /*! \brief Return sub-string of string from symbol at index "start" and maximum length "len" */ + PIString subString(const int start, const int len = -1) const {return mid(start, len);} /*! \brief Return part of string from left and maximum length "len" * \details Example: \snippet pistring.cpp PIString::left