Obsolete Members for QStringView

QStringView 클래스의 다음 멤버들은 더 이상 사용되지 않습니다. 이 멤버들은 기존 소스 코드가 계속 작동하도록 유지하기 위해 제공됩니다. 새로운 코드에서는 이 멤버들을 사용하지 않는 것을 강력히 권장합니다.

공개 함수

(deprecated in 6.0) QStringView left(qsizetype length) const
(deprecated in 6.0) QStringView mid(qsizetype start, qsizetype length = -1) const
(deprecated in 6.0) QStringView right(qsizetype length) const

멤버 함수 설명

[constexpr noexcept, deprecated in 6.0] QStringView QStringView::left(qsizetype length) const

이 함수는 6.0 버전부터 사용 중단되었습니다. 새로운 코드에서는 이 함수를 사용하지 말 것을 강력히 권장합니다.

새로운 코드에서는 대신 ` first()`를 사용하십시오.

이 객체의 0번 위치부터 시작하여 length 길이의 부분 문자열을 반환합니다.

length 가 size()보다 크거나 같거나, 0보다 작은 경우 전체 문자열 뷰가 반환됩니다.

first(), last(), sliced(), startsWith(), chopped(), chop(), truncate() 및 slice()도 참조하십시오 .

[constexpr noexcept, deprecated in 6.0] QStringView QStringView::mid(qsizetype start, qsizetype length = -1) const

이 함수는 6.0 버전부터 더 이상 권장되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.

이 객체에서 위치 start 부터 시작하여 길이 length 인 부분 문자열을 반환합니다.

새로운 코드에서는 대신 ` sliced()`를 사용하십시오.

start 가 문자열 뷰의 길이를 초과하는 경우, 빈 문자열 뷰를 반환합니다. start 에서 시작하는 문자열 뷰에 사용 가능한 문자가 length 보다 적거나, length 가 음수(기본값)인 경우, 이 함수는 start 에서 사용 가능한 모든 문자를 반환합니다.

first(), last(), sliced(), chopped(), chop(), truncate() 및 slice()도 참조하십시오 .

이 함수는 6.0 버전부터 더 이상 권장되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것이 좋습니다.

새로운 코드에서는 대신 ` last()`를 사용하십시오.

이 객체에서 size() - length 위치부터 시작하여 length 길이의 부분 문자열을 반환합니다.

length 가 size()보다 크거나 같거나, 0보다 작은 경우 전체 문자열 뷰가 반환됩니다.

first(), last(), sliced(), endsWith(), 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.