summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qstringiterator.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/text/qstringiterator.qdoc')
-rw-r--r--src/corelib/text/qstringiterator.qdoc50
1 files changed, 13 insertions, 37 deletions
diff --git a/src/corelib/text/qstringiterator.qdoc b/src/corelib/text/qstringiterator.qdoc
index 9d7c54ce9f..9b1e43163e 100644
--- a/src/corelib/text/qstringiterator.qdoc
+++ b/src/corelib/text/qstringiterator.qdoc
@@ -1,29 +1,5 @@
-/****************************************************************************
-**
-** Copyright (C) 2014 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
+// Copyright (C) 2014 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\class QStringIterator
@@ -45,14 +21,14 @@
You can create a QStringIterator that iterates over a given
QStringView by passing the string to the QStringIterator's constructor:
- \snippet code/src_corelib_tools_qstringiterator.cpp 0
+ \snippet code/src_corelib_text_qstringiterator.cpp 0
A newly created QStringIterator will point before the first position in the
string. It is possible to check whether the iterator can be advanced by
calling hasNext(), and actually advance it (and obtain the next code point)
by calling next():
- \snippet code/src_corelib_tools_qstringiterator.cpp 1
+ \snippet code/src_corelib_text_qstringiterator.cpp 1
Similarly, the hasPrevious() and previous() functions can be used to iterate backwards.
@@ -76,7 +52,7 @@
For instance:
- \snippet code/src_corelib_tools_qstringiterator.cpp 2
+ \snippet code/src_corelib_text_qstringiterator.cpp 2
If the iterator is not able to decode the next code point (or the previous
one, when iterating backwards), then it will return \c{0xFFFD}, that is,
@@ -170,7 +146,7 @@
*/
/*!
- \fn uint QStringIterator::peekNextUnchecked() const
+ \fn QStringIterator::peekNextUnchecked() const
Returns the Unicode code point that is immediately after the iterator's current
position. The current position is not changed.
@@ -182,7 +158,7 @@
*/
/*!
- \fn uint QStringIterator::peekNext(uint invalidAs = QChar::ReplacementCharacter) const
+ \fn QStringIterator::peekNext(char32_t invalidAs = QChar::ReplacementCharacter) const
Returns the Unicode code point that is immediately after the iterator's current
position. The current position is not changed.
@@ -198,7 +174,7 @@
*/
/*!
- \fn uint QStringIterator::nextUnchecked()
+ \fn QStringIterator::nextUnchecked()
Advances the iterator's current position by one Unicode code point,
and returns the Unicode code point that gets pointed by the iterator.
@@ -210,7 +186,7 @@
*/
/*!
- \fn uint QStringIterator::next(uint invalidAs = QChar::ReplacementCharacter)
+ \fn QStringIterator::next(char32_t invalidAs = QChar::ReplacementCharacter)
Advances the iterator's current position by one Unicode code point,
and returns the Unicode code point that gets pointed by the iterator.
@@ -258,7 +234,7 @@
*/
/*!
- \fn uint QStringIterator::peekPreviousUnchecked() const
+ \fn QStringIterator::peekPreviousUnchecked() const
Returns the Unicode code point that is immediately before the iterator's current
position. The current position is not changed.
@@ -270,7 +246,7 @@
*/
/*!
- \fn uint QStringIterator::peekPrevious(uint invalidAs = QChar::ReplacementCharacter) const
+ \fn QStringIterator::peekPrevious(char32_t invalidAs = QChar::ReplacementCharacter) const
Returns the Unicode code point that is immediately before the iterator's current
position. The current position is not changed.
@@ -286,7 +262,7 @@
*/
/*!
- \fn uint QStringIterator::previousUnchecked()
+ \fn QStringIterator::previousUnchecked()
Moves the iterator's current position back by one Unicode code point,
and returns the Unicode code point that gets pointed by the iterator.
@@ -298,7 +274,7 @@
*/
/*!
- \fn uint QStringIterator::previous(uint invalidAs = QChar::ReplacementCharacter)
+ \fn QStringIterator::previous(char32_t invalidAs = QChar::ReplacementCharacter)
Moves the iterator's current position back by one Unicode code point,
and returns the Unicode code point that gets pointed by the iterator.