QLatin1Char Struct

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

頭: #include <QLatin1Char>
qmake: QT += core

注意: 在此結構中的所有函數均 可重入 .

公共函數

QLatin1Char (char c )
char toLatin1 () const
ushort unicode () const

詳細描述

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

另請參閱 QChar , QLatin1String ,和 QString .

成員函數文檔編製

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.

char QLatin1Char:: toLatin1 () const

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

ushort QLatin1Char:: unicode () const

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