Obsolete Members for QStringView
QStringView 클래스의 다음 멤버는 더 이상 사용되지 않습니다. 이들은 이전 소스 코드의 작동을 유지하기 위해 제공됩니다. 새 코드에서는 사용하지 않는 것이 좋습니다.
공용 함수
(deprecated) QStringView | left(qsizetype length) const |
(deprecated) QStringView | mid(qsizetype start, qsizetype length = -1) const |
(deprecated) QStringView | right(qsizetype length) const |
멤버 함수 문서
[constexpr noexcept, deprecated]
QStringView QStringView::left(qsizetype length) const
이 함수는 더 이상 사용되지 않습니다. 새 코드에서 이 함수를 사용하지 않는 것이 좋습니다.
새 코드에서는 first()를 대신 사용하세요.
이 객체의 위치 0에서 시작하는 길이 length 의 부분 문자열을 반환합니다.
length 가 size()보다 크거나 같거나 0보다 작으면 전체 문자열 보기가 반환됩니다.
first(), last(), sliced(), startsWith(), chopped(), chop(), truncate() 및 slice()도 참조하세요 .
[constexpr noexcept, deprecated]
QStringView QStringView::mid(qsizetype start, qsizetype length = -1) const
이 함수는 더 이상 사용되지 않습니다. 새 코드에서 이 함수를 사용하지 않는 것이 좋습니다.
이 객체의 start 위치에서 시작하는 length 길이의 부분 문자열을 반환합니다.
새 코드에서는 sliced()를 대신 사용하세요.
start 이 문자열 보기의 길이를 초과하는 경우 빈 문자열 보기를 반환합니다. start 에서 시작하는 문자열 보기에서 사용 가능한 문자가 length 미만인 경우 또는 length 이 음수(기본값)인 경우 이 함수는 start 에서 사용 가능한 모든 문자를 반환합니다.
first(), last(), sliced(), chopped(), chop(), truncate() 및 slice()도 참조하세요 .
[constexpr noexcept, deprecated]
QStringView QStringView::right(qsizetype length) const
이 함수는 더 이상 사용되지 않습니다. 새 코드에서 이 함수를 사용하지 않는 것이 좋습니다.
새 코드에서는 last()를 대신 사용하세요.
이 객체의 size() - length 위치에서 시작하는 length 길이의 하위 문자열을 반환합니다.
length 가 size() 보다 크거나 같거나 0보다 작으면 전체 문자열 보기가 반환됩니다.
first(), last(), sliced(), endsWith(), chopped(), chop(), truncate() 및 slice()도 참조하세요 .
© 2025 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.