Obsolete Members for QUtf8StringView

QUtf8StringView クラスの以下のメンバーは非推奨です。これらは、古いソースコードが動作し続けるように提供されているものです。新しいコードでの使用は強く推奨しません。

パブリック関数

(deprecated in 6.0) QUtf8StringView left(qsizetype n) const
(deprecated in 6.0) QUtf8StringView mid(qsizetype pos, qsizetype n = -1) const
(deprecated in 6.0) QUtf8StringView right(qsizetype n) const

メンバー関数のドキュメント

[constexpr, deprecated in 6.0] QUtf8StringView QUtf8StringView::left(qsizetype n) const

この関数はバージョン 6.0 以降、非推奨となっています。新しいコードでの使用は強く推奨しません。

新しいコードでは、代わりに `first()` を使用してください。

このオブジェクトの 0 番目の位置から、長さが `n ` の部分文字列を返します。

n がsize() 以上、または 0 未満の場合、文字列ビュー全体が返されます。

関連項目: first()、last()、sliced()、chopped()、chop()、truncate()、およびslice()。

[constexpr, deprecated in 6.0] QUtf8StringView QUtf8StringView::mid(qsizetype pos, qsizetype n = -1) const

この関数はバージョン 6.0 以降、非推奨となっています。新しいコードでの使用は強く推奨しません。

このオブジェクトのpos の位置から、長さがn の部分文字列を返します。

新しいコードでは、代わりに `sliced()` を使用してください。

n が文字列ビューの長さを超える場合、空の文字列ビューを返します。pos から始まる文字列ビューで利用可能なコードポイントがn 未満の場合、またはn が負の数(デフォルト)の場合、この関数はpos から利用可能なすべてのコードポイントを返します。

関連項目: first()、last()、sliced()、chopped()、chop()、truncate()、およびslice()。

この関数はバージョン 6.0 以降、非推奨となっています。新しいコードでの使用は強く推奨しません。

新しいコードでは、代わりにlast() を使用してください。

このオブジェクトにおいて、位置size() からn までの長さn の部分文字列を返します。

n がsize() 以上、または 0 未満の場合、文字列ビュー全体が返されます。

first()、last()、sliced()、chopped()、chop()、truncate()、およびslice()も参照してください 。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.