summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qlatin1stringview.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/text/qlatin1stringview.qdoc')
-rw-r--r--src/corelib/text/qlatin1stringview.qdoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/text/qlatin1stringview.qdoc b/src/corelib/text/qlatin1stringview.qdoc
index 3bd9312232..a39554d344 100644
--- a/src/corelib/text/qlatin1stringview.qdoc
+++ b/src/corelib/text/qlatin1stringview.qdoc
@@ -756,8 +756,10 @@
Returns a Latin-1 string view that points to \a n characters of this
string view, starting at position \a pos.
+//! [UB-sliced-index-length]
\note The behavior is undefined when \a pos < 0, \a n < 0,
or \c{pos + n > size()}.
+//! [UB-sliced-index-length]
\sa first(), last(), chopped(), chop(), truncate()
*/
@@ -769,7 +771,9 @@
Returns a Latin-1 string view starting at position \a pos in this
string view, and extending to its end.
+//! [UB-sliced-index-only]
\note The behavior is undefined when \a pos < 0 or \a pos > size().
+//! [UB-sliced-index-only]
\sa first(), last(), chopped(), chop(), truncate()
*/