QLatin1Char Struct
La clase QLatin1Char proporciona un carácter ASCII/Latin-1 de 8 bits. Más información...
| Encabezado: | #include <QLatin1Char> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Core) target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake: | QT += core |
- Lista de todos los miembros, incluidos los heredados
- QLatin1Char forma parte de las clases para datos de cadena.
Nota: Todas las funciones de esta estructura son reentrantes.
Funciones públicas
| QLatin1Char(char c) | |
| char | toLatin1() const |
| char16_t | unicode() const |
Elementos no miembros relacionados
(since 6.4) QLatin1Char | operator""_L1(char ch) |
Descripción detallada
Esta clase solo sirve para construir un objeto « QChar » con caracteres de 8 bits.
Véase también « QChar », « QLatin1StringView » y « QString ».
Documentación de las funciones miembro
[explicit constexpr noexcept] QLatin1Char::QLatin1Char(char c)
Crea un carácter Latin-1 a partir de c. Este constructor debe utilizarse cuando se sabe que la codificación del carácter de entrada es Latin-1.
[constexpr noexcept] char QLatin1Char::toLatin1() const
Convierte un carácter Latin-1 en una representación ASCII de 8 bits de dicho carácter.
[constexpr noexcept] char16_t QLatin1Char::unicode() const
Convierte un carácter Latin-1 en una representación Unicode codificada en 16 bits de dicho carácter.
Elementos relacionados no miembros
[constexpr noexcept, since 6.4] QLatin1Char operator""_L1(char ch)
Operador literal que crea un ` QLatin1Char ` a partir de ` ch`.
El siguiente código crea un ` QLatin1Char`:
using namespace Qt::StringLiterals;
auto ch = 'a'_L1;Esta función se introdujo en Qt 6.4.
Véase también 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.