Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QLatin1Char Class Reference

\inmodule QtCore \reentrant More...

#include <qchar.h>

+ Collaboration diagram for QLatin1Char:

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

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

Related Symbols

(Note that these are not member symbols.)

 operator""_L1 (char ch)
 

Detailed Description

\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.

See also
QChar, QLatin1StringView, QString

Definition at line 16 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 19 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 20 of file qchar.h.

Referenced by QAnyStringViewUtils::doesContain().

+ 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 21 of file qchar.h.

Referenced by rotateSlashesDotsAndMiddots(), and to_unicode().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator!= [1/3]

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

Definition at line 31 of file qchar.h.

◆ operator!= [2/3]

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

Definition at line 38 of file qchar.h.

◆ operator!= [3/3]

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

Definition at line 24 of file qchar.h.

◆ operator""_L1()

operator""_L1 ( char  ch)
related
Since
6.4

Literal operator that creates a QLatin1Char out of ch.

The following code creates a QLatin1Char:

auto ch = 'a'_L1;
See also
Qt::Literals::StringLiterals

Definition at line 630 of file qchar.h.

References ch.

◆ operator< [1/3]

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

Definition at line 34 of file qchar.h.

◆ operator< [2/3]

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

Definition at line 41 of file qchar.h.

◆ operator< [3/3]

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

Definition at line 27 of file qchar.h.

◆ operator<= [1/3]

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

Definition at line 32 of file qchar.h.

◆ operator<= [2/3]

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

Definition at line 39 of file qchar.h.

◆ operator<= [3/3]

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

Definition at line 25 of file qchar.h.

◆ operator== [1/3]

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

Definition at line 30 of file qchar.h.

◆ operator== [2/3]

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

Definition at line 37 of file qchar.h.

◆ operator== [3/3]

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

Definition at line 23 of file qchar.h.

◆ operator> [1/3]

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

Definition at line 35 of file qchar.h.

◆ operator> [2/3]

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

Definition at line 42 of file qchar.h.

◆ operator> [3/3]

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

Definition at line 28 of file qchar.h.

◆ operator>= [1/3]

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

Definition at line 33 of file qchar.h.

◆ operator>= [2/3]

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

Definition at line 40 of file qchar.h.

◆ operator>= [3/3]

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

Definition at line 26 of file qchar.h.


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