Obsolete Members for QChar

以下成員源於類 QChar 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共類型

(obsolete) enum Joining { Center, Dual, OtherJoining, Right }

公共函數

(obsolete) Joining joining () const
(obsolete) char toAscii () const

靜態公共成員

(obsolete) QChar fromAscii (char c )
(obsolete) Joining joining (uint ucs4 )

成員類型文檔編製

enum QChar:: Joining

This enum type defines the Unicode joining attributes. See the Unicode 標準 瞭解值的描述。

常量
QChar::Center 3
QChar::Dual 1
QChar::OtherJoining 0
QChar::Right 2

另請參閱 joining ().

成員函數文檔編製

[static] QChar QChar:: fromAscii ( char c )

Converts the ASCII character c to it's equivalent QChar 。這主要用於非國際化軟件。

替代是使用 QLatin1Char .

另請參閱 fromLatin1 () 和 unicode ().

Joining QChar:: joining () const

Returns information about the joining properties of the character (needed for certain languages such as Arabic).

[static] Joining QChar:: joining ( uint ucs4 )

這是重載函數。

Returns information about the joining properties of the UCS-4-encoded character specified by ucs4 (needed for certain languages such as Arabic).

char QChar:: toAscii () const

Returns the Latin-1 character value of the QChar , or 0 if the character is not representable.

The main purpose of this function is to preserve ASCII characters used in C strings. This is mainly useful for developers of non-internationalized software.

注意: It is not possible to distinguish a non-Latin 1 character from an ASCII 0 (NUL) character. Prefer to use unicode (), which does not have this ambiguity.

注意: This function does not check whether the character value is inside the valid range of US-ASCII.

另請參閱 toLatin1 () 和 unicode ().