Qyoto  4.0.7
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
QtCore.QChar Class Reference

The QChar class provides a 16-bit Unicode character. More...

Inheritance diagram for QtCore.QChar:
Collaboration diagram for QtCore.QChar:

Public Types

enum  Category {
  Letter_Lowercase = 16, Letter_Modifier = 18, Letter_Other = 19, Letter_Titlecase = 17,
  Letter_Uppercase = 15, Mark_Enclosing = 3, Mark_NonSpacing = 1, Mark_SpacingCombining = 2,
  NoCategory = 0, Number_DecimalDigit = 4, Number_Letter = 5, Number_Other = 6,
  Other_Control = 10, Other_Format = 11, Other_NotAssigned = 14, Other_PrivateUse = 13,
  Other_Surrogate = 12, Punctuation_Close = 23, Punctuation_Connector = 20, Punctuation_Dash = 21,
  Punctuation_Dask = 21, Punctuation_FinalQuote = 25, Punctuation_InitialQuote = 24, Punctuation_Open = 22,
  Punctuation_Other = 26, Separator_Line = 8, Separator_Paragraph = 9, Separator_Space = 7,
  Symbol_Currency = 28, Symbol_Math = 27, Symbol_Modifier = 29, Symbol_Other = 30
}
  More...
 
enum  CombiningClass {
  Combining_Above = 230, Combining_AboveAttached = 214, Combining_AboveLeft = 228, Combining_AboveLeftAttached = 212,
  Combining_AboveRight = 232, Combining_AboveRightAttached = 216, Combining_Below = 220, Combining_BelowAttached = 202,
  Combining_BelowLeft = 218, Combining_BelowLeftAttached = 200, Combining_BelowRight = 222, Combining_BelowRightAttached = 204,
  Combining_DoubleAbove = 234, Combining_DoubleBelow = 233, Combining_IotaSubscript = 240, Combining_Left = 224,
  Combining_LeftAttached = 208, Combining_Right = 226, Combining_RightAttached = 210
}
 
enum  Decomposition {
  Canonical = 1, Circle = 8, Compat = 16, Final = 6,
  Font = 2, Fraction = 17, Initial = 4, Isolated = 7,
  Medial = 5, Narrow = 13, NoBreak = 3, NoDecomposition = 0,
  Small = 14, Square = 15, Sub = 10, Super = 9,
  Vertical = 11, Wide = 12
}
  More...
 
enum  Direction {
  DirAL = 13, DirAN = 5, DirB = 7, DirBN = 18,
  DirCS = 6, DirEN = 2, DirES = 3, DirET = 4,
  DirL = 0, DirLRE = 11, DirLRO = 12, DirNSM = 17,
  DirON = 10, DirPDF = 16, DirR = 1, DirRLE = 14,
  DirRLO = 15, DirS = 8, DirWS = 9
}
  More...
 
enum  Joining { Center = 3, Dual = 1, OtherJoining = 0, Right = 2 }
  More...
 
enum  SpecialCharacter {
  ByteOrderMark = 65279, ByteOrderSwapped = 65534, LineSeparator = 8232, Nbsp = 160,
  Null = 0, ObjectReplacementCharacter = 65532, ParagraphSeparator = 8233, ReplacementCharacter = 65533
}
 
enum  UnicodeVersion {
  Unicode_1_1 = 1, Unicode_2_0 = 2, Unicode_2_1_2 = 3, Unicode_3_0 = 4,
  Unicode_3_1 = 5, Unicode_3_2 = 6, Unicode_4_0 = 7, Unicode_4_1 = 8,
  Unicode_5_0 = 9, Unicode_Unassigned = 0
}
  More...
 

Public Member Functions

override bool Equals (object o)
 
override int GetHashCode ()
 
 QChar ()
  More...
 
 QChar (QLatin1Char ch)
  More...
 
 QChar (QChar copy)
 
 QChar (ushort rc)
  More...
 
 QChar (short rc)
  More...
 
 QChar (uint rc)
  More...
 
 QChar (int rc)
  More...
 
 QChar (QChar.SpecialCharacter sc)
  More...
 
 QChar (byte c, byte r)
  More...
 
virtual void CreateProxy ()
 
new QChar.Category category ()
  More...
 
new byte combiningClass ()
  More...
 
new string decomposition ()
  More...
 
new QChar.Decomposition DecompositionTag ()
  More...
 
new int DigitValue ()
  More...
 
new QChar.Direction direction ()
  More...
 
new bool IsHighSurrogate ()
  More...
 
new bool IsLowSurrogate ()
  More...
 
new QChar.Joining joining ()
  More...
 
new QChar MirroredChar ()
  More...
 
new char ToAscii ()
  More...
 
new QChar ToCaseFolded ()
  More...
 
new char ToLatin1 ()
  More...
 
new QChar ToLower ()
  More...
 
new QChar ToTitleCase ()
  More...
 
new QChar ToUpper ()
  More...
 
new QChar.UnicodeVersion unicodeVersion ()
  More...
 
new void Dispose ()
 

Static Public Member Functions

static QChar.Category category (uint ucs4)
  More...
 
static QChar.Category category (ushort ucs2)
  More...
 
static byte combiningClass (uint ucs4)
  More...
 
static byte combiningClass (ushort ucs2)
  More...
 
static string decomposition (uint ucs4)
  More...
 
static QChar.Decomposition DecompositionTag (uint ucs4)
  More...
 
static int DigitValue (uint ucs4)
  More...
 
static int DigitValue (ushort ucs2)
  More...
 
static QChar.Direction direction (uint ucs4)
  More...
 
static QChar.Direction direction (ushort ucs2)
  More...
 
static QChar FromAscii (char c)
  More...
 
static QChar FromLatin1 (char c)
  More...
 
static ushort HighSurrogate (uint ucs4)
  More...
 
static bool IsHighSurrogate (uint ucs4)
  More...
 
static bool IsLowSurrogate (uint ucs4)
  More...
 
static QChar.Joining joining (uint ucs4)
  More...
 
static QChar.Joining joining (ushort ucs2)
  More...
 
static ushort LowSurrogate (uint ucs4)
  More...
 
static uint MirroredChar (uint ucs4)
  More...
 
static ushort MirroredChar (ushort ucs2)
  More...
 
static bool RequiresSurrogates (uint ucs4)
  More...
 
static uint SurrogateToUcs4 (QChar high, QChar low)
  More...
 
static uint SurrogateToUcs4 (ushort high, ushort low)
  More...
 
static uint ToCaseFolded (uint ucs4)
  More...
 
static ushort ToCaseFolded (ushort ucs2)
  More...
 
static uint ToLower (uint ucs4)
  More...
 
static ushort ToLower (ushort ucs2)
  More...
 
static uint ToTitleCase (uint ucs4)
  More...
 
static ushort ToTitleCase (ushort ucs2)
  More...
 
static uint ToUpper (uint ucs4)
  More...
 
static ushort ToUpper (ushort ucs2)
  More...
 
static QChar.UnicodeVersion unicodeVersion (uint ucs4)
  More...
 
static QChar.UnicodeVersion unicodeVersion (ushort ucs2)
  More...
 
static bool operator!= (QChar c1, QChar c2)
  More...
 
static string operator+ (QChar s1, string s2)
 
static bool operator< (QChar c1, QChar c2)
  More...
 
static bool operator<= (QChar c1, QChar c2)
  More...
 
static bool operator== (QChar c1, QChar c2)
  More...
 
static bool operator> (QChar c1, QChar c2)
  More...
 
static bool operator>= (QChar c1, QChar c2)
  More...
 

Protected Member Functions

 QChar (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

byte Cell [get, set]
  More...
 
byte Row [get, set]
  More...
 
static QChar.UnicodeVersion CurrentUnicodeVersion [get]
  More...
 
bool HasMirrored [get]
  More...
 
bool IsDigit [get]
  More...
 
bool IsLetter [get]
  More...
 
bool IsLetterOrNumber [get]
  More...
 
bool IsLower [get]
  More...
 
bool IsMark [get]
  More...
 
bool IsNull [get]
  More...
 
bool IsNumber [get]
  More...
 
bool IsPrint [get]
  More...
 
bool IsPunct [get]
  More...
 
bool IsSpace [get]
  More...
 
bool IsSymbol [get]
  More...
 
bool IsTitleCase [get]
  More...
 
bool IsUpper [get]
  More...
 
ushort Unicode [get]
  More...
 
virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

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 &#229;) 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 chars. 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.

See also QString, Unicode, and QLatin1Char.

Member Enumeration Documentation

This enum maps the Unicode character categories.

The following characters are normative in Unicode:

The following categories are informative in Unicode:

See also category().

Enumerator
Letter_Lowercase 

Unicode class name Ll

Letter_Modifier 

Unicode class name Lm

Letter_Other 

Unicode class name Lo

Letter_Titlecase 

Unicode class name Lt

Letter_Uppercase 

Unicode class name Lu

Mark_Enclosing 

Unicode class name Me

Mark_NonSpacing 

Unicode class name Mn

Mark_SpacingCombining 

Unicode class name Mc

NoCategory 

Qt cannot find an appropriate category for the character.

Number_DecimalDigit 

Unicode class name Nd

Number_Letter 

Unicode class name Nl

Number_Other 

Unicode class name No

Other_Control 

Unicode class name Cc

Other_Format 

Unicode class name Cf

Other_NotAssigned 

Unicode class name Cn

Other_PrivateUse 

Unicode class name Co

Other_Surrogate 

Unicode class name Cs

Punctuation_Close 

Unicode class name Pe

Punctuation_Connector 

Unicode class name Pc

Punctuation_Dash 

Unicode class name Pd

Punctuation_Dask 
Punctuation_FinalQuote 

Unicode class name Pf

Punctuation_InitialQuote 

Unicode class name Pi

Punctuation_Open 

Unicode class name Ps

Punctuation_Other 

Unicode class name Po

Separator_Line 

Unicode class name Zl

Separator_Paragraph 

Unicode class name Zp

Separator_Space 

Unicode class name Zs

Symbol_Currency 

Unicode class name Sc

Symbol_Math 

Unicode class name Sm

Symbol_Modifier 

Unicode class name Sk

Symbol_Other 

Unicode class name So

Enumerator
Combining_Above 
Combining_AboveAttached 
Combining_AboveLeft 
Combining_AboveLeftAttached 
Combining_AboveRight 
Combining_AboveRightAttached 
Combining_Below 
Combining_BelowAttached 
Combining_BelowLeft 
Combining_BelowLeftAttached 
Combining_BelowRight 
Combining_BelowRightAttached 
Combining_DoubleAbove 
Combining_DoubleBelow 
Combining_IotaSubscript 
Combining_Left 
Combining_LeftAttached 
Combining_Right 
Combining_RightAttached 

This enum type defines the Unicode decomposition attributes. See the Unicode Standard for a description of the values.

See also decomposition().

Enumerator
Canonical 
Circle 
Compat 
Final 
Font 
Fraction 
Initial 
Isolated 
Medial 
Narrow 
NoBreak 
NoDecomposition 
Small 
Square 
Sub 
Super 
Vertical 
Wide 

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.

See also direction().

Enumerator
DirAL 
DirAN 
DirB 
DirBN 
DirCS 
DirEN 
DirES 
DirET 
DirL 
DirLRE 
DirLRO 
DirNSM 
DirON 
DirPDF 
DirR 
DirRLE 
DirRLO 
DirS 
DirWS 

This enum type defines the Unicode joining attributes. See the Unicode Standard for a description of the values.

See also joining().

Enumerator
Center 
Dual 
OtherJoining 
Right 
Enumerator
ByteOrderMark 
ByteOrderSwapped 
LineSeparator 
Nbsp 

Non-breaking space.

Null 

A QChar with this value isNull().

ObjectReplacementCharacter 

Used to represent an object such as an image when such objects cannot be presented.

ParagraphSeparator 
ReplacementCharacter 

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.

Specifies which version of the Unicode standard introduced a certain character.

See also unicodeVersion().

Enumerator
Unicode_1_1 

Version 1.1

Unicode_2_0 

Version 2.0

Unicode_2_1_2 

Version 2.1.2

Unicode_3_0 

Version 3.0

Unicode_3_1 

Version 3.1

Unicode_3_2 

Version 3.2

Unicode_4_0 

Version 4.0

Unicode_4_1 

Version 4.1

Unicode_5_0 

Version 5.0

Unicode_Unassigned 

The value is not assigned to any character in version 5.0 of Unicode.

Constructor & Destructor Documentation

QtCore.QChar.QChar ( System.Type  dummy)
protected
QtCore.QChar.QChar ( )

Constructs a null QChar ('\0').

See also isNull().

Here is the call graph for this function:

Here is the caller graph for this function:

QtCore.QChar.QChar ( QLatin1Char  ch)

Constructs a QChar corresponding to ASCII/Latin-1 character ch.

Here is the call graph for this function:

QtCore.QChar.QChar ( QChar  copy)

Here is the call graph for this function:

QtCore.QChar.QChar ( ushort  rc)

Constructs a QChar for the character with Unicode code point code.

Here is the call graph for this function:

QtCore.QChar.QChar ( short  rc)

Constructs a QChar for the character with Unicode code point code.

Here is the call graph for this function:

QtCore.QChar.QChar ( uint  rc)

Constructs a QChar for the character with Unicode code point code.

Here is the call graph for this function:

QtCore.QChar.QChar ( int  rc)

Constructs a QChar for the character with Unicode code point code.

Here is the call graph for this function:

QtCore.QChar.QChar ( QChar.SpecialCharacter  sc)

Constructs a QChar for the predefined character value ch.

Here is the call graph for this function:

QtCore.QChar.QChar ( byte  c,
byte  r 
)

Constructs a QChar for Unicode cell cell in row row.

See also cell() and row().

Here is the call graph for this function:

Member Function Documentation

new QChar.Category QtCore.QChar.category ( )

Returns the character's category.

static QChar.Category QtCore.QChar.category ( uint  ucs4)
static

This is an overloaded function.

Returns the category of the UCS-4-encoded character specified by ucs4.

This function was introduced in Qt 4.3.

static QChar.Category QtCore.QChar.category ( ushort  ucs2)
static

This is an overloaded function.

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

new byte QtCore.QChar.combiningClass ( )

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 byte QtCore.QChar.combiningClass ( uint  ucs4)
static

This is an overloaded function.

Returns the combining class for the UCS-4-encoded character specified by ucs4, as defined in the Unicode standard.

static byte QtCore.QChar.combiningClass ( ushort  ucs2)
static

This is an overloaded function.

Returns the combining class for the UCS-2-encoded character specified by ucs2, as defined in the Unicode standard.

virtual void QtCore.QChar.CreateProxy ( )
virtual

Here is the caller graph for this function:

new string QtCore.QChar.decomposition ( )

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

static string QtCore.QChar.decomposition ( uint  ucs4)
static

This is an overloaded function.

Decomposes the UCS-4-encoded character specified by ucs4 into its constituent parts. Returns an empty string if no decomposition exists.

new QChar.Decomposition QtCore.QChar.DecompositionTag ( )

Returns the tag defining the composition of the character. Returns QChar::Single if no decomposition exists.

static QChar.Decomposition QtCore.QChar.DecompositionTag ( uint  ucs4)
static

This is an overloaded function.

Returns the tag defining the composition of the UCS-4-encoded character specified by ucs4. Returns QChar::Single if no decomposition exists.

new int QtCore.QChar.DigitValue ( )

Returns the numeric value of the digit, or -1 if the character is not a digit.

static int QtCore.QChar.DigitValue ( uint  ucs4)
static

This is an overloaded function.

Returns the numeric value of the digit specified by the UCS-4-encoded character, ucs4, or -1 if the character is not a digit.

static int QtCore.QChar.DigitValue ( ushort  ucs2)
static

This is an overloaded function.

Returns the numeric value of the digit, specified by the UCS-2-encoded character, ucs2, or -1 if the character is not a digit.

new QChar.Direction QtCore.QChar.direction ( )

Returns the character's direction.

static QChar.Direction QtCore.QChar.direction ( uint  ucs4)
static

This is an overloaded function.

Returns the direction of the UCS-4-encoded character specified by ucs4.

static QChar.Direction QtCore.QChar.direction ( ushort  ucs2)
static

This is an overloaded function.

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

new void QtCore.QChar.Dispose ( )
override bool QtCore.QChar.Equals ( object  o)

Here is the call graph for this function:

static QChar QtCore.QChar.FromAscii ( char  c)
static

Converts the ASCII character c to its equivalent QChar. This is mainly useful for non-internationalized software.

An alternative is to use QLatin1Char.

See also fromLatin1(), unicode(), and QTextCodec::codecForCStrings().

static QChar QtCore.QChar.FromLatin1 ( char  c)
static

Converts the Latin-1 character c to its equivalent QChar. This is mainly useful for non-internationalized software.

See also fromAscii(), unicode(), and QTextCodec::codecForCStrings().

override int QtCore.QChar.GetHashCode ( )
static ushort QtCore.QChar.HighSurrogate ( uint  ucs4)
static

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

new bool QtCore.QChar.IsHighSurrogate ( )

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

static bool QtCore.QChar.IsHighSurrogate ( uint  ucs4)
static

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

This function was introduced in Qt 4.7.

new bool QtCore.QChar.IsLowSurrogate ( )

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

static bool QtCore.QChar.IsLowSurrogate ( uint  ucs4)
static

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

This function was introduced in Qt 4.7.

new QChar.Joining QtCore.QChar.joining ( )

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

static QChar.Joining QtCore.QChar.joining ( uint  ucs4)
static

This is an overloaded function.

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

static QChar.Joining QtCore.QChar.joining ( ushort  ucs2)
static

This is an overloaded function.

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

static ushort QtCore.QChar.LowSurrogate ( uint  ucs4)
static

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

new QChar QtCore.QChar.MirroredChar ( )

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

See also hasMirrored().

static uint QtCore.QChar.MirroredChar ( uint  ucs4)
static

This is an overloaded function.

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

See also hasMirrored().

static ushort QtCore.QChar.MirroredChar ( ushort  ucs2)
static

This is an overloaded function.

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

See also hasMirrored().

static bool QtCore.QChar.operator!= ( QChar  c1,
QChar  c2 
)
static

Returns true if c1 and c2 are not the same Unicode character; otherwise returns false.

static string QtCore.QChar.operator+ ( QChar  s1,
string  s2 
)
static
static bool QtCore.QChar.operator< ( QChar  c1,
QChar  c2 
)
static

Returns true if the numeric Unicode value of c1 is less than that of c2; otherwise returns false.

static bool QtCore.QChar.operator<= ( QChar  c1,
QChar  c2 
)
static

Returns true if the numeric Unicode value of c1 is less than or equal to that of c2; otherwise returns false.

static bool QtCore.QChar.operator== ( QChar  c1,
QChar  c2 
)
static

Returns true if c1 and c2 are the same Unicode character; otherwise returns false.

static bool QtCore.QChar.operator> ( QChar  c1,
QChar  c2 
)
static

Returns true if the numeric Unicode value of c1 is greater than that of c2; otherwise returns false.

static bool QtCore.QChar.operator>= ( QChar  c1,
QChar  c2 
)
static

Returns true if the numeric Unicode value of c1 is greater than or equal to that of c2; otherwise returns false.

static bool QtCore.QChar.RequiresSurrogates ( uint  ucs4)
static

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

This function was introduced in Qt 4.7.

static uint QtCore.QChar.SurrogateToUcs4 ( QChar  high,
QChar  low 
)
static

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

static uint QtCore.QChar.SurrogateToUcs4 ( ushort  high,
ushort  low 
)
static

Converts a UTF16 surrogate pair with the given high and low values to its UCS-4 code point.

new char QtCore.QChar.ToAscii ( )

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.

See also toLatin1(), unicode(), and QTextCodec::codecForCStrings().

new QChar QtCore.QChar.ToCaseFolded ( )

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

static uint QtCore.QChar.ToCaseFolded ( uint  ucs4)
static

This is an overloaded function.

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 QtCore.QChar.ToCaseFolded ( ushort  ucs2)
static

This is an overloaded function.

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

new char QtCore.QChar.ToLatin1 ( )

Returns the Latin-1 character equivalent to the QChar, or 0. This is mainly useful for non-internationalized software.

See also toAscii(), unicode(), and QTextCodec::codecForCStrings().

new QChar QtCore.QChar.ToLower ( )

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

static uint QtCore.QChar.ToLower ( uint  ucs4)
static

This is an overloaded function.

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 QtCore.QChar.ToLower ( ushort  ucs2)
static

This is an overloaded function.

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.

new QChar QtCore.QChar.ToTitleCase ( )

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

static uint QtCore.QChar.ToTitleCase ( uint  ucs4)
static

This is an overloaded function.

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 QtCore.QChar.ToTitleCase ( ushort  ucs2)
static

This is an overloaded function.

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.

new QChar QtCore.QChar.ToUpper ( )

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

static uint QtCore.QChar.ToUpper ( uint  ucs4)
static

This is an overloaded function.

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.

static ushort QtCore.QChar.ToUpper ( ushort  ucs2)
static

This is an overloaded function.

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.

new QChar.UnicodeVersion QtCore.QChar.unicodeVersion ( )

Returns the Unicode version that introduced this character.

static QChar.UnicodeVersion QtCore.QChar.unicodeVersion ( uint  ucs4)
static

This is an overloaded function.

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

static QChar.UnicodeVersion QtCore.QChar.unicodeVersion ( ushort  ucs2)
static

This is an overloaded function.

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

Member Data Documentation

SmokeInvocation QtCore.QChar.interceptor
protected

Property Documentation

byte QtCore.QChar.Cell
getset

Returns the cell (least significant byte) of the Unicode character.

QChar.UnicodeVersion QtCore.QChar.CurrentUnicodeVersion
staticget

Returns the most recent supported Unicode version.

This function was introduced in Qt 4.8.

bool QtCore.QChar.HasMirrored
get

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

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

See also mirroredChar().

bool QtCore.QChar.IsDigit
get

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

bool QtCore.QChar.IsLetter
get

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

bool QtCore.QChar.IsLetterOrNumber
get

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

bool QtCore.QChar.IsLower
get

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

See also isUpper(), toLower(), and toUpper().

bool QtCore.QChar.IsMark
get

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

See QChar::Category for more information regarding marks.

bool QtCore.QChar.IsNull
get

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

bool QtCore.QChar.IsNumber
get

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

See also isDigit().

bool QtCore.QChar.IsPrint
get

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 QtCore.QChar.IsPunct
get

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

bool QtCore.QChar.IsSpace
get

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

bool QtCore.QChar.IsSymbol
get

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

bool QtCore.QChar.IsTitleCase
get

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

This function was introduced in Qt 4.3.

See also isLower(), toUpper(), toLower(), and toTitleCase().

bool QtCore.QChar.IsUpper
get

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

See also isLower(), toUpper(), and toLower().

byte QtCore.QChar.Row
getset

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

virtual System.IntPtr QtCore.QChar.SmokeObject
getset
ushort QtCore.QChar.Unicode
get

Returns a reference to the numeric Unicode value of the QChar.