![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtCore \reentrant More...
#include <qchar.h>
Public Member Functions | |
constexpr | QLatin1Char (char c) noexcept |
Constructs a Latin-1 character for c. | |
constexpr char | toLatin1 () const noexcept |
Converts a Latin-1 character to an 8-bit ASCII representation of the character. | |
constexpr char16_t | unicode () const noexcept |
Converts a Latin-1 character to an 16-bit-encoded Unicode representation of the character. | |
Friends | |
class | QChar |
constexpr bool | comparesEqual (const QLatin1Char &lhs, const QLatin1Char &rhs) noexcept |
constexpr Qt::strong_ordering | compareThreeWay (const QLatin1Char &lhs, const QLatin1Char &rhs) noexcept |
constexpr bool | comparesEqual (const QLatin1Char &lhs, char rhs) noexcept |
constexpr Qt::strong_ordering | compareThreeWay (const QLatin1Char &lhs, char rhs) noexcept |
Related Symbols | |
(Note that these are not member symbols.) | |
operator""_L1 (char ch) | |
\inmodule QtCore \reentrant
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
This class is only useful to construct a QChar with 8-bit character.
|
inlineexplicitconstexprnoexcept |
Constructs a Latin-1 character for c.
This constructor should be used when the encoding of the input character is known to be Latin-1.
Definition at line 19 of file qchar.h.
Referenced by operator""_L1(), and to_unicode().
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Converts a Latin-1 character to an 16-bit-encoded Unicode representation of the character.
Definition at line 21 of file qchar.h.
Referenced by to_unicode().
|
friend |
|
friend |
|
friend |
|
friend |
|
Literal operator that creates a QLatin1Char out of ch.
The following code creates a QLatin1Char:
Definition at line 696 of file qchar.h.
References QLatin1Char().