Obsolete Members for QChar

以下成员源于类 QChar 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共类型

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

公共函数

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

静态公共成员

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

成员类型文档编制

enum QChar:: Joining

This enum is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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 ().

QChar::Joining QChar:: joining () const

此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

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

[static] QChar::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 ().