The following members of class QAnyStringView are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
(since 6.5, deprecated) QAnyStringView |
left(qsizetype n) const |
(since 6.5, deprecated) QAnyStringView |
mid(qsizetype pos, qsizetype n = -1) const |
(since 6.5, deprecated) QAnyStringView |
right(qsizetype n) const |
[constexpr, since 6.5, deprecated] QAnyStringView
QAnyStringView::left(qsizetype n) constThis function is deprecated. We strongly advise against using it in new code.
Use first() instead in new code.
Returns the substring of length n starting at position 0 in this object.
The entire string view is returned if n is greater than or equal to size(), or less than zero.
This function was introduced in Qt 6.5.
See also first(), last(), sliced(), chopped(), chop(), truncate(), slice(), and Sizes and Sub-Strings.
[constexpr, since 6.5, deprecated] QAnyStringView
QAnyStringView::mid(qsizetype pos, qsizetype n = -1) constThis function is deprecated. We strongly advise against using it in new code.
Returns the substring of length n starting at position pos in this object.
Use sliced() instead in new code.
Returns an empty string view if n exceeds the length of the string view. If there are less than n code points available in the string view starting at pos, or if n is negative (default), the function returns all code points that are available from pos.
This function was introduced in Qt 6.5.
See also first(), last(), sliced(), chopped(), chop(), truncate(), slice(), and Sizes and Sub-Strings.
[constexpr, since 6.5, deprecated] QAnyStringView
QAnyStringView::right(qsizetype n) constThis function is deprecated. We strongly advise against using it in new code.
Use last() instead in new code.
Returns the substring of length n starting at position size() - n in this object.
The entire string view is returned if n is greater than or equal to size(), or less than zero.
This function was introduced in Qt 6.5.
See also first(), last(), sliced(), chopped(), chop(), truncate(), slice(), and Sizes and Sub-Strings.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: