QtBase  v6.3.1
Public Member Functions | Friends | List of all members
QLatin1Char Class Reference

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

#include <qchar.h>

Public Member Functions

constexpr QLatin1Char (char c) noexcept
 
constexpr char toLatin1 () const noexcept
 
constexpr char16_t unicode () const noexcept
 

Friends

constexpr friend bool operator== (QLatin1Char lhs, QLatin1Char rhs) noexcept
 
constexpr friend bool operator!= (QLatin1Char lhs, QLatin1Char rhs) noexcept
 
constexpr friend bool operator<= (QLatin1Char lhs, QLatin1Char rhs) noexcept
 
constexpr friend bool operator>= (QLatin1Char lhs, QLatin1Char rhs) noexcept
 
constexpr friend bool operator< (QLatin1Char lhs, QLatin1Char rhs) noexcept
 
constexpr friend bool operator> (QLatin1Char lhs, QLatin1Char rhs) noexcept
 
constexpr friend bool operator== (char lhs, QLatin1Char rhs) noexcept
 
constexpr friend bool operator!= (char lhs, QLatin1Char rhs) noexcept
 
constexpr friend bool operator<= (char lhs, QLatin1Char rhs) noexcept
 
constexpr friend bool operator>= (char lhs, QLatin1Char rhs) noexcept
 
constexpr friend bool operator< (char lhs, QLatin1Char rhs) noexcept
 
constexpr friend bool operator> (char lhs, QLatin1Char rhs) noexcept
 
constexpr friend bool operator== (QLatin1Char lhs, char rhs) noexcept
 
constexpr friend bool operator!= (QLatin1Char lhs, char rhs) noexcept
 
constexpr friend bool operator<= (QLatin1Char lhs, char rhs) noexcept
 
constexpr friend bool operator>= (QLatin1Char lhs, char rhs) noexcept
 
constexpr friend bool operator< (QLatin1Char lhs, char rhs) noexcept
 
constexpr friend bool operator> (QLatin1Char lhs, char rhs) noexcept
 

Detailed Description

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

\inmodule QtCore \reentrant

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

See also
QChar, QLatin1String, QString

Definition at line 52 of file qchar.h.

Constructor & Destructor Documentation

◆ QLatin1Char()

QLatin1Char::QLatin1Char ( char  c)
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 55 of file qchar.h.

Member Function Documentation

◆ toLatin1()

const char QLatin1Char::toLatin1 ( ) const
inlineconstexprnoexcept

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

Definition at line 56 of file qchar.h.

Here is the caller graph for this function:

◆ unicode()

QLatin1Char::unicode ( ) const
inlineconstexprnoexcept

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

Definition at line 57 of file qchar.h.

Friends And Related Function Documentation

◆ operator!= [1/3]

constexpr friend bool operator!= ( char  lhs,
QLatin1Char  rhs 
)
friend

Definition at line 67 of file qchar.h.

◆ operator!= [2/3]

constexpr friend bool operator!= ( QLatin1Char  lhs,
char  rhs 
)
friend

Definition at line 74 of file qchar.h.

◆ operator!= [3/3]

constexpr friend bool operator!= ( QLatin1Char  lhs,
QLatin1Char  rhs 
)
friend

Definition at line 60 of file qchar.h.

◆ operator< [1/3]

constexpr friend bool operator< ( char  lhs,
QLatin1Char  rhs 
)
friend

Definition at line 70 of file qchar.h.

◆ operator< [2/3]

constexpr friend bool operator< ( QLatin1Char  lhs,
char  rhs 
)
friend

Definition at line 77 of file qchar.h.

◆ operator< [3/3]

constexpr friend bool operator< ( QLatin1Char  lhs,
QLatin1Char  rhs 
)
friend

Definition at line 63 of file qchar.h.

◆ operator<= [1/3]

constexpr friend bool operator<= ( char  lhs,
QLatin1Char  rhs 
)
friend

Definition at line 68 of file qchar.h.

◆ operator<= [2/3]

constexpr friend bool operator<= ( QLatin1Char  lhs,
char  rhs 
)
friend

Definition at line 75 of file qchar.h.

◆ operator<= [3/3]

constexpr friend bool operator<= ( QLatin1Char  lhs,
QLatin1Char  rhs 
)
friend

Definition at line 61 of file qchar.h.

◆ operator== [1/3]

constexpr friend bool operator== ( char  lhs,
QLatin1Char  rhs 
)
friend

Definition at line 66 of file qchar.h.

◆ operator== [2/3]

constexpr friend bool operator== ( QLatin1Char  lhs,
char  rhs 
)
friend

Definition at line 73 of file qchar.h.

◆ operator== [3/3]

constexpr friend bool operator== ( QLatin1Char  lhs,
QLatin1Char  rhs 
)
friend

Definition at line 59 of file qchar.h.

◆ operator> [1/3]

constexpr friend bool operator> ( char  lhs,
QLatin1Char  rhs 
)
friend

Definition at line 71 of file qchar.h.

◆ operator> [2/3]

constexpr friend bool operator> ( QLatin1Char  lhs,
char  rhs 
)
friend

Definition at line 78 of file qchar.h.

◆ operator> [3/3]

constexpr friend bool operator> ( QLatin1Char  lhs,
QLatin1Char  rhs 
)
friend

Definition at line 64 of file qchar.h.

◆ operator>= [1/3]

constexpr friend bool operator>= ( char  lhs,
QLatin1Char  rhs 
)
friend

Definition at line 69 of file qchar.h.

◆ operator>= [2/3]

constexpr friend bool operator>= ( QLatin1Char  lhs,
char  rhs 
)
friend

Definition at line 76 of file qchar.h.

◆ operator>= [3/3]

constexpr friend bool operator>= ( QLatin1Char  lhs,
QLatin1Char  rhs 
)
friend

Definition at line 62 of file qchar.h.


The documentation for this class was generated from the following files: