以下成員源於類 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 ) |
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 ().
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).
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.