QLatin1Char Struct

QLatin1Char 클래스는 8비트 ASCII/Latin-1 문자를 제공합니다. 더 보기...

헤더: #include <QLatin1Char>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core

참고: 이 구조체의 모든 함수는 재진입합니다.

공용 함수

QLatin1Char(char c)
char toLatin1() const
char16_t unicode() const
(since 6.4) QLatin1Char operator""_L1(char ch)

상세 설명

이 클래스는 8비트 문자로 QChar 를 구성하는 데만 유용합니다.

QChar, QLatin1StringView, QString참조하십시오 .

멤버 함수 문서

[explicit constexpr noexcept] QLatin1Char::QLatin1Char(char c)

c 에 대한 라틴-1 문자를 생성합니다. 이 생성자는 입력 문자의 인코딩이 라틴-1로 알려진 경우에 사용해야 합니다.

[constexpr noexcept] char QLatin1Char::toLatin1() const

라틴 1 문자를 8비트 ASCII 문자로 변환합니다.

[constexpr noexcept] char16_t QLatin1Char::unicode() const

라틴 1 문자를 16비트 인코딩된 유니코드 표현으로 변환합니다.

관련 비회원

[constexpr noexcept, since 6.4] QLatin1Char operator""_L1(char ch)

ch 에서 QLatin1Char 을 생성하는 리터럴 연산자입니다.

다음 코드는 QLatin1Char 를 생성합니다:

using namespace Qt::Literals::StringLiterals;

auto ch = 'a'_L1;

이 함수는 Qt 6.4에 도입되었습니다.

Qt::Literals::StringLiterals참조하십시오 .

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