diff options
Diffstat (limited to 'doc/man/man3/tqchar.3qt')
-rw-r--r-- | doc/man/man3/tqchar.3qt | 208 |
1 files changed, 104 insertions, 104 deletions
diff --git a/doc/man/man3/tqchar.3qt b/doc/man/man3/tqchar.3qt index b8d6897de..778a3335d 100644 --- a/doc/man/man3/tqchar.3qt +++ b/doc/man/man3/tqchar.3qt @@ -1,5 +1,5 @@ '\" t -.TH QChar 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQChar 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,7 +7,7 @@ .ad l .nh .SH NAME -QChar \- Lightweight Unicode character +TQChar \- Lightweight Unicode character .SH SYNOPSIS Almost all the functions in this class are reentrant when TQt is built with thread support. The exception is \fBdecomposition\fR(). </p> .PP @@ -28,7 +28,7 @@ Almost all the functions in this class are reentrant when TQt is built with thre .BI "\fBQChar\fR ( uchar c, uchar r )" .br .ti -1c -.BI "\fBQChar\fR ( const QChar & c )" +.BI "\fBQChar\fR ( const TQChar & c )" .br .ti -1c .BI "\fBQChar\fR ( ushort rc )" @@ -61,10 +61,10 @@ Almost all the functions in this class are reentrant when TQt is built with thre .BI "int \fBdigitValue\fR () const" .br .ti -1c -.BI "QChar \fBlower\fR () const" +.BI "TQChar \fBlower\fR () const" .br .ti -1c -.BI "QChar \fBupper\fR () const" +.BI "TQChar \fBupper\fR () const" .br .ti -1c .BI "Category \fBcategory\fR () const" @@ -79,10 +79,10 @@ Almost all the functions in this class are reentrant when TQt is built with thre .BI "bool \fBmirrored\fR () const" .br .ti -1c -.BI "QChar \fBmirroredChar\fR () const" +.BI "TQChar \fBmirroredChar\fR () const" .br .ti -1c -.BI "const QString & \fBdecomposition\fR () const" +.BI "const TQString & \fBdecomposition\fR () const" .br .ti -1c .BI "Decomposition \fBdecompositionTag\fR () const" @@ -148,82 +148,82 @@ Almost all the functions in this class are reentrant when TQt is built with thre .SH RELATED FUNCTION DOCUMENTATION .in +1c .ti -1c -.BI "bool \fBoperator==\fR ( QChar c1, QChar c2 )" +.BI "bool \fBoperator==\fR ( TQChar c1, TQChar c2 )" .br .ti -1c -.BI "bool \fBoperator==\fR ( char ch, QChar c )" +.BI "bool \fBoperator==\fR ( char ch, TQChar c )" .br .ti -1c -.BI "bool \fBoperator==\fR ( QChar c, char ch )" +.BI "bool \fBoperator==\fR ( TQChar c, char ch )" .br .ti -1c -.BI "int \fBoperator!=\fR ( QChar c1, QChar c2 )" +.BI "int \fBoperator!=\fR ( TQChar c1, TQChar c2 )" .br .ti -1c -.BI "int \fBoperator!=\fR ( char ch, QChar c )" +.BI "int \fBoperator!=\fR ( char ch, TQChar c )" .br .ti -1c -.BI "int \fBoperator!=\fR ( QChar c, char ch )" +.BI "int \fBoperator!=\fR ( TQChar c, char ch )" .br .ti -1c -.BI "int \fBoperator<=\fR ( QChar c1, QChar c2 )" +.BI "int \fBoperator<=\fR ( TQChar c1, TQChar c2 )" .br .ti -1c -.BI "int \fBoperator<=\fR ( QChar c, char ch )" +.BI "int \fBoperator<=\fR ( TQChar c, char ch )" .br .ti -1c -.BI "int \fBoperator<=\fR ( char ch, QChar c )" +.BI "int \fBoperator<=\fR ( char ch, TQChar c )" .br .ti -1c -.BI "int \fBoperator>=\fR ( QChar c1, QChar c2 )" +.BI "int \fBoperator>=\fR ( TQChar c1, TQChar c2 )" .br .ti -1c -.BI "int \fBoperator>=\fR ( QChar c, char ch )" +.BI "int \fBoperator>=\fR ( TQChar c, char ch )" .br .ti -1c -.BI "int \fBoperator>=\fR ( char ch, QChar c )" +.BI "int \fBoperator>=\fR ( char ch, TQChar c )" .br .ti -1c -.BI "int \fBoperator<\fR ( QChar c1, QChar c2 )" +.BI "int \fBoperator<\fR ( TQChar c1, TQChar c2 )" .br .ti -1c -.BI "int \fBoperator<\fR ( QChar c, char ch )" +.BI "int \fBoperator<\fR ( TQChar c, char ch )" .br .ti -1c -.BI "int \fBoperator<\fR ( char ch, QChar c )" +.BI "int \fBoperator<\fR ( char ch, TQChar c )" .br .ti -1c -.BI "int \fBoperator>\fR ( QChar c1, QChar c2 )" +.BI "int \fBoperator>\fR ( TQChar c1, TQChar c2 )" .br .ti -1c -.BI "int \fBoperator>\fR ( QChar c, char ch )" +.BI "int \fBoperator>\fR ( TQChar c, char ch )" .br .ti -1c -.BI "int \fBoperator>\fR ( char ch, QChar c )" +.BI "int \fBoperator>\fR ( char ch, TQChar c )" .br .in -1c .SH DESCRIPTION -The QChar class provides a lightweight Unicode character. +The TQChar class provides a lightweight Unicode character. .PP -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.) +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 TQChar 32-bit when more than 65536 Unicode code points have been defined and come into use.) .PP -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. +TQChar 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. .PP 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. .PP -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. +TQChar 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. .PP Composed Unicode characters (like å) can be converted to decomposed Unicode ("a" followed by "ring above") by using decomposition(). .PP -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. TQt 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.) +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. TQt 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 TQString::localeAwareCompare() though.) .PP 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. .PP More information can be found in the document About Unicode. .PP -See also QString, QCharRef, and Text Related Classes. +See also TQString, QCharRef, and Text Related Classes. .SS "Member Type Documentation" -.SH "QChar::Category" +.SH "TQChar::Category" This enum maps the Unicode character categories. .PP The following characters are normative in Unicode: @@ -295,169 +295,169 @@ There are two categories that are specific to Qt: \fCQChar::NoCategory\fR - used when TQt is dazed and confused and cannot make sense of anything. .TP \fCQChar::Punctuation_Dask\fR - old typo alias for Punctuation_Dash -.SH "QChar::CombiningClass" +.SH "TQChar::CombiningClass" This enum type defines names for some of the Unicode combining classes. See the Unicode Standard for a description of the values. -.SH "QChar::Decomposition" +.SH "TQChar::Decomposition" This enum type defines the Unicode decomposition attributes. See the Unicode Standard for a description of the values. -.SH "QChar::Direction" +.SH "TQChar::Direction" This enum type defines the Unicode direction attributes. See the Unicode Standard for a description of the values. .PP In order to conform to C/C++ naming conventions "Dir" is prepended to the codes used in the Unicode Standard. -.SH "QChar::Joining" +.SH "TQChar::Joining" This enum type defines the Unicode joining attributes. See the Unicode Standard for a description of the values. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QChar::QChar ()" -Constructs a null QChar (one that isNull()). -.SH "QChar::QChar ( char c )" -Constructs a QChar corresponding to ASCII/Latin-1 character \fIc\fR. -.SH "QChar::QChar ( uchar c )" -Constructs a QChar corresponding to ASCII/Latin-1 character \fIc\fR. -.SH "QChar::QChar ( uchar c, uchar r )" -Constructs a QChar for Unicode cell \fIc\fR in row \fIr\fR. -.SH "QChar::QChar ( const QChar & c )" +.SH "TQChar::TQChar ()" +Constructs a null TQChar (one that isNull()). +.SH "TQChar::TQChar ( char c )" +Constructs a TQChar corresponding to ASCII/Latin-1 character \fIc\fR. +.SH "TQChar::TQChar ( uchar c )" +Constructs a TQChar corresponding to ASCII/Latin-1 character \fIc\fR. +.SH "TQChar::TQChar ( uchar c, uchar r )" +Constructs a TQChar for Unicode cell \fIc\fR in row \fIr\fR. +.SH "TQChar::TQChar ( const TQChar & c )" Constructs a copy of \fIc\fR. This is a deep copy, if such a lightweight object can be said to have deep copies. -.SH "QChar::QChar ( ushort rc )" -Constructs a QChar for the character with Unicode code point \fIrc\fR. -.SH "QChar::QChar ( short rc )" -Constructs a QChar for the character with Unicode code point \fIrc\fR. -.SH "QChar::QChar ( uint rc )" -Constructs a QChar for the character with Unicode code point \fIrc\fR. -.SH "QChar::QChar ( int rc )" -Constructs a QChar for the character with Unicode code point \fIrc\fR. -.SH "Category QChar::category () const" +.SH "TQChar::TQChar ( ushort rc )" +Constructs a TQChar for the character with Unicode code point \fIrc\fR. +.SH "TQChar::TQChar ( short rc )" +Constructs a TQChar for the character with Unicode code point \fIrc\fR. +.SH "TQChar::TQChar ( uint rc )" +Constructs a TQChar for the character with Unicode code point \fIrc\fR. +.SH "TQChar::TQChar ( int rc )" +Constructs a TQChar for the character with Unicode code point \fIrc\fR. +.SH "Category TQChar::category () const" Returns the character category. .PP See also Category. -.SH "uchar QChar::cell () const" +.SH "uchar TQChar::cell () const" Returns the cell (least significant byte) of the Unicode character. -.SH "unsigned char QChar::combiningClass () const" +.SH "unsigned char TQChar::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. .PP The TQt text rendering engine uses this information to correctly position non spacing marks around a base character. -.SH "const QString & QChar::decomposition () const" +.SH "const TQString & TQChar::decomposition () const" \fBWarning:\fR This function is \fInot\fR reentrant.</p> .PP -Decomposes a character into its parts. Returns QString::null if no decomposition exists. -.SH "Decomposition QChar::decompositionTag () const" -Returns the tag defining the composition of the character. Returns QChar::Single if no decomposition exists. -.SH "int QChar::digitValue () const" +Decomposes a character into its parts. Returns TQString::null if no decomposition exists. +.SH "Decomposition TQChar::decompositionTag () const" +Returns the tag defining the composition of the character. Returns TQChar::Single if no decomposition exists. +.SH "int TQChar::digitValue () const" Returns the numeric value of the digit, or -1 if the character is not a digit. -.SH "Direction QChar::direction () const" +.SH "Direction TQChar::direction () const" Returns the character's direction. .PP See also Direction. -.SH "bool QChar::isDigit () const" +.SH "bool TQChar::isDigit () const" Returns TRUE if the character is a decimal digit (Number_DecimalDigit); otherwise returns FALSE. -.SH "bool QChar::isLetter () const" +.SH "bool TQChar::isLetter () const" Returns TRUE if the character is a letter (Letter_* categories); otherwise returns FALSE. -.SH "bool QChar::isLetterOrNumber () const" +.SH "bool TQChar::isLetterOrNumber () const" Returns TRUE if the character is a letter or number (Letter_* or Number_* categories); otherwise returns FALSE. -.SH "bool QChar::isMark () const" +.SH "bool TQChar::isMark () const" Returns TRUE if the character is a mark (Mark_* categories); otherwise returns FALSE. -.SH "bool QChar::isNull () const" +.SH "bool TQChar::isNull () const" Returns TRUE if the character is the Unicode character 0x0000 (ASCII NUL); otherwise returns FALSE. -.SH "bool QChar::isNumber () const" +.SH "bool TQChar::isNumber () const" Returns TRUE if the character is a number (of any sort - Number_* categories); otherwise returns FALSE. .PP See also isDigit(). -.SH "bool QChar::isPrint () const" +.SH "bool TQChar::isPrint () const" Returns TRUE if the character is a printable character; otherwise returns FALSE. This is any character not of category Cc or Cn. .PP Note that this gives no indication of whether the character is available in a particular font. -.SH "bool QChar::isPunct () const" +.SH "bool TQChar::isPunct () const" Returns TRUE if the character is a punctuation mark (Punctuation_* categories); otherwise returns FALSE. -.SH "bool QChar::isSpace () const" +.SH "bool TQChar::isSpace () const" Returns TRUE if the character is a separator character (Separator_* categories); otherwise returns FALSE. -.SH "bool QChar::isSymbol () const" +.SH "bool TQChar::isSymbol () const" Returns TRUE if the character is a symbol (Symbol_* categories); otherwise returns FALSE. -.SH "Joining QChar::joining () const" +.SH "Joining TQChar::joining () const" \fBWarning:\fR This function is not supported (it may change to use Unicode character classes). .PP Returns information about the joining properties of the character (needed for example, for Arabic). -.SH "char QChar::latin1 () const" +.SH "char TQChar::latin1 () const" Returns the Latin-1 value of this character, or 0 if it cannot be represented in Latin-1. -.SH "QChar QChar::lower () const" +.SH "TQChar TQChar::lower () const" Returns the lowercase equivalent if the character is uppercase; otherwise returns the character itself. -.SH "bool QChar::mirrored () const" +.SH "bool TQChar::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. -.SH "QChar QChar::mirroredChar () const" +.SH "TQChar TQChar::mirroredChar () const" Returns the mirrored character if this character is a mirrored character, otherwise returns the character itself. -.SH "bool QChar::networkOrdered ()\fC [static]\fR" +.SH "bool TQChar::networkOrdered ()\fC [static]\fR" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Returns TRUE if this character is in network byte order (MSB first); otherwise returns FALSE. This is platform dependent. -.SH "QChar::operator char () const" -Returns the Latin-1 character equivalent to the QChar, or 0. This is mainly useful for non-internationalized software. +.SH "TQChar::operator char () const" +Returns the Latin-1 character equivalent to the TQChar, or 0. This is mainly useful for non-internationalized software. .PP See also unicode(). -.SH "uchar QChar::row () const" +.SH "uchar TQChar::row () const" Returns the row (most significant byte) of the Unicode character. -.SH "ushort QChar::unicode () const" -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. -.SH "ushort & QChar::unicode ()" +.SH "ushort TQChar::unicode () const" +Returns the numeric Unicode value equal to the TQChar. Normally, you should use TQChar objects as they are equivalent, but for some low-level tasks (e.g. indexing into an array of Unicode information), this function is useful. +.SH "ushort & TQChar::unicode ()" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP -Returns a reference to the numeric Unicode value equal to the QChar. -.SH "QChar QChar::upper () const" +Returns a reference to the numeric Unicode value equal to the TQChar. +.SH "TQChar TQChar::upper () const" Returns the uppercase equivalent if the character is lowercase; otherwise returns the character itself. .SH RELATED FUNCTION DOCUMENTATION -.SH "int operator!= ( QChar c1, QChar c2 )" +.SH "int operator!= ( TQChar c1, TQChar c2 )" Returns TRUE if \fIc1\fR and \fIc2\fR are not the same Unicode character; otherwise returns FALSE. -.SH "int operator!= ( char ch, QChar c )" +.SH "int operator!= ( char ch, TQChar c )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if \fIc\fR is not the ASCII/Latin-1 character \fIch\fR; otherwise returns FALSE. -.SH "int operator!= ( QChar c, char ch )" +.SH "int operator!= ( TQChar c, char ch )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if \fIc\fR is not the ASCII/Latin-1 character \fIch\fR; otherwise returns FALSE. -.SH "int operator< ( QChar c1, QChar c2 )" +.SH "int operator< ( TQChar c1, TQChar c2 )" Returns TRUE if the numeric Unicode value of \fIc1\fR is less than that of \fIc2\fR; otherwise returns FALSE. -.SH "int operator< ( QChar c, char ch )" +.SH "int operator< ( TQChar c, char ch )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if the numeric Unicode value of \fIc\fR is less than that of the ASCII/Latin-1 character \fIch\fR; otherwise returns FALSE. -.SH "int operator< ( char ch, QChar c )" +.SH "int operator< ( char ch, TQChar c )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if the numeric Unicode value of the ASCII/Latin-1 character \fIch\fR is less than that of \fIc\fR; otherwise returns FALSE. -.SH "int operator<= ( QChar c1, QChar c2 )" +.SH "int operator<= ( TQChar c1, TQChar c2 )" Returns TRUE if the numeric Unicode value of \fIc1\fR is less than that of \fIc2\fR, or they are the same Unicode character; otherwise returns FALSE. -.SH "int operator<= ( QChar c, char ch )" +.SH "int operator<= ( TQChar c, char ch )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if the numeric Unicode value of \fIc\fR is less than or equal to that of the ASCII/Latin-1 character \fIch\fR; otherwise returns FALSE. -.SH "int operator<= ( char ch, QChar c )" +.SH "int operator<= ( char ch, TQChar c )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if the numeric Unicode value of the ASCII/Latin-1 character \fIch\fR is less than or equal to that of \fIc\fR; otherwise returns FALSE. -.SH "bool operator== ( QChar c1, QChar c2 )" +.SH "bool operator== ( TQChar c1, TQChar c2 )" Returns TRUE if \fIc1\fR and \fIc2\fR are the same Unicode character; otherwise returns FALSE. -.SH "bool operator== ( char ch, QChar c )" +.SH "bool operator== ( char ch, TQChar c )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if \fIc\fR is the ASCII/Latin-1 character \fIch\fR; otherwise returns FALSE. -.SH "bool operator== ( QChar c, char ch )" +.SH "bool operator== ( TQChar c, char ch )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if \fIc\fR is the ASCII/Latin-1 character \fIch\fR; otherwise returns FALSE. -.SH "int operator> ( QChar c1, QChar c2 )" +.SH "int operator> ( TQChar c1, TQChar c2 )" Returns TRUE if the numeric Unicode value of \fIc1\fR is greater than that of \fIc2\fR; otherwise returns FALSE. -.SH "int operator> ( QChar c, char ch )" +.SH "int operator> ( TQChar c, char ch )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if the numeric Unicode value of \fIc\fR is greater than that of the ASCII/Latin-1 character \fIch\fR; otherwise returns FALSE. -.SH "int operator> ( char ch, QChar c )" +.SH "int operator> ( char ch, TQChar c )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if the numeric Unicode value of the ASCII/Latin-1 character \fIch\fR is greater than that of \fIc\fR; otherwise returns FALSE. -.SH "int operator>= ( QChar c1, QChar c2 )" +.SH "int operator>= ( TQChar c1, TQChar c2 )" Returns TRUE if the numeric Unicode value of \fIc1\fR is greater than that of \fIc2\fR, or they are the same Unicode character; otherwise returns FALSE. -.SH "int operator>= ( QChar c, char ch )" +.SH "int operator>= ( TQChar c, char ch )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if the numeric Unicode value of \fIc\fR is greater than or equal to that of the ASCII/Latin-1 character \fIch\fR; otherwise returns FALSE. -.SH "int operator>= ( char ch, QChar c )" +.SH "int operator>= ( char ch, TQChar c )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns TRUE if the numeric Unicode value of the ASCII/Latin-1 |