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