이 페이지에서

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 에 대한 Latin-1 문자를 생성합니다. 이 생성자는 입력 문자의 인코딩이 Latin-1임이 확실한 경우에 사용해야 합니다.

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

Latin-1 문자를 해당 문자의 8비트 ASCII 표현으로 변환합니다.

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

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

관련 비회원

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

ch 를 사용하여 QLatin1Char 를 생성하는 리터럴 연산자입니다.

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

using namespace Qt::StringLiterals;

auto ch = 'a'_L1;

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

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

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