Obsolete Members for QLatin1String
The following members of class QLatin1String are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(obsolete) QLatin1String | left(qsizetype length) const |
(obsolete) QLatin1String | mid(qsizetype start, qsizetype length = -1) const |
(obsolete) QLatin1String | right(qsizetype length) const |
Member Function Documentation
[since 5.8]
QLatin1String QLatin1String::left(qsizetype length) const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Use first() instead in new code.
Returns the substring of length length starting at position 0 in this Latin-1 string.
The entire Latin-1 string is returned if length is greater than or equal to size(), or less than zero.
This function was introduced in Qt 5.8.
See also first(), last(), sliced(), startsWith(), chopped(), chop(), and truncate().
[since 5.8]
QLatin1String QLatin1String::mid(qsizetype start, qsizetype length = -1) const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Returns the substring of length length starting at position start in this Latin-1 string.
Use sliced() instead in new code.
Returns an empty Latin-1 string if start exceeds the length of this Latin-1 string. If there are less than length characters available in this Latin-1 string starting at start, or if length is negative (default), the function returns all characters that are available from start.
This function was introduced in Qt 5.8.
See also first(), last(), sliced(), chopped(), chop(), and truncate().
[since 5.8]
QLatin1String QLatin1String::right(qsizetype length) const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Use last() instead in new code.
Returns the substring of length length starting at position size() - length in this Latin-1 string.
The entire Latin-1 string is returned if length is greater than or equal to size(), or less than zero.
This function was introduced in Qt 5.8.
See also first(), last(), sliced(), endsWith(), chopped(), chop(), and truncate().