SourceLocation Class

class QQmlSA::SourceLocation

소스 코드의 위치 또는 지역을 나타냅니다. 더 보기...

헤더: #include <SourceLocation>
CMake: find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
상태: 기술 미리보기

공용 함수

quint32 begin() const
quint32 end() const
QQmlSA::SourceLocation endZeroLengthLocation(QStringView text) const
quint32 length() const
quint32 offset() const
quint32 startColumn() const
quint32 startLine() const
QQmlSA::SourceLocation startZeroLengthLocation() const

상세 설명

멤버 함수 문서

quint32 SourceLocation::begin() const

이 소스 위치의 시작 부분 오프셋을 반환합니다.

quint32 SourceLocation::end() const

이 소스 위치 끝의 오프셋을 반환합니다.

QQmlSA::SourceLocation SourceLocation::endZeroLengthLocation(QStringView text) const

text 을 가리키는 이 소스 위치의 끝을 가리키는 렌트 0의 소스 위치를 반환합니다.

quint32 SourceLocation::length() const

이 소스 위치의 길이를 반환합니다.

quint32 SourceLocation::offset() const

이 소스 위치의 시작 부분 오프셋을 반환합니다.

quint32 SourceLocation::startColumn() const

이 소스 위치의 시작을 포함하는 열 번호를 반환합니다.

quint32 SourceLocation::startLine() const

이 소스 위치의 시작 부분이 포함된 줄 번호를 반환합니다.

QQmlSA::SourceLocation SourceLocation::startZeroLengthLocation() const

이 소스 위치의 시작을 가리키는 렌트 0의 소스 위치를 반환합니다.

© 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.