IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Detailed Description

The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.

All functions in this struct are reentrant.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

  • Header: QLatin1Char

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Core)

    target_link_libraries(mytarget PRIVATE Qt6::Core)

  • qmake: QT += core

  • Group: QLatin1Char is part of string-processing

Detailed Description

This class is only useful to construct a QChar with 8-bit character.

See Also

Member Function Documentation

 

[explicit constexpr] QLatin1Char::QLatin1Char(char c)

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.

[constexpr] char QLatin1Char::toLatin1() const

Converts a Latin-1 character to an 8-bit ASCII representation of the character.

[constexpr] char16_t QLatin1Char::unicode() const

Converts a Latin-1 character to an 16-bit-encoded Unicode representation of the character.

Related Non-Members

 

[constexpr, since 6.4] QLatin1Char operator""_L1(char ch)

Literal operator that creates a QLatin1Char out of ch.

The following code creates a QLatin1Char:

 
Sélectionnez
using namespace Qt::Literals::StringLiterals;

auto ch = 'a'_L1;

This function was introduced in Qt 6.4.

See Also

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+