Eneboo - Documentación para desarrolladores
Tipos públicos | Métodos públicos | Métodos públicos estáticos | Atributos públicos | Amigas | Funciones relacionadas
Referencia de la Clase QChar

The QChar class provides a lightweight Unicode character. Más...

#include <qstring.h>

Lista de todos los miembros.

Tipos públicos

enum  Category {
  NoCategory, Mark_NonSpacing, Mark_SpacingCombining, Mark_Enclosing,
  Number_DecimalDigit, Number_Letter, Number_Other, Separator_Space,
  Separator_Line, Separator_Paragraph, Other_Control, Other_Format,
  Other_Surrogate, Other_PrivateUse, Other_NotAssigned, Letter_Uppercase,
  Letter_Lowercase, Letter_Titlecase, Letter_Modifier, Letter_Other,
  Punctuation_Connector, Punctuation_Dash, Punctuation_Dask = Punctuation_Dash, Punctuation_Open,
  Punctuation_Close, Punctuation_InitialQuote, Punctuation_FinalQuote, Punctuation_Other,
  Symbol_Math, Symbol_Currency, Symbol_Modifier, Symbol_Other,
  NoCategory, Mark_NonSpacing, Mark_SpacingCombining, Mark_Enclosing,
  Number_DecimalDigit, Number_Letter, Number_Other, Separator_Space,
  Separator_Line, Separator_Paragraph, Other_Control, Other_Format,
  Other_Surrogate, Other_PrivateUse, Other_NotAssigned, Letter_Uppercase,
  Letter_Lowercase, Letter_Titlecase, Letter_Modifier, Letter_Other,
  Punctuation_Connector, Punctuation_Dash, Punctuation_Dask = Punctuation_Dash, Punctuation_Open,
  Punctuation_Close, Punctuation_InitialQuote, Punctuation_FinalQuote, Punctuation_Other,
  Symbol_Math, Symbol_Currency, Symbol_Modifier, Symbol_Other
}
enum  Direction {
  DirL, DirR, DirEN, DirES,
  DirET, DirAN, DirCS, DirB,
  DirS, DirWS, DirON, DirLRE,
  DirLRO, DirAL, DirRLE, DirRLO,
  DirPDF, DirNSM, DirBN, DirL,
  DirR, DirEN, DirES, DirET,
  DirAN, DirCS, DirB, DirS,
  DirWS, DirON, DirLRE, DirLRO,
  DirAL, DirRLE, DirRLO, DirPDF,
  DirNSM, DirBN
}
enum  Decomposition {
  Single, Canonical, Font, NoBreak,
  Initial, Medial, Final, Isolated,
  Circle, Super, Sub, Vertical,
  Wide, Narrow, Small, Square,
  Compat, Fraction, Single, Canonical,
  Font, NoBreak, Initial, Medial,
  Final, Isolated, Circle, Super,
  Sub, Vertical, Wide, Narrow,
  Small, Square, Compat, Fraction
}
enum  Joining {
  OtherJoining, Dual, Right, Center,
  OtherJoining, Dual, Right, Center
}
enum  CombiningClass {
  Combining_BelowLeftAttached = 200, Combining_BelowAttached = 202, Combining_BelowRightAttached = 204, Combining_LeftAttached = 208,
  Combining_RightAttached = 210, Combining_AboveLeftAttached = 212, Combining_AboveAttached = 214, Combining_AboveRightAttached = 216,
  Combining_BelowLeft = 218, Combining_Below = 220, Combining_BelowRight = 222, Combining_Left = 224,
  Combining_Right = 226, Combining_AboveLeft = 228, Combining_Above = 230, Combining_AboveRight = 232,
  Combining_DoubleBelow = 233, Combining_DoubleAbove = 234, Combining_IotaSubscript = 240, Combining_BelowLeftAttached = 200,
  Combining_BelowAttached = 202, Combining_BelowRightAttached = 204, Combining_LeftAttached = 208, Combining_RightAttached = 210,
  Combining_AboveLeftAttached = 212, Combining_AboveAttached = 214, Combining_AboveRightAttached = 216, Combining_BelowLeft = 218,
  Combining_Below = 220, Combining_BelowRight = 222, Combining_Left = 224, Combining_Right = 226,
  Combining_AboveLeft = 228, Combining_Above = 230, Combining_AboveRight = 232, Combining_DoubleBelow = 233,
  Combining_DoubleAbove = 234, Combining_IotaSubscript = 240
}
enum  Category {
  NoCategory, Mark_NonSpacing, Mark_SpacingCombining, Mark_Enclosing,
  Number_DecimalDigit, Number_Letter, Number_Other, Separator_Space,
  Separator_Line, Separator_Paragraph, Other_Control, Other_Format,
  Other_Surrogate, Other_PrivateUse, Other_NotAssigned, Letter_Uppercase,
  Letter_Lowercase, Letter_Titlecase, Letter_Modifier, Letter_Other,
  Punctuation_Connector, Punctuation_Dash, Punctuation_Dask = Punctuation_Dash, Punctuation_Open,
  Punctuation_Close, Punctuation_InitialQuote, Punctuation_FinalQuote, Punctuation_Other,
  Symbol_Math, Symbol_Currency, Symbol_Modifier, Symbol_Other,
  NoCategory, Mark_NonSpacing, Mark_SpacingCombining, Mark_Enclosing,
  Number_DecimalDigit, Number_Letter, Number_Other, Separator_Space,
  Separator_Line, Separator_Paragraph, Other_Control, Other_Format,
  Other_Surrogate, Other_PrivateUse, Other_NotAssigned, Letter_Uppercase,
  Letter_Lowercase, Letter_Titlecase, Letter_Modifier, Letter_Other,
  Punctuation_Connector, Punctuation_Dash, Punctuation_Dask = Punctuation_Dash, Punctuation_Open,
  Punctuation_Close, Punctuation_InitialQuote, Punctuation_FinalQuote, Punctuation_Other,
  Symbol_Math, Symbol_Currency, Symbol_Modifier, Symbol_Other
}
enum  Direction {
  DirL, DirR, DirEN, DirES,
  DirET, DirAN, DirCS, DirB,
  DirS, DirWS, DirON, DirLRE,
  DirLRO, DirAL, DirRLE, DirRLO,
  DirPDF, DirNSM, DirBN, DirL,
  DirR, DirEN, DirES, DirET,
  DirAN, DirCS, DirB, DirS,
  DirWS, DirON, DirLRE, DirLRO,
  DirAL, DirRLE, DirRLO, DirPDF,
  DirNSM, DirBN
}
enum  Decomposition {
  Single, Canonical, Font, NoBreak,
  Initial, Medial, Final, Isolated,
  Circle, Super, Sub, Vertical,
  Wide, Narrow, Small, Square,
  Compat, Fraction, Single, Canonical,
  Font, NoBreak, Initial, Medial,
  Final, Isolated, Circle, Super,
  Sub, Vertical, Wide, Narrow,
  Small, Square, Compat, Fraction
}
enum  Joining {
  OtherJoining, Dual, Right, Center,
  OtherJoining, Dual, Right, Center
}
enum  CombiningClass {
  Combining_BelowLeftAttached = 200, Combining_BelowAttached = 202, Combining_BelowRightAttached = 204, Combining_LeftAttached = 208,
  Combining_RightAttached = 210, Combining_AboveLeftAttached = 212, Combining_AboveAttached = 214, Combining_AboveRightAttached = 216,
  Combining_BelowLeft = 218, Combining_Below = 220, Combining_BelowRight = 222, Combining_Left = 224,
  Combining_Right = 226, Combining_AboveLeft = 228, Combining_Above = 230, Combining_AboveRight = 232,
  Combining_DoubleBelow = 233, Combining_DoubleAbove = 234, Combining_IotaSubscript = 240, Combining_BelowLeftAttached = 200,
  Combining_BelowAttached = 202, Combining_BelowRightAttached = 204, Combining_LeftAttached = 208, Combining_RightAttached = 210,
  Combining_AboveLeftAttached = 212, Combining_AboveAttached = 214, Combining_AboveRightAttached = 216, Combining_BelowLeft = 218,
  Combining_Below = 220, Combining_BelowRight = 222, Combining_Left = 224, Combining_Right = 226,
  Combining_AboveLeft = 228, Combining_Above = 230, Combining_AboveRight = 232, Combining_DoubleBelow = 233,
  Combining_DoubleAbove = 234, Combining_IotaSubscript = 240
}

Métodos públicos

 QChar ()
 QChar (char c)
 QChar (uchar c)
 QChar (uchar c, uchar r)
 QChar (const QChar &c)
 QChar (ushort rc)
 QChar (short rc)
 QChar (uint rc)
 QChar (int rc)
int digitValue () const
QChar lower () const
QChar upper () const
Category category () const
Direction direction () const
Joining joining () const
bool mirrored () const
QChar mirroredChar () const
const QStringdecomposition () const
Decomposition decompositionTag () const
unsigned char combiningClass () const
char latin1 () const
ushort unicode () const
ushortunicode ()
 operator char () const
bool isNull () const
bool isPrint () const
bool isPunct () const
bool isSpace () const
bool isMark () const
bool isLetter () const
bool isNumber () const
bool isLetterOrNumber () const
bool isDigit () const
bool isSymbol () const
uchar cell () const
uchar row () const
void setCell (uchar cell)
void setRow (uchar row)
 QChar ()
 QChar (char c)
 QChar (uchar c)
 QChar (uchar c, uchar r)
 QChar (const QChar &c)
 QChar (ushort rc)
 QChar (short rc)
 QChar (uint rc)
 QChar (int rc)
int digitValue () const
QChar lower () const
QChar upper () const
Category category () const
Direction direction () const
Joining joining () const
bool mirrored () const
QChar mirroredChar () const
const QStringdecomposition () const
Decomposition decompositionTag () const
unsigned char combiningClass () const
char latin1 () const
ushort unicode () const
ushortunicode ()
 operator char () const
bool isNull () const
bool isPrint () const
bool isPunct () const
bool isSpace () const
bool isMark () const
bool isLetter () const
bool isNumber () const
bool isLetterOrNumber () const
bool isDigit () const
bool isSymbol () const
uchar cell () const
uchar row () const
void setCell (uchar cell)
void setRow (uchar row)

Métodos públicos estáticos

static bool networkOrdered ()
static bool networkOrdered ()

Atributos públicos

QT_STATIC_CONST QChar null
QT_STATIC_CONST QChar replacement
QT_STATIC_CONST QChar byteOrderMark
QT_STATIC_CONST QChar byteOrderSwapped
QT_STATIC_CONST QChar nbsp

Amigas

bool operator== (char ch, QChar c)
bool operator== (QChar c, char ch)
bool operator== (QChar c1, QChar c2)
bool operator!= (QChar c1, QChar c2)
bool operator!= (char ch, QChar c)
bool operator!= (QChar c, char ch)
bool operator<= (QChar c, char ch)
bool operator<= (char ch, QChar c)
bool operator<= (QChar c1, QChar c2)
bool operator== (char ch, QChar c)
bool operator== (QChar c, char ch)
bool operator== (QChar c1, QChar c2)
bool operator!= (QChar c1, QChar c2)
bool operator!= (char ch, QChar c)
bool operator!= (QChar c, char ch)
bool operator<= (QChar c, char ch)
bool operator<= (char ch, QChar c)
bool operator<= (QChar c1, QChar c2)

Funciones relacionadas

(Observar que estas no son funciones miembro.)

int operator>= (QChar c1, QChar c2)
int operator>= (QChar c, char ch)
int operator>= (char ch, QChar c)
int operator< (QChar c1, QChar c2)
int operator< (QChar c, char ch)
int operator< (char ch, QChar c)
int operator> (QChar c1, QChar c2)
int operator> (QChar c, char ch)
int operator> (char ch, QChar c)

Descripción detallada

The QChar class provides a lightweight Unicode character.

Unicode characters are (so far) 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 "short int". (In a few years it may be necessary to make QChar 32-bit when more than 65536 Unicode code points have been defined and come into use.)

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 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 U+0000), 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), isLetterOrNumber(), and isDigit() (decimal digits). All of these are wrappers around category() which return the Unicode-defined category of each character.

QChar further 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 mirrored(), 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. Qt tries, but not very hard: operator==() and friends will do comparison based purely on the numeric Unicode value (code point) of the characters, and upper() and lower() will do case changes when the character has a well-defined upper/lower-case equivalent. There is no provision for locale-dependent case folding rules or comparison; these functions are meant to be fast so they can be used unambiguously in data structures. (See QString::localeAwareCompare() though.)

The conversion functions include unicode() (to a scalar), latin1() (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.

More information can be found in the document About Unicode.

Ver también:
QString QCharRef

Documentación de las enumeraciones miembro de la clase

This enum maps the Unicode character categories.

The following characters are normative in Unicode:

Mark_NonSpacing Unicode class name Mn

Mark_SpacingCombining Unicode class name Mc

Mark_Enclosing Unicode class name Me

Number_DecimalDigit Unicode class name Nd

Number_Letter Unicode class name Nl

Number_Other Unicode class name No

Separator_Space Unicode class name Zs

Separator_Line Unicode class name Zl

Separator_Paragraph Unicode class name Zp

Other_Control Unicode class name Cc

Other_Format Unicode class name Cf

Other_Surrogate Unicode class name Cs

Other_PrivateUse Unicode class name Co

Other_NotAssigned Unicode class name Cn

The following categories are informative in Unicode:

Letter_Uppercase Unicode class name Lu

Letter_Lowercase Unicode class name Ll

Letter_Titlecase Unicode class name Lt

Letter_Modifier Unicode class name Lm

Letter_Other Unicode class name Lo

Punctuation_Connector Unicode class name Pc

Punctuation_Dash Unicode class name Pd

Punctuation_Open Unicode class name Ps

Punctuation_Close Unicode class name Pe

Punctuation_InitialQuote Unicode class name Pi

Punctuation_FinalQuote Unicode class name Pf

Punctuation_Other Unicode class name Po

Symbol_Math Unicode class name Sm

Symbol_Currency Unicode class name Sc

Symbol_Modifier Unicode class name Sk

Symbol_Other Unicode class name So

There are two categories that are specific to Qt:

NoCategory used when Qt is dazed and confused and cannot make sense of anything.

Punctuation_Dask old typo alias for Punctuation_Dash

Valores de enumeraciones:
NoCategory 
Mark_NonSpacing 
Mark_SpacingCombining 
Mark_Enclosing 
Number_DecimalDigit 
Number_Letter 
Number_Other 
Separator_Space 
Separator_Line 
Separator_Paragraph 
Other_Control 
Other_Format 
Other_Surrogate 
Other_PrivateUse 
Other_NotAssigned 
Letter_Uppercase 
Letter_Lowercase 
Letter_Titlecase 
Letter_Modifier 
Letter_Other 
Punctuation_Connector 
Punctuation_Dash 
Punctuation_Dask 
Punctuation_Open 
Punctuation_Close 
Punctuation_InitialQuote 
Punctuation_FinalQuote 
Punctuation_Other 
Symbol_Math 
Symbol_Currency 
Symbol_Modifier 
Symbol_Other 
NoCategory 
Mark_NonSpacing 
Mark_SpacingCombining 
Mark_Enclosing 
Number_DecimalDigit 
Number_Letter 
Number_Other 
Separator_Space 
Separator_Line 
Separator_Paragraph 
Other_Control 
Other_Format 
Other_Surrogate 
Other_PrivateUse 
Other_NotAssigned 
Letter_Uppercase 
Letter_Lowercase 
Letter_Titlecase 
Letter_Modifier 
Letter_Other 
Punctuation_Connector 
Punctuation_Dash 
Punctuation_Dask 
Punctuation_Open 
Punctuation_Close 
Punctuation_InitialQuote 
Punctuation_FinalQuote 
Punctuation_Other 
Symbol_Math 
Symbol_Currency 
Symbol_Modifier 
Symbol_Other 
Valores de enumeraciones:
NoCategory 
Mark_NonSpacing 
Mark_SpacingCombining 
Mark_Enclosing 
Number_DecimalDigit 
Number_Letter 
Number_Other 
Separator_Space 
Separator_Line 
Separator_Paragraph 
Other_Control 
Other_Format 
Other_Surrogate 
Other_PrivateUse 
Other_NotAssigned 
Letter_Uppercase 
Letter_Lowercase 
Letter_Titlecase 
Letter_Modifier 
Letter_Other 
Punctuation_Connector 
Punctuation_Dash 
Punctuation_Dask 
Punctuation_Open 
Punctuation_Close 
Punctuation_InitialQuote 
Punctuation_FinalQuote 
Punctuation_Other 
Symbol_Math 
Symbol_Currency 
Symbol_Modifier 
Symbol_Other 
NoCategory 
Mark_NonSpacing 
Mark_SpacingCombining 
Mark_Enclosing 
Number_DecimalDigit 
Number_Letter 
Number_Other 
Separator_Space 
Separator_Line 
Separator_Paragraph 
Other_Control 
Other_Format 
Other_Surrogate 
Other_PrivateUse 
Other_NotAssigned 
Letter_Uppercase 
Letter_Lowercase 
Letter_Titlecase 
Letter_Modifier 
Letter_Other 
Punctuation_Connector 
Punctuation_Dash 
Punctuation_Dask 
Punctuation_Open 
Punctuation_Close 
Punctuation_InitialQuote 
Punctuation_FinalQuote 
Punctuation_Other 
Symbol_Math 
Symbol_Currency 
Symbol_Modifier 
Symbol_Other 

This enum type defines names for some of the Unicode combining classes. See the Unicode Standard for a description of the values.

Valores de enumeraciones:
Combining_BelowLeftAttached 
Combining_BelowAttached 
Combining_BelowRightAttached 
Combining_LeftAttached 
Combining_RightAttached 
Combining_AboveLeftAttached 
Combining_AboveAttached 
Combining_AboveRightAttached 
Combining_BelowLeft 
Combining_Below 
Combining_BelowRight 
Combining_Left 
Combining_Right 
Combining_AboveLeft 
Combining_Above 
Combining_AboveRight 
Combining_DoubleBelow 
Combining_DoubleAbove 
Combining_IotaSubscript 
Combining_BelowLeftAttached 
Combining_BelowAttached 
Combining_BelowRightAttached 
Combining_LeftAttached 
Combining_RightAttached 
Combining_AboveLeftAttached 
Combining_AboveAttached 
Combining_AboveRightAttached 
Combining_BelowLeft 
Combining_Below 
Combining_BelowRight 
Combining_Left 
Combining_Right 
Combining_AboveLeft 
Combining_Above 
Combining_AboveRight 
Combining_DoubleBelow 
Combining_DoubleAbove 
Combining_IotaSubscript 
Valores de enumeraciones:
Combining_BelowLeftAttached 
Combining_BelowAttached 
Combining_BelowRightAttached 
Combining_LeftAttached 
Combining_RightAttached 
Combining_AboveLeftAttached 
Combining_AboveAttached 
Combining_AboveRightAttached 
Combining_BelowLeft 
Combining_Below 
Combining_BelowRight 
Combining_Left 
Combining_Right 
Combining_AboveLeft 
Combining_Above 
Combining_AboveRight 
Combining_DoubleBelow 
Combining_DoubleAbove 
Combining_IotaSubscript 
Combining_BelowLeftAttached 
Combining_BelowAttached 
Combining_BelowRightAttached 
Combining_LeftAttached 
Combining_RightAttached 
Combining_AboveLeftAttached 
Combining_AboveAttached 
Combining_AboveRightAttached 
Combining_BelowLeft 
Combining_Below 
Combining_BelowRight 
Combining_Left 
Combining_Right 
Combining_AboveLeft 
Combining_Above 
Combining_AboveRight 
Combining_DoubleBelow 
Combining_DoubleAbove 
Combining_IotaSubscript 
Valores de enumeraciones:
Single 
Canonical 
Font 
NoBreak 
Initial 
Medial 
Final 
Isolated 
Circle 
Super 
Sub 
Vertical 
Wide 
Narrow 
Small 
Square 
Compat 
Fraction 
Single 
Canonical 
Font 
NoBreak 
Initial 
Medial 
Final 
Isolated 
Circle 
Super 
Sub 
Vertical 
Wide 
Narrow 
Small 
Square 
Compat 
Fraction 

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

Valores de enumeraciones:
Single 
Canonical 
Font 
NoBreak 
Initial 
Medial 
Final 
Isolated 
Circle 
Super 
Sub 
Vertical 
Wide 
Narrow 
Small 
Square 
Compat 
Fraction 
Single 
Canonical 
Font 
NoBreak 
Initial 
Medial 
Final 
Isolated 
Circle 
Super 
Sub 
Vertical 
Wide 
Narrow 
Small 
Square 
Compat 
Fraction 
Valores de enumeraciones:
DirL 
DirR 
DirEN 
DirES 
DirET 
DirAN 
DirCS 
DirB 
DirS 
DirWS 
DirON 
DirLRE 
DirLRO 
DirAL 
DirRLE 
DirRLO 
DirPDF 
DirNSM 
DirBN 
DirL 
DirR 
DirEN 
DirES 
DirET 
DirAN 
DirCS 
DirB 
DirS 
DirWS 
DirON 
DirLRE 
DirLRO 
DirAL 
DirRLE 
DirRLO 
DirPDF 
DirNSM 
DirBN 

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.

Valores de enumeraciones:
DirL 
DirR 
DirEN 
DirES 
DirET 
DirAN 
DirCS 
DirB 
DirS 
DirWS 
DirON 
DirLRE 
DirLRO 
DirAL 
DirRLE 
DirRLO 
DirPDF 
DirNSM 
DirBN 
DirL 
DirR 
DirEN 
DirES 
DirET 
DirAN 
DirCS 
DirB 
DirS 
DirWS 
DirON 
DirLRE 
DirLRO 
DirAL 
DirRLE 
DirRLO 
DirPDF 
DirNSM 
DirBN 

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

Valores de enumeraciones:
OtherJoining 
Dual 
Right 
Center 
OtherJoining 
Dual 
Right 
Center 
Valores de enumeraciones:
OtherJoining 
Dual 
Right 
Center 
OtherJoining 
Dual 
Right 
Center 

Documentación del constructor y destructor

QChar::QChar ( ) [inline]

Constructs a null QChar (one that isNull()).

QChar::QChar ( char  c) [inline]

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

QChar::QChar ( uchar  c) [inline]

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

QChar::QChar ( uchar  c,
uchar  r 
) [inline]

Constructs a QChar for Unicode cell c in row r.

QChar::QChar ( const QChar c) [inline]

Constructs a copy of c. This is a deep copy, if such a lightweight object can be said to have deep copies.

QChar::QChar ( ushort  rc) [inline]

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

QChar::QChar ( short  rc) [inline]

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

QChar::QChar ( uint  rc) [inline]

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

QChar::QChar ( int  rc) [inline]

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

QChar::QChar ( )
QChar::QChar ( char  c)
QChar::QChar ( uchar  c)
QChar::QChar ( uchar  c,
uchar  r 
)
QChar::QChar ( const QChar c)
QChar::QChar ( ushort  rc)
QChar::QChar ( short  rc)
QChar::QChar ( uint  rc)
QChar::QChar ( int  rc)

Documentación de las funciones miembro

QChar::Category QChar::category ( ) const

Returns the character category.

Ver también:
Category
Category QChar::category ( ) const
uchar QChar::cell ( ) const [inline]

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

uchar QChar::cell ( ) const [inline]
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.

unsigned char QChar::combiningClass ( ) const
const QString& QChar::decomposition ( ) const
const QString & QChar::decomposition ( ) const

Decomposes a character into its parts. Returns QString::null if no decomposition exists.

Decomposition QChar::decompositionTag ( ) const
QChar::Decomposition QChar::decompositionTag ( ) const

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

int QChar::digitValue ( ) const

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

int QChar::digitValue ( ) const
Direction QChar::direction ( ) const
QChar::Direction QChar::direction ( ) const

Returns the character's direction.

Ver también:
Direction
bool QChar::isDigit ( ) const

Returns TRUE if the character is a decimal digit (Number_DecimalDigit); otherwise returns FALSE.

bool QChar::isDigit ( ) const
bool QChar::isLetter ( ) const

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

bool QChar::isLetter ( ) const
bool QChar::isLetterOrNumber ( ) const

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

bool QChar::isLetterOrNumber ( ) const
bool QChar::isMark ( ) const

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

bool QChar::isMark ( ) const
bool QChar::isNull ( ) const [inline]

Returns TRUE if the character is the Unicode character 0x0000 (ASCII NUL); otherwise returns FALSE.

bool QChar::isNull ( ) const [inline]
bool QChar::isNumber ( ) const

Returns TRUE if the character is a number (of any sort - Number_* categories); otherwise returns FALSE.

Ver también:
isDigit()
bool QChar::isNumber ( ) const
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::isPrint ( ) const
bool QChar::isPunct ( ) const
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::isSpace ( ) const
bool QChar::isSymbol ( ) const
bool QChar::isSymbol ( ) const

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

Joining QChar::joining ( ) const
QChar::Joining QChar::joining ( ) const
Atención:
This function is not supported (it may change to use Unicode character classes).

Returns information about the joining properties of the character (needed for example, for Arabic).

char QChar::latin1 ( ) const [inline]
char QChar::latin1 ( ) const [inline]

Returns the Latin-1 value of this character, or 0 if it cannot be represented in Latin-1.

QChar QChar::lower ( ) const
QChar QChar::lower ( ) const

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

bool QChar::mirrored ( ) const
bool QChar::mirrored ( ) const

Returns TRUE if the character is a mirrored character (one that should be reversed if the text direction is reversed); otherwise returns FALSE.

QChar QChar::mirroredChar ( ) const

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

QChar QChar::mirroredChar ( ) const
bool QChar::networkOrdered ( ) [inline, static]

Returns TRUE if this character is in network byte order (MSB first); otherwise returns FALSE. This is platform dependent.

static bool QChar::networkOrdered ( ) [inline, static]
QChar::operator char ( ) const [inline]

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

Ver también:
unicode()
QChar::operator char ( ) const [inline]
uchar QChar::row ( ) const [inline]

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

uchar QChar::row ( ) const [inline]
void QChar::setCell ( uchar  cell) [inline]
void QChar::setCell ( uchar  cell) [inline]
void QChar::setRow ( uchar  row) [inline]
void QChar::setRow ( uchar  row) [inline]
ushort& QChar::unicode ( ) [inline]
ushort & QChar::unicode ( ) [inline]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Returns a reference to the numeric Unicode value equal to the QChar.

ushort QChar::unicode ( ) const [inline]
ushort QChar::unicode ( ) const [inline]

Returns the numeric Unicode value equal to the QChar. Normally, you should use QChar objects as they are equivalent, but for some low-level tasks (e.g. indexing into an array of Unicode information), this function is useful.

QChar QChar::upper ( ) const
QChar QChar::upper ( ) const

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


Documentación de las funciones relacionadas y clases amigas

int operator!= ( QChar  c1,
QChar  c2 
) [friend]

Returns TRUE if c1 and c2 are not the same Unicode character; otherwise returns FALSE.

int operator!= ( char  ch,
QChar  c 
) [friend]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Returns TRUE if c is not the ASCII/Latin-1 character ch; otherwise returns FALSE.

int operator!= ( QChar  c,
char  ch 
) [friend]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Returns TRUE if c is not the ASCII/Latin-1 character ch; otherwise returns FALSE.

bool operator!= ( QChar  c1,
QChar  c2 
) [friend]
bool operator!= ( char  ch,
QChar  c 
) [friend]
bool operator!= ( QChar  c,
char  ch 
) [friend]
int operator< ( QChar  c1,
QChar  c2 
) [related]

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

int operator< ( QChar  c,
char  ch 
) [related]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Returns TRUE if the numeric Unicode value of c is less than that of the ASCII/Latin-1 character ch; otherwise returns FALSE.

int operator< ( char  ch,
QChar  c 
) [related]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Returns TRUE if the numeric Unicode value of the ASCII/Latin-1 character ch is less than that of c; otherwise returns FALSE.

int operator<= ( char  ch,
QChar  c 
) [friend]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Returns TRUE if the numeric Unicode value of the ASCII/Latin-1 character ch is less than or equal to that of c; otherwise returns FALSE.

bool operator<= ( QChar  c1,
QChar  c2 
) [friend]
bool operator<= ( QChar  c,
char  ch 
) [friend]
bool operator<= ( char  ch,
QChar  c 
) [friend]
int operator<= ( QChar  c1,
QChar  c2 
) [friend]

Returns TRUE if the numeric Unicode value of c1 is less than that of c2, or they are the same Unicode character; otherwise returns FALSE.

int operator<= ( QChar  c,
char  ch 
) [friend]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Returns TRUE if the numeric Unicode value of c is less than or equal to that of the ASCII/Latin-1 character ch; otherwise returns FALSE.

bool operator== ( QChar  c1,
QChar  c2 
) [friend]

Returns TRUE if c1 and c2 are the same Unicode character; otherwise returns FALSE.

bool operator== ( QChar  c,
char  ch 
) [friend]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Returns TRUE if c is the ASCII/Latin-1 character ch; otherwise returns FALSE.

bool operator== ( char  ch,
QChar  c 
) [friend]
bool operator== ( QChar  c,
char  ch 
) [friend]
bool operator== ( char  ch,
QChar  c 
) [friend]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Returns TRUE if c is the ASCII/Latin-1 character ch; otherwise returns FALSE.

bool operator== ( QChar  c1,
QChar  c2 
) [friend]
int operator> ( QChar  c1,
QChar  c2 
) [related]

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

int operator> ( char  ch,
QChar  c 
) [related]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Returns TRUE if the numeric Unicode value of the ASCII/Latin-1 character ch is greater than that of c; otherwise returns FALSE.

int operator> ( QChar  c,
char  ch 
) [related]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Returns TRUE if the numeric Unicode value of c is greater than that of the ASCII/Latin-1 character ch; otherwise returns FALSE.

int operator>= ( QChar  c,
char  ch 
) [related]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Returns TRUE if the numeric Unicode value of c is greater than or equal to that of the ASCII/Latin-1 character ch; otherwise returns FALSE.

int operator>= ( QChar  c1,
QChar  c2 
) [related]

Returns TRUE if the numeric Unicode value of c1 is greater than that of c2, or they are the same Unicode character; otherwise returns FALSE.

int operator>= ( char  ch,
QChar  c 
) [related]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Returns TRUE if the numeric Unicode value of the ASCII/Latin-1 character ch is greater than or equal to that of c; otherwise returns FALSE.


Documentación de los datos miembro

QT_STATIC_CONST QChar QChar::byteOrderMark
QT_STATIC_CONST QChar QChar::byteOrderSwapped
QT_STATIC_CONST QChar QChar::nbsp
QT_STATIC_CONST QChar QChar::null
QT_STATIC_CONST QChar QChar::replacement

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'