From 9117e3850b9d395a9741fa4b63c5b59ea7767390 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sat, 27 Jun 2020 11:26:42 +0200 Subject: Rename from() to sliced() After API discussions, agreement was that from(n) is a bad name for the method. Let's go with sliced(n) instead. Change-Id: I0338cc150148a5008c3ee72bd8fda96fb93e9c35 Reviewed-by: Thiago Macieira --- src/corelib/text/qbytearray.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/corelib/text/qbytearray.cpp') diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp index c138765e15..299c723a55 100644 --- a/src/corelib/text/qbytearray.cpp +++ b/src/corelib/text/qbytearray.cpp @@ -2902,7 +2902,7 @@ QByteArray QByteArray::mid(int pos, int len) const \note The behavior is undefined when \a n < 0 or \a n > size(). - \sa last(), sliced(), from(), startsWith(), chopped(), chop(), truncate() + \sa last(), sliced(), startsWith(), chopped(), chop(), truncate() */ /*! @@ -2913,7 +2913,7 @@ QByteArray QByteArray::mid(int pos, int len) const \note The behavior is undefined when \a n < 0 or \a n > size(). - \sa first(), sliced(), from(), endsWith(), chopped(), chop(), truncate() + \sa first(), sliced(), endsWith(), chopped(), chop(), truncate() */ /*! @@ -2926,12 +2926,13 @@ QByteArray QByteArray::mid(int pos, int len) const \note The behavior is undefined when \a pos < 0, \a n < 0, or \a pos + \a n > size(). - \sa first(), last(), from(), chopped(), chop(), truncate() + \sa first(), last(), chopped(), chop(), truncate() */ /*! - \fn QByteArray QByteArray::from(qsizetype pos) const + \fn QByteArray QByteArray::sliced(qsizetype pos) const \since 6.0 + \overload Returns a byte array containing the bytes starting at position \a pos in this object, and extending to the end of this object. -- cgit v1.2.3