59 #ifdef Q_COMPILER_MANGLES_RETURN_TYPE
60 inline const char toLatin1()
const {
return ch; }
61 inline const ushort unicode()
const {
return ushort(uchar(ch)); }
64 inline ushort
unicode()
const {
return ushort(uchar(ch)); }
75 #ifndef QT_NO_CAST_FROM_ASCII
76 QT_ASCII_CAST_WARN_CONSTRUCTOR
QChar(
char c);
77 QT_ASCII_CAST_WARN_CONSTRUCTOR QChar(uchar c);
79 QChar(QLatin1Char ch);
80 QChar(uchar c, uchar
r);
81 inline QChar(ushort rc) : ucs(rc){}
88 ReplacementCharacter = 0xfffd,
89 ObjectReplacementCharacter = 0xfffc,
90 ByteOrderMark = 0xfeff,
91 ByteOrderSwapped = 0xfffe,
94 replacement = ReplacementCharacter,
95 byteOrderMark = ByteOrderMark,
96 byteOrderSwapped = ByteOrderSwapped,
99 ParagraphSeparator = 0x2029,
100 LineSeparator = 0x2028
102 QChar(SpecialCharacter sc);
147 Punctuation_Dask = Punctuation_Dash
152 DirL, DirR, DirEN, DirES, DirET, DirAN, DirCS, DirB, DirS,
DirWS, DirON,
153 DirLRE, DirLRO, DirAL, DirRLE,
DirRLO, DirPDF, DirNSM, DirBN
178 , Single = NoDecomposition
189 Combining_BelowLeftAttached = 200,
190 Combining_BelowAttached = 202,
191 Combining_BelowRightAttached = 204,
192 Combining_LeftAttached = 208,
193 Combining_RightAttached = 210,
194 Combining_AboveLeftAttached = 212,
195 Combining_AboveAttached = 214,
196 Combining_AboveRightAttached = 216,
198 Combining_BelowLeft = 218,
199 Combining_Below = 220,
200 Combining_BelowRight = 222,
201 Combining_Left = 224,
202 Combining_Right = 226,
203 Combining_AboveLeft = 228,
204 Combining_Above = 230,
205 Combining_AboveRight = 232,
207 Combining_DoubleBelow = 233,
208 Combining_DoubleAbove = 234,
209 Combining_IotaSubscript = 240
227 Direction direction()
const;
228 Joining joining()
const;
229 bool hasMirrored()
const;
230 unsigned char combiningClass()
const;
232 QChar mirroredChar()
const;
233 QString decomposition()
const;
234 Decomposition decompositionTag()
const;
236 int digitValue()
const;
237 QChar toLower()
const;
238 QChar toUpper()
const;
239 QChar toTitleCase()
const;
240 QChar toCaseFolded()
const;
242 UnicodeVersion unicodeVersion()
const;
244 #ifdef Q_COMPILER_MANGLES_RETURN_TYPE
245 const char toAscii()
const;
246 inline const char toLatin1()
const;
247 inline const ushort unicode()
const {
return ucs; }
249 char toAscii()
const;
250 inline char toLatin1()
const;
253 #ifdef Q_NO_PACKED_REFERENCE
254 inline ushort &unicode() {
return const_cast<ushort&
>(ucs); }
259 static QChar fromAscii(
char c);
260 static QChar fromLatin1(
char c);
262 inline bool isNull()
const {
return ucs == 0; }
263 bool isPrint()
const;
264 bool isPunct()
const;
265 bool isSpace()
const;
267 bool isLetter()
const;
268 bool isNumber()
const;
269 bool isLetterOrNumber()
const;
270 bool isDigit()
const;
271 bool isSymbol()
const;
272 inline bool isLower()
const {
return category() == Letter_Lowercase; }
273 inline bool isUpper()
const {
return category() == Letter_Uppercase; }
274 inline bool isTitleCase()
const {
return category() == Letter_Titlecase; }
277 return ((ucs & 0xfc00) == 0xd800);
280 return ((ucs & 0xfc00) == 0xdc00);
283 inline uchar
cell()
const {
return uchar(ucs & 0xff); }
284 inline uchar
row()
const {
return uchar((ucs>>8)&0xff); }
285 inline void setCell(uchar cell);
286 inline void setRow(uchar
row);
289 return ((ucs4 & 0xfffffc00) == 0xd800);
292 return ((ucs4 & 0xfffffc00) == 0xdc00);
295 return (ucs4 >= 0x10000);
298 return (uint(high)<<10) + low - 0x35fdc00;
301 return (uint(high.ucs)<<10) + low.ucs - 0x35fdc00;
304 return ushort((ucs4>>10) + 0xd7c0);
307 return ushort(ucs4%0x400 + 0xdc00);
310 static Category QT_FASTCALL category(uint ucs4);
311 static Category QT_FASTCALL category(ushort ucs2);
312 static Direction QT_FASTCALL direction(uint ucs4);
313 static Direction QT_FASTCALL direction(ushort ucs2);
314 static Joining QT_FASTCALL joining(uint ucs4);
315 static Joining QT_FASTCALL joining(ushort ucs2);
316 static unsigned char QT_FASTCALL combiningClass(uint ucs4);
317 static unsigned char QT_FASTCALL combiningClass(ushort ucs2);
319 static uint QT_FASTCALL mirroredChar(uint ucs4);
320 static ushort QT_FASTCALL mirroredChar(ushort ucs2);
321 static Decomposition QT_FASTCALL decompositionTag(uint ucs4);
323 static int QT_FASTCALL digitValue(uint ucs4);
324 static int QT_FASTCALL digitValue(ushort ucs2);
325 static uint QT_FASTCALL toLower(uint ucs4);
326 static ushort QT_FASTCALL toLower(ushort ucs2);
327 static uint QT_FASTCALL toUpper(uint ucs4);
328 static ushort QT_FASTCALL toUpper(ushort ucs2);
329 static uint QT_FASTCALL toTitleCase(uint ucs4);
330 static ushort QT_FASTCALL toTitleCase(ushort ucs2);
331 static uint QT_FASTCALL toCaseFolded(uint ucs4);
332 static ushort QT_FASTCALL toCaseFolded(ushort ucs2);
334 static UnicodeVersion QT_FASTCALL unicodeVersion(uint ucs4);
335 static UnicodeVersion QT_FASTCALL unicodeVersion(ushort ucs2);
337 static UnicodeVersion QT_FASTCALL currentUnicodeVersion();
339 static QString QT_FASTCALL decomposition(uint ucs4);
342 inline QT3_SUPPORT
bool mirrored()
const {
return hasMirrored(); }
343 inline QT3_SUPPORT QChar lower()
const {
return toLower(); }
344 inline QT3_SUPPORT QChar upper()
const {
return toUpper(); }
345 static inline QT3_SUPPORT
bool networkOrdered() {
346 return QSysInfo::ByteOrder == QSysInfo::BigEndian;
348 #ifdef Q_COMPILER_MANGLES_RETURN_TYPE
349 inline QT3_SUPPORT
const char latin1()
const {
return toLatin1(); }
350 inline QT3_SUPPORT
const char ascii()
const {
return toAscii(); }
352 inline QT3_SUPPORT
char latin1()
const {
return toLatin1(); }
353 inline QT3_SUPPORT
char ascii()
const {
return toAscii(); }
358 #ifdef QT_NO_CAST_FROM_ASCII
364 #if (defined(__arm__) && defined(QT_NO_ARM_EABI))
373 #ifdef Q_COMPILER_MANGLES_RETURN_TYPE
374 inline const char QChar::toLatin1()
const {
return ucs > 0xff ?
'\0' : char(ucs); }
388 { ucs = ushort((ucs & 0xff00) + acell); }
390 { ucs = ushort((ushort(arow)<<8) + (ucs&0xff)); }
399 #ifndef QT_NO_DATASTREAM
GLdouble GLdouble GLdouble r
bool operator>(QChar c1, QChar c2)
bool operator!=(QChar c1, QChar c2)
bool operator<=(QChar c1, QChar c2)
Q_CORE_EXPORT QDataStream & operator>>(QDataStream &, QChar &)
Q_CORE_EXPORT QDataStream & operator<<(QDataStream &, const QChar &)
static QChar fromLatin1(char c)
GLenum GLenum GLvoid * row
#define QT_BEGIN_NAMESPACE
bool isHighSurrogate() const
static uint surrogateToUcs4(QChar high, QChar low)
Q_DECLARE_TYPEINFO(QChar, Q_MOVABLE_TYPE)
Category
Set's the category your program should be listed in in the mixer.
static bool isHighSurrogate(uint ucs4)
bool operator<(QChar c1, QChar c2)
bool isLowSurrogate() const
static bool requiresSurrogates(uint ucs4)
static ushort highSurrogate(uint ucs4)
static ushort lowSurrogate(uint ucs4)
static bool isLowSurrogate(uint ucs4)
bool operator>=(QChar c1, QChar c2)
bool operator==(QChar c1, QChar c2)
static uint surrogateToUcs4(ushort high, ushort low)