From ec846146b443bfb75a86023e2235ab7851dfd67c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Nowacki?= Date: Fri, 19 Jul 2013 12:27:56 +0200 Subject: New QStringRef methods. New functions left, right, mid were missing in the api. Change-Id: I3590a84431555d009d5012b204c111385bdceed3 Reviewed-by: Thiago Macieira --- src/corelib/tools/qstring.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/corelib/tools/qstring.h') diff --git a/src/corelib/tools/qstring.h b/src/corelib/tools/qstring.h index 7010a954b4..d20b3e227d 100644 --- a/src/corelib/tools/qstring.h +++ b/src/corelib/tools/qstring.h @@ -1226,6 +1226,10 @@ public: int count(QChar c, Qt::CaseSensitivity cs = Qt::CaseSensitive) const; int count(const QStringRef &s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const; + QStringRef left(int n) const Q_REQUIRED_RESULT; + QStringRef right(int n) const Q_REQUIRED_RESULT; + QStringRef mid(int pos, int n = -1) const Q_REQUIRED_RESULT; + bool startsWith(const QString &s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const; bool startsWith(QLatin1String s, Qt::CaseSensitivity cs = Qt::CaseSensitive) const; bool startsWith(QChar c, Qt::CaseSensitivity cs = Qt::CaseSensitive) const; -- cgit v1.2.3