diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2022-12-29 18:31:59 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2023-01-01 14:13:50 +0200 |
commit | 5d76c49e9cf6b7f7fb15857ca184541b6044a220 (patch) | |
tree | 44c04fd0c5de48cd88bb87d84f1fc79e5cb7b993 /src/corelib/text/qbytearrayview.qdoc | |
parent | bab660d124b1792d993237f0a04dc52484d19920 (diff) |
Use more documentation snippets for QString and its siblings
Pick-to: 6.5
Change-Id: Ia569806b586923473f68b9fe1d98a3628ba46a58
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/corelib/text/qbytearrayview.qdoc')
-rw-r--r-- | src/corelib/text/qbytearrayview.qdoc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/corelib/text/qbytearrayview.qdoc b/src/corelib/text/qbytearrayview.qdoc index 79cf9a2fa4..6afcba1eef 100644 --- a/src/corelib/text/qbytearrayview.qdoc +++ b/src/corelib/text/qbytearrayview.qdoc @@ -949,8 +949,7 @@ respectively, in this byte array view, searching forward from index position \a from.Returns -1 if no match is found. - If \a from is -1, the search starts at the last character; if it is - -2, at the next to last character and so on. + \include qstring.qdocinc negative-index-start-search-from-end \sa lastIndexOf(), contains() */ @@ -973,8 +972,10 @@ Returns the index position of either the start of the last occurrence of the sequence of bytes viewed by \a bv or the last occurrence of byte \a ch, respectively, in this byte array view, searching backward from index position - \a from. If \a from is -1, the search starts at the last character; - if \a from is -2, at the next to last character and so on. + \a from. + + \include qstring.qdocinc negative-index-start-search-from-end + Returns -1 if no match is found. \note When searching for a 0-length \a bv, the match at the end of |