以下成员源于类 QStringView 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(deprecated)
QStringView
|
left (qsizetype length ) const |
(deprecated)
QStringView
|
mid (qsizetype start , qsizetype length = -1) const |
(deprecated)
QStringView
|
right (qsizetype length ) const |
This function is deprecated. We strongly advise against using it in new code.
使用 first () instead in new code.
返回子字符串长度 length starting at position 0 in this object.
The entire string is returned if length is greater than or equal to size (), or less than zero.
另请参阅 first (), last (), sliced (), startsWith (), chopped (), chop (),和 truncate ().
This function is deprecated. We strongly advise against using it in new code.
返回子字符串长度 length 始于位置 start 在此对象。
使用 sliced () instead in new code.
Returns an empty string view if start exceeds the length of the string. If there are less than length characters available in the string starting at start ,或者若 length is negative (default), the function returns all characters that are available from start .
另请参阅 first (), last (), sliced (), chopped (), chop (),和 truncate ().
This function is deprecated. We strongly advise against using it in new code.
使用 last () instead in new code.
返回子字符串长度 length 始于位置 size () - length 在此对象。
The entire string is returned if length is greater than or equal to size (), or less than zero.
另请参阅 first (), last (), sliced (), endsWith (), chopped (), chop (),和 truncate ().