QLatin1Char Struct
La clase QLatin1Char proporciona un carácter ASCII/Latin-1 de 8 bits. Más...
| Cabecera: | #include <QLatin1Char> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Core)target_link_libraries(mytarget PRIVATE Qt6::Core) |
| qmake: | QT += core |
- Lista de todos los miembros, incluyendo los heredados
- QLatin1Char es parte de 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 |
No miembros relacionados
(since 6.4) QLatin1Char | operator""_L1(char ch) |
Descripción detallada
Esta clase sólo es útil para construir un QChar con carácter de 8 bits.
Véase también QChar, QLatin1StringView, y QString.
Documentación de las funciones miembro
[explicit constexpr noexcept] QLatin1Char::QLatin1Char(char c)
Construye un carácter Latin-1 para 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 del carácter.
[constexpr noexcept] char16_t QLatin1Char::unicode() const
Convierte un carácter Latin-1 en una representación Unicode codificada en 16 bits del carácter.
No miembros relacionados
[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.