Qt 4.8
|
The QChar class provides a 16-bit Unicode character. More...
#include <qchar.h>
Public Functions | |
Category | category () const |
Returns the character's category. More... | |
uchar | cell () const |
Returns the cell (least significant byte) of the Unicode character. More... | |
unsigned char | combiningClass () const |
Returns the combining class for the character as defined in the Unicode standard. More... | |
QString | decomposition () const |
Decomposes a character into its parts. More... | |
Decomposition | decompositionTag () const |
Returns the tag defining the composition of the character. More... | |
int | digitValue () const |
Returns the numeric value of the digit, or -1 if the character is not a digit. More... | |
Direction | direction () const |
Returns the character's direction. More... | |
bool | hasMirrored () const |
Returns true if the character should be reversed if the text direction is reversed; otherwise returns false. More... | |
bool | isDigit () const |
Returns true if the character is a decimal digit (Number_DecimalDigit); otherwise returns false. More... | |
bool | isHighSurrogate () const |
Returns true if the QChar is the high part of a utf16 surrogate (ie. More... | |
bool | isLetter () const |
Returns true if the character is a letter (Letter_* categories); otherwise returns false. More... | |
bool | isLetterOrNumber () const |
Returns true if the character is a letter or number (Letter_* or Number_* categories); otherwise returns false. More... | |
bool | isLower () const |
Returns true if the character is a lowercase letter, i. More... | |
bool | isLowSurrogate () const |
Returns true if the QChar is the low part of a utf16 surrogate (ie. More... | |
bool | isMark () const |
Returns true if the character is a mark (Mark_* categories); otherwise returns false. More... | |
bool | isNull () const |
Returns true if the character is the Unicode character 0x0000 ('\0'); otherwise returns false. More... | |
bool | isNumber () const |
Returns true if the character is a number (Number_* categories, not just 0-9); otherwise returns false. More... | |
bool | isPrint () const |
Returns true if the character is a printable character; otherwise returns false. More... | |
bool | isPunct () const |
Returns true if the character is a punctuation mark (Punctuation_* categories); otherwise returns false. More... | |
bool | isSpace () const |
Returns true if the character is a separator character (Separator_* categories); otherwise returns false. More... | |
bool | isSymbol () const |
Returns true if the character is a symbol (Symbol_* categories); otherwise returns false. More... | |
bool | isTitleCase () const |
Returns true if the character is a titlecase letter, i. More... | |
bool | isUpper () const |
Returns true if the character is an uppercase letter, i. More... | |
Joining | joining () const |
Returns information about the joining properties of the character (needed for certain languages such as Arabic). More... | |
QChar | mirroredChar () const |
Returns the mirrored character if this character is a mirrored character; otherwise returns the character itself. More... | |
QChar () | |
Constructs a null QChar ('\0'). More... | |
QT_ASCII_CAST_WARN_CONSTRUCTOR | QChar (char c) |
Constructs a QChar corresponding to ASCII/Latin-1 character ch. More... | |
QT_ASCII_CAST_WARN_CONSTRUCTOR | QChar (uchar c) |
Constructs a QChar corresponding to ASCII/Latin-1 character ch. More... | |
QChar (QLatin1Char ch) | |
Constructs a QChar corresponding to ASCII/Latin-1 character ch. More... | |
QChar (uchar c, uchar r) | |
Constructs a QChar for Unicode cell cell in row row. More... | |
QChar (ushort rc) | |
Constructs a QChar for the character with Unicode code point code. More... | |
QChar (short rc) | |
Constructs a QChar for the character with Unicode code point code. More... | |
QChar (uint rc) | |
Constructs a QChar for the character with Unicode code point code. More... | |
QChar (int rc) | |
Constructs a QChar for the character with Unicode code point code. More... | |
QChar (SpecialCharacter sc) | |
Constructs a QChar for the predefined character value ch. More... | |
uchar | row () const |
Returns the row (most significant byte) of the Unicode character. More... | |
void | setCell (uchar cell) |
void | setRow (uchar row) |
char | 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. More... | |
QChar | toCaseFolded () const |
Returns the case folded equivalent of the character. More... | |
char | toLatin1 () const |
Returns the Latin-1 character equivalent to the QChar, or 0. More... | |
QChar | toLower () const |
Returns the lowercase equivalent if the character is uppercase or titlecase; otherwise returns the character itself. More... | |
QChar | toTitleCase () const |
Returns the title case equivalent if the character is lowercase or uppercase; otherwise returns the character itself. More... | |
QChar | toUpper () const |
Returns the uppercase equivalent if the character is lowercase or titlecase; otherwise returns the character itself. More... | |
ushort | unicode () const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
ushort & | unicode () |
Returns a reference to the numeric Unicode value of the QChar. More... | |
UnicodeVersion | unicodeVersion () const |
Returns the Unicode version that introduced this character. More... | |
Static Public Functions | |
static Category QT_FASTCALL | category (uint ucs4) |
Returns the category of the UCS-4-encoded character specified by ucs4. More... | |
static Category QT_FASTCALL | category (ushort ucs2) |
Returns the category of the UCS-2-encoded character specified by ucs2. More... | |
static unsigned char QT_FASTCALL | combiningClass (uint ucs4) |
Returns the combining class for the UCS-4-encoded character specified by ucs4, as defined in the Unicode standard. More... | |
static unsigned char QT_FASTCALL | combiningClass (ushort ucs2) |
Returns the combining class for the UCS-2-encoded character specified by ucs2, as defined in the Unicode standard. More... | |
static UnicodeVersion QT_FASTCALL | currentUnicodeVersion () |
Returns the most recent supported Unicode version. More... | |
static QString QT_FASTCALL | decomposition (uint ucs4) |
Decomposes the UCS-4-encoded character specified by ucs4 into its constituent parts. More... | |
static Decomposition QT_FASTCALL | decompositionTag (uint ucs4) |
Returns the tag defining the composition of the UCS-4-encoded character specified by ucs4. More... | |
static int QT_FASTCALL | digitValue (uint ucs4) |
Returns the numeric value of the digit specified by the UCS-4-encoded character, ucs4, or -1 if the character is not a digit. More... | |
static int QT_FASTCALL | digitValue (ushort ucs2) |
Returns the numeric value of the digit, specified by the UCS-2-encoded character, ucs2, or -1 if the character is not a digit. More... | |
static Direction QT_FASTCALL | direction (uint ucs4) |
Returns the direction of the UCS-4-encoded character specified by ucs4. More... | |
static Direction QT_FASTCALL | direction (ushort ucs2) |
Returns the direction of the UCS-2-encoded character specified by ucs2. More... | |
static QChar | fromAscii (char c) |
Converts the ASCII character c to its equivalent QChar. More... | |
static QChar | fromLatin1 (char c) |
Converts the Latin-1 character c to its equivalent QChar. More... | |
static ushort | highSurrogate (uint ucs4) |
Returns the high surrogate value of a ucs4 code point. More... | |
static bool | isHighSurrogate (uint ucs4) |
Returns true if the UCS-4-encoded character specified by ucs4 is the high part of a utf16 surrogate (ie. More... | |
static bool | isLowSurrogate (uint ucs4) |
Returns true if the UCS-4-encoded character specified by ucs4 is the low part of a utf16 surrogate (ie. More... | |
static Joining QT_FASTCALL | 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). More... | |
static Joining QT_FASTCALL | 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). More... | |
static ushort | lowSurrogate (uint ucs4) |
Returns the low surrogate value of a ucs4 code point. More... | |
static uint QT_FASTCALL | 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. More... | |
static ushort QT_FASTCALL | 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. More... | |
static bool | 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. More... | |
static uint | surrogateToUcs4 (ushort high, ushort low) |
Converts a UTF16 surrogate pair with the given high and low values to its UCS-4 code point. More... | |
static uint | surrogateToUcs4 (QChar high, QChar low) |
Converts a utf16 surrogate pair (high, low) to its ucs4 code point. More... | |
static uint QT_FASTCALL | toCaseFolded (uint ucs4) |
Returns the case folded equivalent of the UCS-4-encoded character specified by ucs4. More... | |
static ushort QT_FASTCALL | toCaseFolded (ushort ucs2) |
Returns the case folded equivalent of the UCS-2-encoded character specified by ucs2. More... | |
static uint QT_FASTCALL | 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. More... | |
static ushort QT_FASTCALL | 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. More... | |
static uint QT_FASTCALL | 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. More... | |
static ushort QT_FASTCALL | 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. More... | |
static uint QT_FASTCALL | toUpper (uint ucs4) |
Returns the uppercase equivalent of the UCS-4-encoded character specified by ucs4 if the character is lowercase or titlecase; otherwise returns the character itself. More... | |
static ushort QT_FASTCALL | toUpper (ushort ucs2) |
Returns the uppercase equivalent of the UCS-2-encoded character specified by ucs2 if the character is lowercase or titlecase; otherwise returns the character itself. More... | |
static UnicodeVersion QT_FASTCALL | unicodeVersion (uint ucs4) |
Returns the Unicode version that introduced the character specified in its UCS-4-encoded form as ucs4. More... | |
static UnicodeVersion QT_FASTCALL | unicodeVersion (ushort ucs2) |
Returns the Unicode version that introduced the character specified in its UCS-2-encoded form as ucs2. More... | |
Properties | |
ushort | ucs |
Related Functions | |
(Note that these are not member functions.) | |
int | operator!= (QChar c1, QChar c2) |
Returns true if c1 and c2 are not the same Unicode character; otherwise returns false. More... | |
int | operator< (QChar c1, QChar c2) |
Returns true if the numeric Unicode value of c1 is less than that of c2; otherwise returns false. More... | |
QDataStream & | operator<< (QDataStream &out, const QChar &chr) |
Writes the char chr to the stream out. More... | |
int | operator<= (QChar c1, QChar c2) |
Returns true if the numeric Unicode value of c1 is less than or equal to that of c2; otherwise returns false. More... | |
bool | operator== (QChar c1, QChar c2) |
Returns true if c1 and c2 are the same Unicode character; otherwise returns false. More... | |
int | operator> (QChar c1, QChar c2) |
Returns true if the numeric Unicode value of c1 is greater than that of c2; otherwise returns false. More... | |
int | operator>= (QChar c1, QChar c2) |
Returns true if the numeric Unicode value of c1 is greater than or equal to that of c2; otherwise returns false. More... | |
QDataStream & | operator>> (QDataStream &in, QChar &chr) |
Reads a char from the stream in into char chr. More... | |
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 Mark), isLetter() (a letter), isNumber() (any sort of numeric character, not just 0-9), isLetterOrNumber(), and isDigit() (decimal digits). All of these are wrappers around category() which return the Unicode-defined category of each character.
QChar also provides 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() and toLower() will do case changes when the character has a well-defined uppercase/lowercase equivalent. For locale-dependent comparisons, use QString::localeAwareCompare().
The conversion functions include unicode() (to a scalar), toLatin1() (to scalar, but converts all non-Latin-1 characters to 0), row() (gives the Unicode row), cell() (gives the Unicode cell), digitValue() (gives the integer value of any of the numerous digit characters), and a host of constructors.
QChar provides constructors and cast operators that make it easy to convert to and from traditional 8-bit char
s. If you defined QT_NO_CAST_FROM_ASCII
and QT_NO_CAST_TO_ASCII
, as explained in the QString documentation, you will need to explicitly call fromAscii() or fromLatin1(), or use QLatin1Char, to construct a QChar from an 8-bit char
, and you will need to call toAscii() or toLatin1() to get the 8-bit value back.
enum QChar::Category |
This enum maps the Unicode character categories.
The following characters are normative in Unicode:
The following categories are informative in Unicode:
Definition at line 106 of file qchar.h.
This enum type defines names for some of the Unicode combining classes.
See the Unicode Standard for a description of the values.
Definition at line 187 of file qchar.h.
enum QChar::Decomposition |
This enum type defines the Unicode decomposition attributes.
See the Unicode Standard for a description of the values.
Enumerator | |
---|---|
NoDecomposition | |
Canonical | |
Font | |
NoBreak | |
Initial | |
Medial | |
Final | |
Isolated | |
Circle | |
Super | |
Sub | |
Vertical | |
Wide | |
Narrow | |
Small | |
Square | |
Compat | |
Fraction |
Definition at line 156 of file qchar.h.
enum QChar::Direction |
This enum type defines the Unicode direction attributes.
See the Unicode Standard for a description of the values.
In order to conform to C/C++ naming conventions "Dir" is prepended to the codes used in the Unicode Standard.
Enumerator | |
---|---|
DirL | |
DirR | |
DirEN | |
DirES | |
DirET | |
DirAN | |
DirCS | |
DirB | |
DirS | |
DirWS | |
DirON | |
DirLRE | |
DirLRO | |
DirAL | |
DirRLE | |
DirRLO | |
DirPDF | |
DirNSM | |
DirBN |
Definition at line 150 of file qchar.h.
enum QChar::Joining |
This enum type defines the Unicode joining attributes.
See the Unicode Standard for a description of the values.
Enumerator | |
---|---|
OtherJoining | |
Dual | |
Right | |
Center |
Enumerator | |
---|---|
Null | |
Nbsp | |
ReplacementCharacter | |
ObjectReplacementCharacter | |
ByteOrderMark | |
ByteOrderSwapped | |
ParagraphSeparator | |
LineSeparator |
Definition at line 85 of file qchar.h.
Specifies which version of the [Unicode standard](http://www.
unicode.org/) introduced a certain character.
Enumerator | |
---|---|
Unicode_Unassigned | |
Unicode_1_1 | |
Unicode_2_0 | |
Unicode_2_1_2 | |
Unicode_3_0 | |
Unicode_3_1 | |
Unicode_3_2 | |
Unicode_4_0 | |
Unicode_4_1 | |
Unicode_5_0 |
Definition at line 212 of file qchar.h.
|
inline |
Constructs a null QChar ('\0').
Definition at line 371 of file qchar.h.
Referenced by canonicalOrderHelper(), composeHelper(), decomposeHelper(), foldCase(), fromAscii(), and fromLatin1().
QChar::QChar | ( | char | c | ) |
Constructs a QChar corresponding to ASCII/Latin-1 character ch.
Definition at line 477 of file qchar.cpp.
QChar::QChar | ( | uchar | c | ) |
Constructs a QChar corresponding to ASCII/Latin-1 character ch.
Definition at line 491 of file qchar.cpp.
|
inline |
Constructs a QChar corresponding to ASCII/Latin-1 character ch.
Definition at line 385 of file qchar.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
QChar::Category QChar::category | ( | ) | const |
Returns the character's category.
Definition at line 853 of file qchar.cpp.
Referenced by arabicGroup(), QCharRef::category(), QFontMetrics::charWidth(), fastDetermineNameChar(), QDateTimeParser::findAmPm(), HB_GetUnicodeCharCategory(), heuristicSetGlyphAttributes(), QRegExpCharClass::in(), isDigit(), isLetter(), isLetterOrNumber(), isMark(), QPatternist::XQueryTokenizer::isNCNameBody(), QPatternist::XQueryTokenizer::isNCNameStart(), isNumber(), isPrint(), isPunct(), isSpace(), isSymbol(), QScriptDeclarativeClass::startsWithUpper(), QFontEngineMulti::stringToCMap(), QFontMetrics::width(), and QFontMetricsF::width().
|
static |
Returns the category of the UCS-4-encoded character specified by ucs4.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 866 of file qchar.cpp.
|
static |
Returns the category of the UCS-2-encoded character specified by ucs2.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 880 of file qchar.cpp.
|
inline |
Returns the cell (least significant byte) of the Unicode character.
Definition at line 283 of file qchar.h.
Referenced by QCharRef::cell(), QUtf16::convertFromUnicode(), QGbkCodec::convertFromUnicode(), QFontJis0208Codec::convertFromUnicode(), QEucJpCodec::convertFromUnicode(), QJisCodec::convertFromUnicode(), QSjisCodec::convertFromUnicode(), QGb2312Codec::convertFromUnicode(), QTsciiCodec::convertFromUnicode(), QFontBig5Codec::convertFromUnicode(), QFontBig5hkscsCodec::convertFromUnicode(), QFontKsc5601Codec::convertFromUnicode(), QFontGb18030_0Codec::convertFromUnicode(), heuristicSetGlyphAttributes(), QKeyMapperPrivate::isADeadKey(), QXmlSimpleReaderPrivate::parseContent(), QXmlSimpleReaderPrivate::parseReference(), set_text(), and QPatternist::XQueryTokenizer::tokenizeNumberLiteral().
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.
Definition at line 1153 of file qchar.cpp.
Referenced by QCharRef::combiningClass(), and HB_GetUnicodeCharCombiningClass().
|
static |
Returns the combining class for the UCS-4-encoded character specified by ucs4, as defined in the Unicode standard.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1166 of file qchar.cpp.
|
static |
Returns the combining class for the UCS-2-encoded character specified by ucs2, as defined in the Unicode standard.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1181 of file qchar.cpp.
|
static |
QString QChar::decomposition | ( | ) | const |
Decomposes a character into its parts.
Returns an empty string if no decomposition exists.
Definition at line 1096 of file qchar.cpp.
Referenced by QCharRef::decomposition(), and decompositionHelper().
Decomposes the UCS-4-encoded character specified by ucs4 into its constituent parts.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Returns an empty string if no decomposition exists.
Definition at line 1109 of file qchar.cpp.
QChar::Decomposition QChar::decompositionTag | ( | ) | const |
Returns the tag defining the composition of the character.
Returns QChar::Single if no decomposition exists.
Definition at line 1122 of file qchar.cpp.
Referenced by QCharRef::decompositionTag().
|
static |
Returns the tag defining the composition of the UCS-4-encoded character specified by ucs4.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Returns QChar::Single if no decomposition exists.
Definition at line 1135 of file qchar.cpp.
int QChar::digitValue | ( | ) | const |
Returns the numeric value of the digit, or -1 if the character is not a digit.
Definition at line 817 of file qchar.cpp.
Referenced by QCharRef::digitValue(), findArgEscapes(), QTextStreamPrivate::getNumber(), QLineControl::isValidInput(), QFileSystemModelPrivate::naturalCompare(), qt_mac_get_key(), QString::replace(), and replaceArgEscapes().
|
static |
Returns the numeric value of the digit specified by the UCS-4-encoded character, ucs4, or -1 if the character is not a digit.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 843 of file qchar.cpp.
|
static |
Returns the numeric value of the digit, specified by the UCS-2-encoded character, ucs2, or -1 if the character is not a digit.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 830 of file qchar.cpp.
QChar::Direction QChar::direction | ( | ) | const |
Returns the character's direction.
Definition at line 889 of file qchar.cpp.
Referenced by bidiItemize(), QCharRef::direction(), isStringRightToLeft(), skipBoundryNeutrals(), and QTextBlock::textDirection().
|
static |
Returns the direction of the UCS-4-encoded character specified by ucs4.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 901 of file qchar.cpp.
|
static |
Returns the direction of the UCS-2-encoded character specified by ucs2.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 915 of file qchar.cpp.
|
static |
Converts the ASCII character c to its equivalent QChar.
This is mainly useful for non-internationalized software.
An alternative is to use QLatin1Char.
Definition at line 1521 of file qchar.cpp.
Referenced by convert(), QAbstractConcatenable::convertFromAscii(), QString::isNull(), operator+(), QString::operator+=(), QTextStream::operator<<(), QString::operator=(), QCharRef::operator=(), and QHttpNetworkConnectionPrivate::prepareRequest().
|
inlinestatic |
Converts the Latin-1 character c to its equivalent QChar.
This is mainly useful for non-internationalized software.
Definition at line 378 of file qchar.h.
Referenced by QPatternist::AbstractDateTime::create(), QPatternist::Cardinality::displayName(), QMessageBoxPrivate::hideSpecial(), QAxBase::initializeRemote(), QLocalePrivate::longLongToString(), QPatternist::AbstractDateTime::parseZoneOffset(), qt_wce_insert_action(), qt_wce_rename_menu_item(), QPatternist::XSLTTokenizer::queueSimpleContentConstructor(), QSqlRelationalTableModel::selectStatement(), QTest::sendKeyEvent(), QPatternist::NamePool::toClarkName(), and QLocalePrivate::unsLongLongToString().
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).
Definition at line 968 of file qchar.cpp.
Referenced by QCharRef::hasMirrored().
Returns the high surrogate value of a ucs4 code point.
The returned result is undefined if ucs4 is smaller than 0x10000.
Definition at line 303 of file qchar.h.
Referenced by canonicalOrderHelper(), QUtf8::convertToUnicode(), QUtf32::convertToUnicode(), QKeySequencePrivate::encodeString(), QTextHtmlParser::parseEntity(), qt_string_normalize(), QFontEngineWin::recalcAdvances(), QRawFont::supportsCharacter(), and QPatternist::XQueryTokenizer::tokenizeCharacterReference().
bool QChar::isDigit | ( | ) | const |
Returns true if the character is a decimal digit (Number_DecimalDigit); otherwise returns false.
Definition at line 699 of file qchar.cpp.
Referenced by QTextStreamPrivate::getNumber(), QTextStreamPrivate::getReal(), QCharRef::isDigit(), QPatternist::DerivedString< TypeToken >::isNameChar(), QFileSystemModelPrivate::naturalCompare(), qt_mac_get_key(), and totalDigitsForDecimal().
|
inline |
Returns true if the QChar is the high part of a utf16 surrogate (ie.
if its code point is between 0xd800 and 0xdbff, inclusive).
Definition at line 276 of file qchar.h.
Referenced by atsuPostLayoutCallback(), QLineControl::backspace(), canonicalOrderHelper(), composeHelper(), QUtf8::convertFromUnicode(), QTextCursor::deletePreviousChar(), foldCase(), mapToLowerCase(), QFontEngineMulti::stringToCMap(), QString::toLower(), toUcs4_helper(), and QString::toUpper().
|
inlinestatic |
bool QChar::isLetter | ( | ) | const |
Returns true if the character is a letter (Letter_* categories); otherwise returns false.
Definition at line 653 of file qchar.cpp.
Referenced by QDeclarativeCompiler::checkValidId(), QScriptSyntaxHighlighter::highlightBlock(), QKeyMapperPrivate::isADeadKey(), isDirPath(), QFileSystemEntry::isDriveRoot(), QCharRef::isLetter(), QPatternist::DerivedString< TypeToken >::isNameChar(), isSignalPropertyName(), QLineControl::isValidInput(), QTranslator::load(), QFSFileEnginePrivate::longFileName(), QFileSystemEngine::nativeAbsoluteFilePath(), qt_mac_get_key(), QScriptDebuggerCodeView::setBreakpointEnabled(), QDirPrivate::setPath(), and QGtkStylePrivate::setupGtkFileChooser().
bool QChar::isLetterOrNumber | ( | ) | const |
Returns true if the character is a letter or number (Letter_* or Number_* categories); otherwise returns false.
Definition at line 681 of file qchar.cpp.
Referenced by QDir::addResourceSearchPath(), QDeclarativeCompiler::checkValidId(), findInBlock(), QDeclarativeJS::Lexer::isIdentLetter(), QCharRef::isLetterOrNumber(), QDateTimeEditPrivate::isSeparatorKey(), QLineControl::isValidInput(), and isWord().
|
inline |
Returns true if the character is a lowercase letter, i.
e. category() is Letter_Lowercase.
Definition at line 272 of file qchar.h.
Referenced by QFontMetrics::boundingRect(), QFontMetricsF::boundingRect(), QFontMetrics::charWidth(), QDeclarativeCompiler::checkValidId(), QCharRef::isLower(), QFontMetrics::leftBearing(), QFontMetricsF::leftBearing(), QFileSystemModelPrivate::naturalCompare(), qtKey2CocoaKey(), QFontMetrics::rightBearing(), QFontMetricsF::rightBearing(), QFontMetrics::width(), and QFontMetricsF::width().
|
inline |
Returns true if the QChar is the low part of a utf16 surrogate (ie.
if its code point is between 0xdc00 and 0xdfff, inclusive).
Definition at line 279 of file qchar.h.
Referenced by atsuPostLayoutCallback(), QLineControl::backspace(), canonicalOrderHelper(), composeHelper(), containsProhibitedOuptut(), QUtf8::convertFromUnicode(), QTextCursor::deletePreviousChar(), foldCase(), QFontEngineMulti::stringToCMap(), QString::toLower(), toUcs4_helper(), and QString::toUpper().
|
inlinestatic |
bool QChar::isMark | ( | ) | const |
Returns true if the character is a mark (Mark_* categories); otherwise returns false.
See QChar::Category for more information regarding marks.
Definition at line 625 of file qchar.cpp.
Referenced by QCharRef::isMark(), and isWord().
|
inline |
Returns true if the character is the Unicode character 0x0000 ('\0'); otherwise returns false.
Definition at line 262 of file qchar.h.
Referenced by QFontJis0208Codec::convertFromUnicode(), QFontKsc5601Codec::convertFromUnicode(), QKeySequencePrivate::encodeString(), QLineControl::findInMask(), QKeyMapperPrivate::isADeadKey(), QCharRef::isNull(), keySequenceToKeyEqivalent(), QFileSystemModelPrivate::naturalCompare(), QDeclarativeStyledTextPrivate::parse(), QDeclarativeStyledTextPrivate::parseAttribute(), QDeclarativeStyledTextPrivate::parseCloseTag(), QDeclarativeStyledTextPrivate::parseEntity(), QTextHtmlParser::parseEntity(), QDeclarativeStyledTextPrivate::parseFontAttributes(), QDeclarativeStyledTextPrivate::parseTag(), QDeclarativeStyledTextPrivate::parseValue(), qt_splitLocaleName(), QDateTimeParser::sectionFormat(), QDeclarativeStyledTextPrivate::skipSpace(), QPatternist::XQueryTokenizer::tokenizeCharacterReference(), QKeyMapperPrivate::translateKeyEvent(), and QSystemLocalePrivate::zeroDigit().
bool QChar::isNumber | ( | ) | const |
Returns true if the character is a number (Number_* categories, not just 0-9); otherwise returns false.
Definition at line 669 of file qchar.cpp.
Referenced by QScriptCompletionTaskPrivate::completeScriptExpression(), QScriptDebuggerCodeView::event(), QCharRef::isNumber(), QDateTimeEditPrivate::isSeparatorKey(), and QLineControl::isValidInput().
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.
Definition at line 598 of file qchar.cpp.
Referenced by QCharRef::isPrint(), QLineControl::isValidInput(), QTextControlPrivate::keyPressEvent(), QKeySequence::mnemonic(), QLineControl::processKeyEvent(), and QDoubleSpinBoxPrivate::validateAndInterpret().
bool QChar::isPunct | ( | ) | const |
Returns true if the character is a punctuation mark (Punctuation_* categories); otherwise returns false.
Definition at line 637 of file qchar.cpp.
Referenced by QCharRef::isPunct().
bool QChar::isSpace | ( | ) | const |
Returns true if the character is a separator character (Separator_* categories); otherwise returns false.
Definition at line 609 of file qchar.cpp.
Referenced by QTextHtmlImporter::appendNodeText(), QDateTimeParser::findDay(), QSqlDriver::formatValue(), QTextHtmlParserNode::hasOnlyWhitespace(), QCharRef::isSpace(), QPatternist::ProcessingInstructionConstructor::leftTrimmed(), Qt::mightBeRichText(), QFileSystemModelPrivate::naturalCompare(), QTextHtmlParser::newNode(), QPatternist::XQueryTokenizer::nextToken(), operator<<(), QDeclarativeDirParser::parse(), QDeclarativeStyledTextPrivate::parseCloseTag(), parseCombinedArgString(), QTextHtmlParser::parseEntity(), parseFontName(), parseNumbersArray(), parseNumbersList(), parsePathDataFast(), parsePercentageList(), QDateTimeParser::parseSection(), QDeclarativeStyledTextPrivate::parseTag(), parseTransformationMatrix(), QTextHtmlParser::parseWord(), QTextHtmlImporter::processSpecialNodes(), qt_set_x11_resources(), QTextStreamPrivate::scan(), QString::simplified(), QDeclarativeStyledTextPrivate::skipSpace(), QString::trimmed(), QDoubleSpinBoxPrivate::validateAndInterpret(), and QXmlStreamWriterPrivate::writeEscaped().
bool QChar::isSymbol | ( | ) | const |
Returns true if the character is a symbol (Symbol_* categories); otherwise returns false.
Definition at line 709 of file qchar.cpp.
Referenced by qt_mac_get_key().
|
inline |
Returns true if the character is a titlecase letter, i.
e. category() is Letter_Titlecase.
Definition at line 274 of file qchar.h.
Referenced by QCharRef::isTitleCase().
|
inline |
Returns true if the character is an uppercase letter, i.
e. category() is Letter_Uppercase.
Definition at line 273 of file qchar.h.
Referenced by QDeclarativeCompiler::buildDynamicMeta(), QDeclarativeCompiler::checkDynamicMeta(), QDeclarativeConnectionsParser::compile(), QDeclarativeScriptParser::extractMetaData(), getFmtString(), QScriptSyntaxHighlighter::highlightWord(), QDeclarativePropertyPrivate::initProperty(), QSettingsPrivate::iniUnescapedKey(), isSignalPropertyName(), QCharRef::isUpper(), QDeclarativeBindingCompilerPrivate::parseName(), qDBusGenerateMetaObjectXml(), and qDBusInterfaceFromMetaObject().
QChar::Joining QChar::joining | ( | ) | const |
Returns information about the joining properties of the character (needed for certain languages such as Arabic).
Definition at line 924 of file qchar.cpp.
Referenced by QCharRef::joining().
|
static |
Returns information about the joining properties of the UCS-4-encoded character specified by ucs4 (needed for certain languages such as Arabic).
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 938 of file qchar.cpp.
|
static |
Returns information about the joining properties of the UCS-2-encoded character specified by ucs2 (needed for certain languages such as Arabic).
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 954 of file qchar.cpp.
Returns the low surrogate value of a ucs4 code point.
The returned result is undefined if ucs4 is smaller than 0x10000.
Definition at line 306 of file qchar.h.
Referenced by canonicalOrderHelper(), QUtf8::convertToUnicode(), QUtf32::convertToUnicode(), QKeySequencePrivate::encodeString(), QTextHtmlParser::parseEntity(), qt_string_normalize(), QFontEngineWin::recalcAdvances(), QRawFont::supportsCharacter(), and QPatternist::XQueryTokenizer::tokenizeCharacterReference().
QChar QChar::mirroredChar | ( | ) | const |
Returns the mirrored character if this character is a mirrored character; otherwise returns the character itself.
Definition at line 1016 of file qchar.cpp.
Referenced by QFontEngineWin::getGlyphIndexes(), HB_GetMirroredChar(), QCharRef::mirroredChar(), QFontEngineDirectWrite::stringToCMap(), QFontEngineXLFD::stringToCMap(), QFontEngineQPA::stringToCMap(), QFontEngineQPF::stringToCMap(), QFontEngineFT::stringToCMap(), and QFontEngineQPF1::stringToCMap().
Returns the mirrored character if the UCS-4-encoded character specified by ucs4 is a mirrored character; otherwise returns the character itself.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1031 of file qchar.cpp.
Returns the mirrored character if the UCS-2-encoded character specified by ucs2 is a mirrored character; otherwise returns the character itself.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1048 of file qchar.cpp.
|
inlinestatic |
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).
Definition at line 294 of file qchar.h.
Referenced by canonicalOrderHelper(), decomposeHelper(), QKeySequencePrivate::encodeString(), QTextHtmlParser::parseEntity(), qt_string_normalize(), and QRawFont::supportsCharacter().
|
inline |
Returns the row (most significant byte) of the Unicode character.
Definition at line 284 of file qchar.h.
Referenced by QUtf16::convertFromUnicode(), QGbkCodec::convertFromUnicode(), QFontJis0208Codec::convertFromUnicode(), QEucJpCodec::convertFromUnicode(), QJisCodec::convertFromUnicode(), QSjisCodec::convertFromUnicode(), QGb2312Codec::convertFromUnicode(), QTsciiCodec::convertFromUnicode(), QFontBig5Codec::convertFromUnicode(), QFontBig5hkscsCodec::convertFromUnicode(), QFontKsc5601Codec::convertFromUnicode(), QFontGb18030_0Codec::convertFromUnicode(), QKeyMapperPrivate::isADeadKey(), QXmlSimpleReaderPrivate::parseContent(), QXmlSimpleReaderPrivate::parseReference(), QCharRef::row(), set_text(), and QPatternist::XQueryTokenizer::tokenizeNumberLiteral().
|
inline |
Definition at line 387 of file qchar.h.
Referenced by QUtf16::convertToUnicode(), and QCharRef::setCell().
|
inline |
Definition at line 389 of file qchar.h.
Referenced by QUtf16::convertToUnicode(), and QCharRef::setRow().
Converts a UTF16 surrogate pair with the given high and low values to its UCS-4 code point.
Definition at line 297 of file qchar.h.
Referenced by canonicalOrderHelper(), composeHelper(), containsProhibitedOuptut(), QGb18030Codec::convertFromUnicode(), QUtf8::convertFromUnicode(), QUtf32::convertFromUnicode(), decomposeHelper(), foldCase(), getChar(), mapToLowerCase(), qt_nameprep(), QString::toLower(), toUcs4_helper(), and QString::toUpper().
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.
Definition at line 1490 of file qchar.cpp.
Referenced by QPatternist::XQueryTokenizer::aheadEquals(), Maemo::appendVariantToDBusMessage(), QAbstractConcatenable::convertToAscii(), driveSpec(), fromHex(), QScriptSyntaxHighlighter::highlightBlock(), QPatternist::XQueryTokenizer::peekAhead(), QPatternist::XQueryTokenizer::peekCurrent(), QPatternist::XQueryTokenizer::peekForColonColon(), QCharRef::row(), QCharRef::toAscii(), toCaseFolded(), and QCharRef::unicode().
QChar QChar::toCaseFolded | ( | ) | const |
Returns the case folded equivalent of the character.
For most Unicode characters this is the same as toLowerCase().
Definition at line 1406 of file qchar.cpp.
Referenced by QString::replace().
Returns the case folded equivalent of the UCS-4-encoded character specified by ucs4.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. For most Unicode characters this is the same as toLowerCase().
Definition at line 1419 of file qchar.cpp.
Returns the case folded equivalent of the UCS-2-encoded character specified by ucs2.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. For most Unicode characters this is the same as toLowerCase().
Definition at line 1434 of file qchar.cpp.
|
inline |
Returns the Latin-1 character equivalent to the QChar, or 0.
This is mainly useful for non-internationalized software.
Definition at line 376 of file qchar.h.
Referenced by _q_parseUnixDir(), QTextEngine::atWordSeparator(), QLocalePrivate::codeToScript(), QLocalePrivate::digitToCLocale(), QAxBase::dynamicCallHelper(), QRegExp::escape(), QTextStreamPrivate::getReal(), QTest::keyClicks(), QFSFileEnginePrivate::longFileName(), QLocalePrivate::numberToCLocale(), QTextStream::operator>>(), QDateTimeParser::parseFormat(), parsePathDataFast(), QCss::Scanner::preprocess(), QChar(), qt_get_named_rgb(), qt_mac_get_key(), QCharRef::row(), toDouble(), QCharRef::toLatin1(), QKeyMapperPrivate::translateKeyEvent(), and QCharRef::unicode().
QChar QChar::toLower | ( | ) | const |
Returns the lowercase equivalent if the character is uppercase or titlecase; otherwise returns the character itself.
Definition at line 1239 of file qchar.cpp.
Referenced by QFontPrivate::alterCharForCapitalization(), QLocalePrivate::codeToScript(), comify(), QDateTimeParser::findAmPm(), QRegExpEngine::getEscape(), QTextStreamPrivate::getNumber(), QTextStreamPrivate::getReal(), hasValidSignal(), QDeclarativePropertyPrivate::initProperty(), QKeyMapperPrivate::isADeadKey(), keySequenceToKeyEqivalent(), QRegExpMatchState::matchHere(), QFileSystemModelPrivate::naturalCompare(), QLocalePrivate::numberToCLocale(), QTextHtmlParser::parseEntity(), QOpenKODEWindow::processKeyEvents(), QDeclarative_isFileCaseCorrect(), QByteArray::qstricmp(), QByteArray::qstrnicmp(), QGtkStylePrivate::setupGtkFileChooser(), QTextEngine::shapeTextMac(), QTextEngine::shapeTextWithCE(), QTextEngine::shapeTextWithHarfbuzz(), timeFormatContainsAP(), QByteArray::toLower(), QCharRef::toLower(), QCharRef::unicode(), and QDateTimeEditPrivate::validateAndInterpret().
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.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1256 of file qchar.cpp.
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.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1275 of file qchar.cpp.
QChar QChar::toTitleCase | ( | ) | const |
Returns the title case equivalent if the character is lowercase or uppercase; otherwise returns the character itself.
Definition at line 1335 of file qchar.cpp.
Referenced by QCharRef::toTitleCase().
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.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1352 of file qchar.cpp.
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.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1371 of file qchar.cpp.
QChar QChar::toUpper | ( | ) | const |
Returns the uppercase equivalent if the character is lowercase or titlecase; otherwise returns the character itself.
Definition at line 1287 of file qchar.cpp.
Referenced by QFontPrivate::alterCharForCapitalization(), QCoreApplication::applicationDirPath(), QLocalePrivate::codeToScript(), QKeySequencePrivate::encodeString(), QDateTimeParser::findAmPm(), getFmtString(), hasUnquotedAP(), isDirPath(), QMenu::keyPressEvent(), QFSFileEnginePrivate::longFileName(), QKeySequence::mnemonic(), QDeclarativeProperty::name(), QFileSystemEngine::nativeAbsoluteFilePath(), QFileSystemModelPrivate::node(), parseFontName(), qt_mac_get_key(), qtKey2CocoaKey(), QGtkStylePrivate::setupGtkFileChooser(), QTextEngine::shapeTextMac(), QTextEngine::shapeTextWithCE(), QTextEngine::shapeTextWithHarfbuzz(), toKeyOrUnicode(), QByteArray::toUpper(), QCharRef::toUpper(), QXlibKeyboard::translateKeySym(), QXcbKeyboard::translateKeySym(), translateKeySym(), tryDriveUNCFallback(), and QCharRef::unicode().
Returns the uppercase equivalent of the UCS-4-encoded character specified by ucs4 if the character is lowercase or titlecase; otherwise returns the character itself.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1304 of file qchar.cpp.
Returns the uppercase equivalent of the UCS-2-encoded character specified by ucs2 if the character is lowercase or titlecase; otherwise returns the character itself.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1323 of file qchar.cpp.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 251 of file qchar.h.
Referenced by QString::append(), QXmlSimpleReaderPrivate::atEnd(), QPatternist::XQueryTokenizer::attributeAsRaw(), canonicalOrderHelper(), QFontEngineWin::canRender(), QFontEngineQPF1::canRender(), QFontMetrics::charWidth(), comify(), composeHelper(), QFontJis0201Codec::convertFromUnicode(), QGb18030Codec::convertFromUnicode(), QBig5Codec::convertFromUnicode(), QFontLaoCodec::convertFromUnicode(), QUtf8::convertFromUnicode(), QIsciiCodec::convertFromUnicode(), QSimpleTextCodec::convertFromUnicode(), QIconvCodec::convertFromUnicode(), QBig5hkscsCodec::convertFromUnicode(), QUtf32::convertFromUnicode(), QGbkCodec::convertFromUnicode(), QLatin15Codec::convertFromUnicode(), QFontJis0208Codec::convertFromUnicode(), QEucKrCodec::convertFromUnicode(), QEucJpCodec::convertFromUnicode(), QGb2312Codec::convertFromUnicode(), QFontBig5Codec::convertFromUnicode(), QCP949Codec::convertFromUnicode(), QFontGb2312Codec::convertFromUnicode(), QFontBig5hkscsCodec::convertFromUnicode(), QFontKsc5601Codec::convertFromUnicode(), QFontGbkCodec::convertFromUnicode(), QAbstractConcatenable::convertToAscii(), QAbstractConcatenable::convertToLatin1(), QUtf16::convertToUnicode(), QLatin15Codec::convertToUnicode(), QRegExpEngine::createState(), QLocalePrivate::dateTimeToString(), QPatternist::CompressedWhitespace::decompress(), QLocalePrivate::digitToCLocale(), QLocalePrivate::doubleToString(), QWin32PrintEngine::drawTextItem(), QPdfBaseEnginePrivate::drawTextItem(), QString::endsWith(), QStringRef::endsWith(), equal(), QPatternist::escape(), escapedKey(), escapedString(), extractEncodingDecl(), fastDetermineNameChar(), findArgEscapes(), findChar(), findGraphicsFactory(), findGroupFactory(), findStyleFactoryMethod(), findStyleUtilFactoryMethod(), findUtilFactory(), fixedXmlName(), fromAscii(), QPatternist::HexBinary::fromHex(), QXmlStreamReaderPrivate::getChar(), QRegExpEngine::getChar(), getChar(), QXmlStreamReaderPrivate::getChar_helper(), QRegExpEngine::getEscape(), getEscape(), getMessage(), QTextStreamPrivate::getNumber(), QTextStreamPrivate::getReal(), heuristicSetGlyphAttributes(), QRegExpCharClass::in(), QSettingsPrivate::iniEscapedKey(), QSettingsPrivate::iniEscapedString(), QString::insert(), is_S(), QXmlUtils::isChar(), QXmlUtils::isNameChar(), QPatternist::XQueryTokenizer::isNCNameBody(), QXmlUtils::isPublicID(), isSupportedSvgFeature(), isValidCharacter(), isValidCharacterNoDash(), QLineControl::isValidInput(), isValidNumber(), QTextEngine::itemize(), QMenu::keyPressEvent(), keySequenceToKeyEqivalent(), QCssScanner_Generated::lex(), QUnicodeTables::lineBreakClass(), macToQtFormat(), mapToLowerCase(), QRegExpMatchState::match(), QKeySequence::mnemonic(), QScriptEnginePrivate::newRegExp(), QPatternist::ToCodepointsIterator::next(), QXmlInputSource::next(), QXmlSimpleReaderPrivate::next(), nextDotDelimiter(), QPatternist::XQueryTokenizer::nextToken(), QPatternist::XQueryTokenizer::normalizeEOL(), QLocalePrivate::numberToCLocale(), operator!=(), QString::operator+=(), operator<(), operator<<(), operator<<(), operator<=(), QCharRef::operator=(), operator==(), operator>(), operator>=(), operator>>(), QXmlStreamReaderPrivate::parse(), parse_locale_tag(), parseCoreNode(), parseFont(), QLineControl::parseInputMask(), parseNumbersArray(), parseNumbersList(), parsePathDataFast(), QXmlStreamReaderPrivate::peekChar(), QKeyMapper::possibleKeys(), QXmlStreamReaderPrivate::putChar(), QXmlStreamReaderPrivate::putReplacement(), QXmlStreamReaderPrivate::putReplacementInAttributeValue(), QXmlStreamReaderPrivate::putString(), QXmlStreamReaderPrivate::putStringLiteral(), QChar(), qHash(), qIsAlnum(), QString::QString(), QSvgAttributes::QSvgAttributes(), qt_ACE_do(), qt_check_std3rules(), qt_keyrelease_scanner(), qt_last_index_of(), qt_mac_get_key(), qt_nameprep(), qt_readEscapedFormatString(), qt_string_count(), qt_string_normalize(), qtKey2CocoaKey(), qtkeyForMacSymbol(), qulltoa(), QXmlUtils::rangeContains(), QString::remove(), QString::replace(), replaceArgEscapes(), resolveColor(), QCharRef::row(), QUnicodeTables::script(), QUrlPrivate::setAuthority(), QDirPrivate::setPath(), QTextEngine::shapeTextMac(), QTextEngine::shapeTextWithCE(), QString::startsWith(), QStringRef::startsWith(), stringContainsNullChar(), QFontEngineXLFD::stringToCMap(), QSystemLocalePrivate::substituteDigits(), QTextBlock::textDirection(), timeFormatContainsAP(), toDouble(), QPatternist::CompressedWhitespace::toIdentifier(), toKeyOrUnicode(), QTextDocument::toPlainText(), toPunycodeHelper(), QTest::toString(), QFontEngineXLFD::toUnicode(), QXlibKeyboard::translateKeySym(), QXcbKeyboard::translateKeySym(), translateKeySym(), tryDriveUNCFallback(), ucstrncmp(), QCharRef::unicode(), QLineControl::updateDisplayText(), QKeyMapperPrivate::updateKeyMap(), QLocalePrivate::updateSystemPrivate(), wc2rx(), QFontMetrics::width(), QFontMetricsF::width(), QSystemLocalePrivate::winToQtFormat(), QTextOdfWriter::writeBlock(), QXmlStreamWriterPrivate::writeEscaped(), and xpmHash().
|
inline |
QChar::UnicodeVersion QChar::unicodeVersion | ( | ) | const |
Returns the Unicode version that introduced this character.
Definition at line 1189 of file qchar.cpp.
Referenced by decomposeHelper(), qt_nameprep(), and QCharRef::unicodeVersion().
|
static |
Returns the Unicode version that introduced the character specified in its UCS-4-encoded form as ucs4.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1202 of file qchar.cpp.
|
static |
Returns the Unicode version that introduced the character specified in its UCS-2-encoded form as ucs2.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 1217 of file qchar.cpp.
Returns true if c1 and c2 are not the same Unicode character; otherwise returns false.
Definition at line 393 of file qchar.h.
Returns true if the numeric Unicode value of c1 is less than that of c2; otherwise returns false.
Definition at line 396 of file qchar.h.
|
related |
Writes the char chr to the stream out.
Definition at line 1542 of file qchar.cpp.
Referenced by operator>().
Returns true if the numeric Unicode value of c1 is less than or equal to that of c2; otherwise returns false.
Definition at line 394 of file qchar.h.
Returns true if c1 and c2 are the same Unicode character; otherwise returns false.
Definition at line 392 of file qchar.h.
Returns true if the numeric Unicode value of c1 is greater than that of c2; otherwise returns false.
Definition at line 397 of file qchar.h.
Returns true if the numeric Unicode value of c1 is greater than or equal to that of c2; otherwise returns false.
Definition at line 395 of file qchar.h.
|
related |
Reads a char from the stream in into char chr.
Definition at line 1558 of file qchar.cpp.
Referenced by operator>().
|
private |
Definition at line 362 of file qchar.h.
Referenced by category(), combiningClass(), decomposition(), decompositionTag(), digitValue(), direction(), hasMirrored(), isDigit(), isLetter(), isLetterOrNumber(), isMark(), isNumber(), isPrint(), isPunct(), isSpace(), isSymbol(), joining(), mirroredChar(), QChar(), setCell(), setRow(), surrogateToUcs4(), toAscii(), toCaseFolded(), toLatin1(), toLower(), toTitleCase(), toUpper(), and unicodeVersion().