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.