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は、文字列データ用クラスの一部です。
注意:この構造体の関数はすべてリエントラントです。
パブリック関数
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ビットエンコードされたUnicode表現に変換します。
関連する非会員
[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.