QChar 类

The QChar class provides a 16-bit Unicode character. 更多...

头: #include <QChar>

注意: 此类的所有函数 可重入 .

公共类型

enum Category { Mark_NonSpacing, Mark_SpacingCombining, Mark_Enclosing, Number_DecimalDigit, ..., NoCategory }
enum Decomposition { NoDecomposition, Canonical, Circle, Compat, ..., Wide }
enum Direction { DirAL, DirAN, DirB, DirBN, ..., DirWS }
enum Joining { Center, Dual, OtherJoining, Right }
enum SpecialCharacter { Null, Nbsp, ReplacementCharacter, ObjectReplacementCharacter, ..., LineSeparator }
enum UnicodeVersion { Unicode_1_1, Unicode_2_0, Unicode_2_1_2, Unicode_3_0, ..., Unicode_Unassigned }

公共函数

QChar ()
QChar (char ch )
QChar (uchar ch )
QChar (QLatin1Char ch )
QChar (uchar cell , uchar row )
QChar (ushort code )
QChar (short code )
QChar (uint code )
QChar (int code )
QChar (SpecialCharacter ch )
类别 category () const
uchar cell () const
unsigned char combiningClass () const
QString decomposition () const
Decomposition decompositionTag () const
int digitValue () const
方向 direction () const
bool hasMirrored () const
bool isDigit () const
bool isHighSurrogate () const
bool isLetter () const
bool isLetterOrNumber () const
bool isLowSurrogate () const
bool isLower () const
bool isMark () const
bool isNull () const
bool isNumber () const
bool isPrint () const
bool isPunct () const
bool isSpace () const
bool isSymbol () const
bool isTitleCase () const
bool isUpper () const
Joining joining () const
QChar mirroredChar () const
uchar row () const
char toAscii () const
QChar toCaseFolded () const
char toLatin1 () const
QChar toLower () const
QChar toTitleCase () const
QChar toUpper () const
ushort & unicode ()
ushort unicode () const
UnicodeVersion unicodeVersion () const

静态公共成员

类别 category (uint ucs4 )
类别 category (ushort ucs2 )
unsigned char combiningClass (uint ucs4 )
unsigned char combiningClass (ushort ucs2 )
UnicodeVersion currentUnicodeVersion ()
QString decomposition (uint ucs4 )
Decomposition decompositionTag (uint ucs4 )
int digitValue (ushort ucs2 )
int digitValue (uint ucs4 )
方向 direction (uint ucs4 )
方向 direction (ushort ucs2 )
QChar fromAscii (char c )
QChar fromLatin1 (char c )
ushort highSurrogate (uint ucs4 )
bool isHighSurrogate (uint ucs4 )
bool isLowSurrogate (uint ucs4 )
Joining joining (uint ucs4 )
Joining joining (ushort ucs2 )
ushort lowSurrogate (uint ucs4 )
uint mirroredChar (uint ucs4 )
ushort mirroredChar (ushort ucs2 )
bool requiresSurrogates (uint ucs4 )
uint surrogateToUcs4 (ushort high , ushort low )
uint surrogateToUcs4 (QChar high , QChar low )
uint toCaseFolded (uint ucs4 )
ushort toCaseFolded (ushort ucs2 )
uint toLower (uint ucs4 )
ushort toLower (ushort ucs2 )
uint toTitleCase (uint ucs4 )
ushort toTitleCase (ushort ucs2 )
uint toUpper (uint ucs4 )
ushort toUpper (ushort ucs2 )
UnicodeVersion unicodeVersion (uint ucs4 )
UnicodeVersion unicodeVersion (ushort ucs2 )
bool operator!= (QChar c1 , QChar c2 )
bool operator< (QChar c1 , QChar c2 )
QDataStream & operator<< (QDataStream & out , const QChar & chr )
bool operator<= (QChar c1 , QChar c2 )
bool operator== (QChar c1 , QChar c2 )
bool operator> (QChar c1 , QChar c2 )
bool operator>= (QChar c1 , QChar c2 )
QDataStream & operator>> (QDataStream & in , QChar & chr )

详细描述

The QChar class provides a 16-bit Unicode character.

In Qt, Unicode characters are 16-bit entities without any markup or structure. This class represents such an entity. It is lightweight, so it can be used everywhere. Most compilers treat it like a unsigned short .

QChar provides a full complement of testing/classification functions, converting to and from other formats, converting from composed to decomposed Unicode, and trying to compare and case-convert if you ask it to.

The classification functions include functions like those in the standard C++ header <cctype> (formerly <ctype.h>), but operating on the full range of Unicode characters. They all return true if the character is a certain type of character; otherwise they return false. These classification functions are isNull () (returns true if the character is '\0'), isPrint () (true if the character is any sort of printable character, including whitespace), isPunct () (any sort of punctation), isMark () (Unicode 标记), isLetter () (字母), isNumber () (任意排序的数字字符,不仅仅 0-9), isLetterOrNumber (),和 isDigit () (decimal digits). All of these are wrappers around category () which return the Unicode-defined category of each character.

QChar 还提供 direction (), which indicates the "natural" writing direction of this character. The joining () function indicates how the character joins with its neighbors (needed mostly for Arabic) and finally hasMirrored (), which indicates whether the character needs to be mirrored when it is printed in its "unnatural" writing direction.

Composed Unicode characters (like å) can be converted to decomposed Unicode ("a" followed by "ring above") by using decomposition ().

In Unicode, comparison is not necessarily possible and case conversion is very difficult at best. Unicode, covering the "entire" world, also includes most of the world's case and sorting problems. operator==() and friends will do comparison based purely on the numeric Unicode value (code point) of the characters, and toUpper () 和 toLower () will do case changes when the character has a well-defined uppercase/lowercase equivalent. For locale-dependent comparisons, use QString::localeAwareCompare ().

转换函数包括 unicode () (到标量)、 toLatin1 () (到标量,但将所有非 Latin-1 字符转换成 0)、 row () (给出 Unicode 行)、 cell () (给出 Unicode 单元格)、 digitValue () (给出任意多数字字符的整数值)、及大量构造函数。

QChar provides constructors and cast operators that make it easy to convert to and from traditional 8-bit char 。若有定义 QT_NO_CAST_FROM_ASCII and QT_NO_CAST_TO_ASCII ,作为解释在 QString 文档编制,将需要明确调用 fromAscii () 或 fromLatin1 (),或使用 QLatin1Char , to construct a QChar from an 8-bit char ,和将需要调用 toAscii () 或 toLatin1 () 以获得 8 位值。

另请参阅 QString , Unicode ,和 QLatin1Char .

成员类型文档编制

enum QChar:: Category

此枚举映射 Unicode 字符类别。

以下是 Unicode 规范字符:

常量 描述
QChar::Mark_NonSpacing 1 Unicode 类名 Mn
QChar::Mark_SpacingCombining 2 Unicode 类名 Mc
QChar::Mark_Enclosing 3 Unicode 类名 Me
QChar::Number_DecimalDigit 4 Unicode 类名 Nd
QChar::Number_Letter 5 Unicode 类名 Nl
QChar::Number_Other 6 Unicode 类名 No
QChar::Separator_Space 7 Unicode 类名 Zs
QChar::Separator_Line 8 Unicode 类名 Zl
QChar::Separator_Paragraph 9 Unicode 类名 Zp
QChar::Other_Control 10 Unicode 类名 Cc
QChar::Other_Format 11 Unicode 类名 Cf
QChar::Other_Surrogate 12 Unicode 类名 Cs
QChar::Other_PrivateUse 13 Unicode 类名 Co
QChar::Other_NotAssigned 14 Unicode 类名 Cn

以下是 Unicode 情报类别:

常量 描述
QChar::Letter_Uppercase 15 Unicode 类名 Lu
QChar::Letter_Lowercase 16 Unicode 类名 Ll
QChar::Letter_Titlecase 17 Unicode 类名 Lt
QChar::Letter_Modifier 18 Unicode 类名 Lm
QChar::Letter_Other 19 Unicode 类名 Lo
QChar::Punctuation_Connector 20 Unicode 类名 Pc
QChar::Punctuation_Dash 21 Unicode 类名 Pd
QChar::Punctuation_Open 22 Unicode 类名 Ps
QChar::Punctuation_Close 23 Unicode 类名 Pe
QChar::Punctuation_InitialQuote 24 Unicode 类名 Pi
QChar::Punctuation_FinalQuote 25 Unicode 类名 Pf
QChar::Punctuation_Other 26 Unicode 类名 Po
QChar::Symbol_Math 27 Unicode 类名 Sm
QChar::Symbol_Currency 28 Unicode 类名 Sc
QChar::Symbol_Modifier 29 Unicode 类名 Sk
QChar::Symbol_Other 30 Unicode 类名 So
QChar::NoCategory 0 Qt cannot find an appropriate category for the character.

另请参阅 category ().

enum QChar:: Decomposition

此枚举类型定义 Unicode 分解属性。见 Unicode 标准 了解值的描述。

常量
QChar::NoDecomposition 0
QChar::Canonical 1
QChar::Circle 8
QChar::Compat 16
QChar::Final 6
QChar::Font 2
QChar::Fraction 17
QChar::Initial 4
QChar::Isolated 7
QChar::Medial 5
QChar::Narrow 13
QChar::NoBreak 3
QChar::Small 14
QChar::Square 15
QChar::Sub 10
QChar::Super 9
QChar::Vertical 11
QChar::Wide 12

另请参阅 decomposition ().

enum QChar:: Direction

此枚举类型定义 Unicode 方向属性。见 Unicode 标准 了解值的描述。

为符合 C/C++ 命名约定,在 Unicode 标准使用的代码前置 Dir。

常量
QChar::DirAL 13
QChar::DirAN 5
QChar::DirB 7
QChar::DirBN 18
QChar::DirCS 6
QChar::DirEN 2
QChar::DirES 3
QChar::DirET 4
QChar::DirL 0
QChar::DirLRE 11
QChar::DirLRO 12
QChar::DirNSM 17
QChar::DirON 10
QChar::DirPDF 16
QChar::DirR 1
QChar::DirRLE 14
QChar::DirRLO 15
QChar::DirS 8
QChar::DirWS 9

另请参阅 direction ().

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

enum QChar:: SpecialCharacter

常量 描述
QChar::Null 0x0000 A QChar 具有此值 isNull ().
QChar::Nbsp 0x00a0 不间断空格。
QChar::ReplacementCharacter 0xfffd The character shown when a font has no glyph for a certain codepoint. A special question mark character is often used. Codecs use this codepoint when input data cannot be represented in Unicode.
QChar::ObjectReplacementCharacter 0xfffc Used to represent an object such as an image when such objects cannot be presented.
QChar::ByteOrderMark 0xfeff
QChar::ByteOrderSwapped 0xfffe
QChar::ParagraphSeparator 0x2029
QChar::LineSeparator 0x2028

enum QChar:: UnicodeVersion

指定哪个版本的 Unicode 标准 引入某个字符。

常量 描述
QChar::Unicode_1_1 1 版本 1.1
QChar::Unicode_2_0 2 版本 2.0
QChar::Unicode_2_1_2 3 版本 2.1.2
QChar::Unicode_3_0 4 版本 3.0
QChar::Unicode_3_1 5 版本 3.1
QChar::Unicode_3_2 6 版本 3.2
QChar::Unicode_4_0 7 版本 4.0
QChar::Unicode_4_1 8 版本 4.1
QChar::Unicode_5_0 9 版本 5.0
QChar::Unicode_Unassigned 0 The value is not assigned to any character in version 5.0 of Unicode.

另请参阅 unicodeVersion ().

成员函数文档编制

QChar:: QChar ()

Constructs a null QChar ('\0').

另请参阅 isNull ().

QChar:: QChar ( char ch )

构造 QChar corresponding to ASCII/Latin-1 character ch .

QChar:: QChar ( uchar ch )

构造 QChar corresponding to ASCII/Latin-1 character ch .

QChar:: QChar ( QLatin1Char ch )

构造 QChar corresponding to ASCII/Latin-1 character ch .

QChar:: QChar ( uchar cell , uchar row )

构造 QChar for Unicode cell cell 按行 row .

另请参阅 cell () 和 row ().

QChar:: QChar ( ushort code )

构造 QChar for the character with Unicode code point code .

QChar:: QChar ( short code )

构造 QChar for the character with Unicode code point code .

QChar:: QChar ( uint code )

构造 QChar for the character with Unicode code point code .

QChar:: QChar ( int code )

构造 QChar for the character with Unicode code point code .

QChar:: QChar ( SpecialCharacter ch )

构造 QChar for the predefined character value ch .

Category QChar:: category () const

返回字符类别。

[static] Category QChar:: category ( uint ucs4 )

这是重载函数。

返回的 UCS-4 编码字符类别指定通过 ucs4 .

该函数在 Qt 4.3 引入。

[static] Category QChar:: category ( ushort ucs2 )

这是重载函数。

Returns the category of the UCS-2-encoded character specified by ucs2 .

uchar QChar:: cell () const

返回 Unicode 字符单元格 (最低有效字节)。

另请参阅 row ().

unsigned char QChar:: combiningClass () const

Returns the combining class for the character as defined in the Unicode standard. This is mainly useful as a positioning hint for marks attached to a base character.

The Qt text rendering engine uses this information to correctly position non-spacing marks around a base character.

[static] unsigned char QChar:: combiningClass ( uint ucs4 )

这是重载函数。

返回 UCS-4 编码字符组合类指定通过 ucs4 ,如 Unicode 标准定义的。

[static] unsigned char QChar:: combiningClass ( ushort ucs2 )

这是重载函数。

Returns the combining class for the UCS-2-encoded character specified by ucs2 ,如 Unicode 标准定义的。

[static] UnicodeVersion QChar:: currentUnicodeVersion ()

返回最近支持的 Unicode 版本。

该函数在 Qt 4.8 引入。

QString QChar:: decomposition () const

Decomposes a character into its parts. Returns an empty string if no decomposition exists.

[static] QString QChar:: decomposition ( uint ucs4 )

这是重载函数。

分解 UCS-4 编码字符指定通过 ucs4 into its constituent parts. Returns an empty string if no decomposition exists.

Decomposition QChar:: decompositionTag () const

返回字符合成定义标签。返回 QChar::Single 若不存在分解。

[static] Decomposition QChar:: decompositionTag ( uint ucs4 )

这是重载函数。

返回 UCS-4 编码字符合成定义标签指定通过 ucs4 。返回 QChar::Single 若不存在分解。

int QChar:: digitValue () const

返回数字的数值,或 -1 若字符不是数字。

[static] int QChar:: digitValue ( ushort ucs2 )

这是重载函数。

Returns the numeric value of the digit, specified by the UCS-2-encoded character, ucs2 ,或 -1 若字符不是数字。

[static] int QChar:: digitValue ( uint ucs4 )

这是重载函数。

返回数字的数值指定通过 UCS-4 编码字符 ucs4 ,或 -1 若字符不是数字。

Direction QChar:: direction () const

返回字符方向。

[static] Direction QChar:: direction ( uint ucs4 )

这是重载函数。

返回 UCS-4 编码字符方向指定通过 ucs4 .

[static] Direction QChar:: direction ( ushort ucs2 )

这是重载函数。

Returns the direction of the UCS-2-encoded character specified by ucs2 .

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

Converts the ASCII character c 到其等价 QChar 。这主要用于非国际化软件。

替代是使用 QLatin1Char .

另请参阅 fromLatin1 (), unicode (),和 QTextCodec::codecForCStrings ().

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

转换 Latin-1 字符 c 到其等价 QChar 。这主要用于非国际化软件。

另请参阅 fromAscii (), unicode (),和 QTextCodec::codecForCStrings ().

bool QChar:: hasMirrored () const

Returns true if the character should be reversed if the text direction is reversed; otherwise returns false.

Same as (ch. mirroredChar () != ch).

另请参阅 mirroredChar ().

[static] ushort QChar:: highSurrogate ( uint ucs4 )

Returns the high surrogate value of a ucs4 code point. The returned result is undefined if ucs4 is smaller than 0x10000.

bool QChar:: isDigit () const

Returns true if the character is a decimal digit ( Number_DecimalDigit ); otherwise returns false.

bool QChar:: isHighSurrogate () const

返回 true 若 QChar is the high part of a utf16 surrogate (ie. if its code point is between 0xd800 and 0xdbff, inclusive).

[static] bool QChar:: isHighSurrogate ( uint ucs4 )

Returns true if the UCS-4-encoded character specified by ucs4 is the high part of a utf16 surrogate (ie. if its code point is between 0xd800 and 0xdbff, inclusive).

该函数在 Qt 4.7 引入。

bool QChar:: isLetter () const

Returns true if the character is a letter (Letter_* categories); otherwise returns false.

bool QChar:: isLetterOrNumber () const

Returns true if the character is a letter or number (Letter_* or Number_ * categories); otherwise returns false.

bool QChar:: isLowSurrogate () const

返回 true 若 QChar is the low part of a utf16 surrogate (ie. if its code point is between 0xdc00 and 0xdfff, inclusive).

[static] bool QChar:: isLowSurrogate ( uint ucs4 )

Returns true if the UCS-4-encoded character specified by ucs4 is the low part of a utf16 surrogate (ie. if its code point is between 0xdc00 and 0xdfff, inclusive).

该函数在 Qt 4.7 引入。

bool QChar:: isLower () const

Returns true if the character is a lowercase letter, i.e. category () 是 Letter_Lowercase .

另请参阅 isUpper (), toLower (),和 toUpper ().

bool QChar:: isMark () const

Returns true if the character is a mark (Mark_* categories); otherwise returns false.

QChar::Category 了解一般标记的更多信息。

bool QChar:: isNull () const

Returns true if the character is the Unicode character 0x0000 ('\0'); otherwise returns false.

bool QChar:: isNumber () const

Returns true if the character is a number ( Number_ * categories, not just 0-9); otherwise returns false.

另请参阅 isDigit ().

bool QChar:: isPrint () const

Returns true if the character is a printable character; otherwise returns false. This is any character not of category Cc or Cn.

Note that this gives no indication of whether the character is available in a particular font.

bool QChar:: isPunct () const

Returns true if the character is a punctuation mark (Punctuation_* categories); otherwise returns false.

bool QChar:: isSpace () const

Returns true if the character is a separator character (Separator_* categories); otherwise returns false.

bool QChar:: isSymbol () const

Returns true if the character is a symbol (Symbol_* categories); otherwise returns false.

bool QChar:: isTitleCase () const

Returns true if the character is a titlecase letter, i.e. category () 是 Letter_Titlecase .

该函数在 Qt 4.3 引入。

另请参阅 isLower (), toUpper (), toLower (),和 toTitleCase ().

bool QChar:: isUpper () const

Returns true if the character is an uppercase letter, i.e. category () 是 Letter_Uppercase .

另请参阅 isLower (), toUpper (),和 toLower ().

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

[static] Joining QChar:: joining ( ushort ucs2 )

这是重载函数。

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

[static] ushort QChar:: lowSurrogate ( uint ucs4 )

Returns the low surrogate value of a ucs4 code point. The returned result is undefined if ucs4 is smaller than 0x10000.

QChar QChar:: mirroredChar () const

Returns the mirrored character if this character is a mirrored character; otherwise returns the character itself.

另请参阅 hasMirrored ().

[static] uint QChar:: mirroredChar ( uint ucs4 )

这是重载函数。

Returns the mirrored character if the UCS-4-encoded character specified by ucs4 is a mirrored character; otherwise returns the character itself.

另请参阅 hasMirrored ().

[static] ushort QChar:: mirroredChar ( ushort ucs2 )

这是重载函数。

Returns the mirrored character if the UCS-2-encoded character specified by ucs2 is a mirrored character; otherwise returns the character itself.

另请参阅 hasMirrored ().

[static] bool QChar:: requiresSurrogates ( uint ucs4 )

Returns true if the UCS-4-encoded character specified by ucs4 can be split into the high and low parts of a utf16 surrogate (ie. if its code point is greater than or equals to 0x10000).

该函数在 Qt 4.7 引入。

uchar QChar:: row () const

Returns the row (most significant byte) of the Unicode character.

另请参阅 cell ().

[static] uint QChar:: surrogateToUcs4 ( ushort high , ushort low )

转换 UTF16 代理对采用给定 high and low values to its UCS-4 code point.

[static] uint QChar:: surrogateToUcs4 ( QChar high , QChar low )

Converts a utf16 surrogate pair ( high , low ) to its ucs4 code point.

char QChar:: toAscii () const

Returns the character value of the QChar obtained using the current codec used to read C strings, or 0 if the character is not representable using this codec. The default codec handles Latin-1 encoded text, but this can be changed to assist developers writing source code using other encodings.

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.

另请参阅 toLatin1 (), unicode (),和 QTextCodec::codecForCStrings ().

QChar QChar:: toCaseFolded () const

Returns the case folded equivalent of the character. For most Unicode characters this is the same as toLowerCase().

[static] uint QChar:: toCaseFolded ( uint ucs4 )

这是重载函数。

Returns the case folded equivalent of the UCS-4-encoded character specified by ucs4 . For most Unicode characters this is the same as toLowerCase().

[static] ushort QChar:: toCaseFolded ( ushort ucs2 )

这是重载函数。

Returns the case folded equivalent of the UCS-2-encoded character specified by ucs2 . For most Unicode characters this is the same as toLowerCase().

char QChar:: toLatin1 () const

返回的 Latin-1 字符相当于 QChar ,或 0。这主要用于非国际化软件。

另请参阅 toAscii (), unicode (),和 QTextCodec::codecForCStrings ().

QChar QChar:: toLower () const

Returns the lowercase equivalent if the character is uppercase or titlecase; otherwise returns the character itself.

[static] uint QChar:: toLower ( uint ucs4 )

这是重载函数。

Returns the lowercase equivalent of the UCS-4-encoded character specified by ucs4 if the character is uppercase or titlecase; otherwise returns the character itself.

[static] ushort QChar:: toLower ( ushort ucs2 )

这是重载函数。

Returns the lowercase equivalent of the UCS-2-encoded character specified by ucs2 if the character is uppercase or titlecase; otherwise returns the character itself.

QChar QChar:: toTitleCase () const

Returns the title case equivalent if the character is lowercase or uppercase; otherwise returns the character itself.

[static] uint QChar:: toTitleCase ( uint ucs4 )

这是重载函数。

Returns the title case equivalent of the UCS-4-encoded character specified by ucs4 if the character is lowercase or uppercase; otherwise returns the character itself.

[static] ushort QChar:: toTitleCase ( ushort ucs2 )

这是重载函数。

Returns the title case equivalent of the UCS-2-encoded character specified by ucs2 if the character is lowercase or uppercase; otherwise returns the character itself.

QChar QChar:: toUpper () const

Returns the uppercase equivalent if the character is lowercase or titlecase; otherwise returns the character itself.

[static] uint QChar:: toUpper ( uint ucs4 )

这是重载函数。

返回 UCS-4 编码字符的大写等价,指定通过 ucs4 若字符为小写 (或标题大小写);否则,返回字符自身。

[static] ushort QChar:: toUpper ( ushort ucs2 )

这是重载函数。

Returns the uppercase equivalent of the UCS-2-encoded character specified by ucs2 若字符为小写 (或标题大小写);否则,返回字符自身。

ushort & QChar:: unicode ()

返回数值 Unicode 值的引用对于 QChar .

ushort QChar:: unicode () const

这是重载函数。

UnicodeVersion QChar:: unicodeVersion () const

返回引入此字符的 Unicode 版本。

[static] UnicodeVersion QChar:: unicodeVersion ( uint ucs4 )

这是重载函数。

返回引入字符的 Unicode 版本, UCS-4 编码形式的指定为 ucs4 .

[static] UnicodeVersion QChar:: unicodeVersion ( ushort ucs2 )

这是重载函数。

Returns the Unicode version that introduced the character specified in its UCS-2-encoded form as ucs2 .

相关非成员

bool operator!= ( QChar c1 , QChar c2 )

返回 true 若 c1 and c2 are not the same Unicode character; otherwise returns false.

bool operator< ( QChar c1 , QChar c2 )

Returns true if the numeric Unicode value of c1 小于 c2 ;否则返回 false。

QDataStream & operator<< ( QDataStream & out , const QChar & chr )

写入字符 chr 到流 out .

另请参阅 序列化 Qt 数据类型 .

bool operator<= ( QChar c1 , QChar c2 )

Returns true if the numeric Unicode value of c1 <= c2 ;否则返回 false。

bool operator== ( QChar c1 , QChar c2 )

返回 true 若 c1 and c2 are the same Unicode character; otherwise returns false.

bool operator> ( QChar c1 , QChar c2 )

Returns true if the numeric Unicode value of c1 大于 c2 ;否则返回 false。

bool operator>= ( QChar c1 , QChar c2 )

Returns true if the numeric Unicode value of c1 >= c2 ;否则返回 false。

QDataStream & operator>> ( QDataStream & in , QChar & chr )

读取字符从流 in 到字符 chr .

另请参阅 序列化 Qt 数据类型 .