1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QChar Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">  </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QChar Class Reference<br /><sup><sup>[<a href="qtcore.html">QtCore</a> module]</sup></sup></h1><p>The QChar class provides a 16-bit Unicode character. <a href="#details">More...</a></p>
<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qchar.html#Category-enum">Category</a></b> { NoCategory, Mark_NonSpacing, Mark_SpacingCombining, Mark_Enclosing, ..., Punctuation_Dask }</li><li><div class="fn" />enum <b><a href="qchar.html#CombiningClass-enum">CombiningClass</a></b> { Combining_BelowLeftAttached, Combining_BelowAttached, Combining_BelowRightAttached, Combining_LeftAttached, ..., Combining_IotaSubscript }</li><li><div class="fn" />enum <b><a href="qchar.html#Decomposition-enum">Decomposition</a></b> { NoDecomposition, Canonical, Font, NoBreak, ..., Fraction }</li><li><div class="fn" />enum <b><a href="qchar.html#Direction-enum">Direction</a></b> { DirL, DirR, DirEN, DirES, ..., DirBN }</li><li><div class="fn" />enum <b><a href="qchar.html#Joining-enum">Joining</a></b> { OtherJoining, Dual, Right, Center }</li><li><div class="fn" />enum <b><a href="qchar.html#SpecialCharacter-enum">SpecialCharacter</a></b> { Null, Nbsp, ReplacementCharacter, ObjectReplacementCharacter, ..., LineSeparator }</li><li><div class="fn" />enum <b><a href="qchar.html#UnicodeVersion-enum">UnicodeVersion</a></b> { Unicode_Unassigned, Unicode_1_1, Unicode_2_0, Unicode_2_1_2, ..., Unicode_5_0 }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qchar.html#QChar">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qchar.html#QChar-2">__init__</a></b> (<i>self</i>, str <i>c</i>)</li><li><div class="fn" /><b><a href="qchar.html#QChar-3">__init__</a></b> (<i>self</i>, QLatin1Char <i>ch</i>)</li><li><div class="fn" /><b><a href="qchar.html#QChar-4">__init__</a></b> (<i>self</i>, str <i>c</i>, str <i>r</i>)</li><li><div class="fn" /><b><a href="qchar.html#QChar-5">__init__</a></b> (<i>self</i>, int <i>rc</i>)</li><li><div class="fn" /><b><a href="qchar.html#QChar-6">__init__</a></b> (<i>self</i>, SpecialCharacter <i>s</i>)</li><li><div class="fn" /><b><a href="qchar.html#QChar-7">__init__</a></b> (<i>self</i>, QChar)</li><li><div class="fn" />Category <b><a href="qchar.html#category">category</a></b> (<i>self</i>)</li><li><div class="fn" />str <b><a href="qchar.html#cell">cell</a></b> (<i>self</i>)</li><li><div class="fn" />str <b><a href="qchar.html#combiningClass">combiningClass</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qchar.html#decomposition">decomposition</a></b> (<i>self</i>)</li><li><div class="fn" />Decomposition <b><a href="qchar.html#decompositionTag">decompositionTag</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qchar.html#digitValue">digitValue</a></b> (<i>self</i>)</li><li><div class="fn" />Direction <b><a href="qchar.html#direction">direction</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#hasMirrored">hasMirrored</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isDigit">isDigit</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isHighSurrogate">isHighSurrogate</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isLetter">isLetter</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isLetterOrNumber">isLetterOrNumber</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isLower">isLower</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isLowSurrogate">isLowSurrogate</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isMark">isMark</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isNull">isNull</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isNumber">isNumber</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isPrint">isPrint</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isPunct">isPunct</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isSpace">isSpace</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isSymbol">isSymbol</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isTitleCase">isTitleCase</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isUpper">isUpper</a></b> (<i>self</i>)</li><li><div class="fn" />Joining <b><a href="qchar.html#joining">joining</a></b> (<i>self</i>)</li><li><div class="fn" />QChar <b><a href="qchar.html#mirroredChar">mirroredChar</a></b> (<i>self</i>)</li><li><div class="fn" />str <b><a href="qchar.html#row">row</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qchar.html#setCell">setCell</a></b> (<i>self</i>, str <i>acell</i>)</li><li><div class="fn" /><b><a href="qchar.html#setRow">setRow</a></b> (<i>self</i>, str <i>arow</i>)</li><li><div class="fn" />str <b><a href="qchar.html#toAscii">toAscii</a></b> (<i>self</i>)</li><li><div class="fn" />QChar <b><a href="qchar.html#toCaseFolded">toCaseFolded</a></b> (<i>self</i>)</li><li><div class="fn" />str <b><a href="qchar.html#toLatin1">toLatin1</a></b> (<i>self</i>)</li><li><div class="fn" />QChar <b><a href="qchar.html#toLower">toLower</a></b> (<i>self</i>)</li><li><div class="fn" />QChar <b><a href="qchar.html#toTitleCase">toTitleCase</a></b> (<i>self</i>)</li><li><div class="fn" />QChar <b><a href="qchar.html#toUpper">toUpper</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qchar.html#unicode">unicode</a></b> (<i>self</i>)</li><li><div class="fn" />UnicodeVersion <b><a href="qchar.html#unicodeVersion">unicodeVersion</a></b> (<i>self</i>)</li></ul><h3>Static Methods</h3><ul><li><div class="fn" />Category <b><a href="qchar.html#category-2">category</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />str <b><a href="qchar.html#combiningClass-2">combiningClass</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />UnicodeVersion <b><a href="qchar.html#currentUnicodeVersion">currentUnicodeVersion</a></b> ()</li><li><div class="fn" />QString <b><a href="qchar.html#decomposition-2">decomposition</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />Decomposition <b><a href="qchar.html#decompositionTag-2">decompositionTag</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />int <b><a href="qchar.html#digitValue-2">digitValue</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />Direction <b><a href="qchar.html#direction-2">direction</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />QChar <b><a href="qchar.html#fromAscii">fromAscii</a></b> (str <i>c</i>)</li><li><div class="fn" />QChar <b><a href="qchar.html#fromLatin1">fromLatin1</a></b> (str <i>c</i>)</li><li><div class="fn" />int <b><a href="qchar.html#highSurrogate">highSurrogate</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isHighSurrogate-2">isHighSurrogate</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#isLowSurrogate-2">isLowSurrogate</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />Joining <b><a href="qchar.html#joining-2">joining</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />int <b><a href="qchar.html#lowSurrogate">lowSurrogate</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />int <b><a href="qchar.html#mirroredChar-2">mirroredChar</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#requiresSurrogates">requiresSurrogates</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />int <b><a href="qchar.html#surrogateToUcs4">surrogateToUcs4</a></b> (int <i>high</i>, int <i>low</i>)</li><li><div class="fn" />int <b><a href="qchar.html#surrogateToUcs4-2">surrogateToUcs4</a></b> (QChar <i>high</i>, QChar <i>low</i>)</li><li><div class="fn" />int <b><a href="qchar.html#toCaseFolded-2">toCaseFolded</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />int <b><a href="qchar.html#toLower-2">toLower</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />int <b><a href="qchar.html#toTitleCase-2">toTitleCase</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />int <b><a href="qchar.html#toUpper-2">toUpper</a></b> (int <i>ucs4</i>)</li><li><div class="fn" />UnicodeVersion <b><a href="qchar.html#unicodeVersion-2">unicodeVersion</a></b> (int <i>ucs4</i>)</li></ul><h3>Special Methods</h3><ul><li><div class="fn" />QString <b><a href="qchar.html#__add__">__add__</a></b> (<i>self</i>, QString <i>s2</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#__eq__">__eq__</a></b> (<i>self</i>, QChar <i>c2</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#__ge__">__ge__</a></b> (<i>self</i>, QChar <i>c2</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#__gt__">__gt__</a></b> (<i>self</i>, QChar <i>c2</i>)</li><li><div class="fn" />int <b><a href="qchar.html#__hash__">__hash__</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#__le__">__le__</a></b> (<i>self</i>, QChar <i>c2</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#__lt__">__lt__</a></b> (<i>self</i>, QChar <i>c2</i>)</li><li><div class="fn" />bool <b><a href="qchar.html#__ne__">__ne__</a></b> (<i>self</i>, QChar <i>c2</i>)</li><li><div class="fn" />str <b><a href="qchar.html#__repr__">__repr__</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>This class can be pickled.</p><p>The QChar class provides a 16-bit Unicode character.</p>
<p>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 <tt>unsigned short</tt>.</p>
<p>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.</p>
<p>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 <a href="qchar.html#isNull">isNull</a>() (returns true if the character is
'\0'), <a href="qchar.html#isPrint">isPrint</a>() (true if the
character is any sort of printable character, including
whitespace), <a href="qchar.html#isPunct">isPunct</a>() (any sort
of punctation), <a href="qchar.html#isMark">isMark</a>() (Unicode
Mark), <a href="qchar.html#isLetter">isLetter</a>() (a letter),
<a href="qchar.html#isNumber">isNumber</a>() (any sort of numeric
character, not just 0-9), <a href="qchar.html#isLetterOrNumber">isLetterOrNumber</a>(), and <a href="qchar.html#isDigit">isDigit</a>() (decimal digits). All of these
are wrappers around <a href="qchar.html#category">category</a>()
which return the Unicode-defined category of each character.</p>
<p>QChar also provides <a href="qchar.html#direction">direction</a>(), which indicates the
"natural" writing direction of this character. The <a href="qchar.html#joining">joining</a>() function indicates how the
character joins with its neighbors (needed mostly for Arabic) and
finally <a href="qchar.html#hasMirrored">hasMirrored</a>(), which
indicates whether the character needs to be mirrored when it is
printed in its "unnatural" writing direction.</p>
<p>Composed Unicode characters (like å) can be converted to
decomposed Unicode ("a" followed by "ring above") by using <a href="qchar.html#decomposition">decomposition</a>().</p>
<p>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
<a href="qchar.html#toUpper">toUpper</a>() and <a href="qchar.html#toLower">toLower</a>() will do case changes when the
character has a well-defined uppercase/lowercase equivalent. For
locale-dependent comparisons, use <a href="qstring.html#localeAwareCompare">QString.localeAwareCompare</a>().</p>
<p>The conversion functions include <a href="qchar.html#unicode">unicode</a>() (to a scalar), <a href="qchar.html#toLatin1">toLatin1</a>() (to scalar, but converts all
non-Latin-1 characters to 0), <a href="qchar.html#row">row</a>()
(gives the Unicode row), <a href="qchar.html#cell">cell</a>()
(gives the Unicode cell), <a href="qchar.html#digitValue">digitValue</a>() (gives the integer value
of any of the numerous digit characters), and a host of
constructors.</p>
<p>QChar provides constructors and cast operators that make it easy
to convert to and from traditional 8-bit <tt>char</tt>s. If you
defined <tt>QT_NO_CAST_FROM_ASCII</tt> and
<tt>QT_NO_CAST_TO_ASCII</tt>, as explained in the <a href="qstring.html">QString</a> documentation, you will need to
explicitly call <a href="qchar.html#fromAscii">fromAscii</a>() or
<a href="qchar.html#fromLatin1">fromLatin1</a>(), or use <a href="qlatin1char.html">QLatin1Char</a>, to construct a QChar from an
8-bit <tt>char</tt>, and you will need to call <a href="qchar.html#toAscii">toAscii</a>() or <a href="qchar.html#toLatin1">toLatin1</a>() to get the 8-bit value
back.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="Category-enum" />QChar.Category</h3><p>This enum maps the Unicode character categories.</p>
<p>The following characters are normative in Unicode:</p>
<table class="valuelist">
<tr class="odd" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Mark_NonSpacing</tt></td>
<td class="topAlign"><tt>1</tt></td>
<td class="topAlign">Unicode class name Mn</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Mark_SpacingCombining</tt></td>
<td class="topAlign"><tt>2</tt></td>
<td class="topAlign">Unicode class name Mc</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Mark_Enclosing</tt></td>
<td class="topAlign"><tt>3</tt></td>
<td class="topAlign">Unicode class name Me</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Number_DecimalDigit</tt></td>
<td class="topAlign"><tt>4</tt></td>
<td class="topAlign">Unicode class name Nd</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Number_Letter</tt></td>
<td class="topAlign"><tt>5</tt></td>
<td class="topAlign">Unicode class name Nl</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Number_Other</tt></td>
<td class="topAlign"><tt>6</tt></td>
<td class="topAlign">Unicode class name No</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Separator_Space</tt></td>
<td class="topAlign"><tt>7</tt></td>
<td class="topAlign">Unicode class name Zs</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Separator_Line</tt></td>
<td class="topAlign"><tt>8</tt></td>
<td class="topAlign">Unicode class name Zl</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Separator_Paragraph</tt></td>
<td class="topAlign"><tt>9</tt></td>
<td class="topAlign">Unicode class name Zp</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Other_Control</tt></td>
<td class="topAlign"><tt>10</tt></td>
<td class="topAlign">Unicode class name Cc</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Other_Format</tt></td>
<td class="topAlign"><tt>11</tt></td>
<td class="topAlign">Unicode class name Cf</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Other_Surrogate</tt></td>
<td class="topAlign"><tt>12</tt></td>
<td class="topAlign">Unicode class name Cs</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Other_PrivateUse</tt></td>
<td class="topAlign"><tt>13</tt></td>
<td class="topAlign">Unicode class name Co</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Other_NotAssigned</tt></td>
<td class="topAlign"><tt>14</tt></td>
<td class="topAlign">Unicode class name Cn</td>
</tr>
</table>
<p>The following categories are informative in Unicode:</p>
<table class="valuelist">
<tr class="even" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Letter_Uppercase</tt></td>
<td class="topAlign"><tt>15</tt></td>
<td class="topAlign">Unicode class name Lu</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Letter_Lowercase</tt></td>
<td class="topAlign"><tt>16</tt></td>
<td class="topAlign">Unicode class name Ll</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Letter_Titlecase</tt></td>
<td class="topAlign"><tt>17</tt></td>
<td class="topAlign">Unicode class name Lt</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Letter_Modifier</tt></td>
<td class="topAlign"><tt>18</tt></td>
<td class="topAlign">Unicode class name Lm</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Letter_Other</tt></td>
<td class="topAlign"><tt>19</tt></td>
<td class="topAlign">Unicode class name Lo</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Punctuation_Connector</tt></td>
<td class="topAlign"><tt>20</tt></td>
<td class="topAlign">Unicode class name Pc</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Punctuation_Dash</tt></td>
<td class="topAlign"><tt>21</tt></td>
<td class="topAlign">Unicode class name Pd</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Punctuation_Open</tt></td>
<td class="topAlign"><tt>22</tt></td>
<td class="topAlign">Unicode class name Ps</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Punctuation_Close</tt></td>
<td class="topAlign"><tt>23</tt></td>
<td class="topAlign">Unicode class name Pe</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Punctuation_InitialQuote</tt></td>
<td class="topAlign"><tt>24</tt></td>
<td class="topAlign">Unicode class name Pi</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Punctuation_FinalQuote</tt></td>
<td class="topAlign"><tt>25</tt></td>
<td class="topAlign">Unicode class name Pf</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Punctuation_Other</tt></td>
<td class="topAlign"><tt>26</tt></td>
<td class="topAlign">Unicode class name Po</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Symbol_Math</tt></td>
<td class="topAlign"><tt>27</tt></td>
<td class="topAlign">Unicode class name Sm</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Symbol_Currency</tt></td>
<td class="topAlign"><tt>28</tt></td>
<td class="topAlign">Unicode class name Sc</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Symbol_Modifier</tt></td>
<td class="topAlign"><tt>29</tt></td>
<td class="topAlign">Unicode class name Sk</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Symbol_Other</tt></td>
<td class="topAlign"><tt>30</tt></td>
<td class="topAlign">Unicode class name So</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.NoCategory</tt></td>
<td class="topAlign"><tt>0</tt></td>
<td class="topAlign">Qt cannot find an appropriate category for the
character.</td>
</tr>
</table>
<p><b>See also</b> <a href="qchar.html#category">category</a>().</p>
<h3 class="fn"><a name="CombiningClass-enum" />QChar.CombiningClass</h3><h3 class="fn"><a name="Decomposition-enum" />QChar.Decomposition</h3><p>This enum type defines the Unicode decomposition attributes. See
the <a href="http://www.unicode.org/">Unicode Standard</a> for a
description of the values.</p>
<table class="valuelist">
<tr>
<th class="tblConst">Constant</th>
<th class="tblVal">Value</th>
</tr>
<tr>
<td class="topAlign"><tt>QChar.NoDecomposition</tt></td>
<td class="topAlign"><tt>0</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Canonical</tt></td>
<td class="topAlign"><tt>1</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Circle</tt></td>
<td class="topAlign"><tt>8</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Compat</tt></td>
<td class="topAlign"><tt>16</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Final</tt></td>
<td class="topAlign"><tt>6</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Font</tt></td>
<td class="topAlign"><tt>2</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Fraction</tt></td>
<td class="topAlign"><tt>17</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Initial</tt></td>
<td class="topAlign"><tt>4</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Isolated</tt></td>
<td class="topAlign"><tt>7</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Medial</tt></td>
<td class="topAlign"><tt>5</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Narrow</tt></td>
<td class="topAlign"><tt>13</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.NoBreak</tt></td>
<td class="topAlign"><tt>3</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Small</tt></td>
<td class="topAlign"><tt>14</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Square</tt></td>
<td class="topAlign"><tt>15</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Sub</tt></td>
<td class="topAlign"><tt>10</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Super</tt></td>
<td class="topAlign"><tt>9</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Vertical</tt></td>
<td class="topAlign"><tt>11</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Wide</tt></td>
<td class="topAlign"><tt>12</tt></td>
</tr>
</table>
<p><b>See also</b> <a href="qchar.html#decomposition">decomposition</a>().</p>
<h3 class="fn"><a name="Direction-enum" />QChar.Direction</h3><p>This enum type defines the Unicode direction attributes. See the
<a href="http://www.unicode.org/">Unicode Standard</a> for a
description of the values.</p>
<p>In order to conform to C/C++ naming conventions "Dir" is
prepended to the codes used in the Unicode Standard.</p>
<table class="valuelist">
<tr>
<th class="tblConst">Constant</th>
<th class="tblVal">Value</th>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirAL</tt></td>
<td class="topAlign"><tt>13</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirAN</tt></td>
<td class="topAlign"><tt>5</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirB</tt></td>
<td class="topAlign"><tt>7</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirBN</tt></td>
<td class="topAlign"><tt>18</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirCS</tt></td>
<td class="topAlign"><tt>6</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirEN</tt></td>
<td class="topAlign"><tt>2</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirES</tt></td>
<td class="topAlign"><tt>3</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirET</tt></td>
<td class="topAlign"><tt>4</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirL</tt></td>
<td class="topAlign"><tt>0</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirLRE</tt></td>
<td class="topAlign"><tt>11</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirLRO</tt></td>
<td class="topAlign"><tt>12</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirNSM</tt></td>
<td class="topAlign"><tt>17</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirON</tt></td>
<td class="topAlign"><tt>10</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirPDF</tt></td>
<td class="topAlign"><tt>16</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirR</tt></td>
<td class="topAlign"><tt>1</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirRLE</tt></td>
<td class="topAlign"><tt>14</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirRLO</tt></td>
<td class="topAlign"><tt>15</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirS</tt></td>
<td class="topAlign"><tt>8</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.DirWS</tt></td>
<td class="topAlign"><tt>9</tt></td>
</tr>
</table>
<p><b>See also</b> <a href="qchar.html#direction">direction</a>().</p>
<h3 class="fn"><a name="Joining-enum" />QChar.Joining</h3><p>This enum type defines the Unicode joining attributes. See the
<a href="http://www.unicode.org/">Unicode Standard</a> for a
description of the values.</p>
<table class="valuelist">
<tr>
<th class="tblConst">Constant</th>
<th class="tblVal">Value</th>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Center</tt></td>
<td class="topAlign"><tt>3</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Dual</tt></td>
<td class="topAlign"><tt>1</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.OtherJoining</tt></td>
<td class="topAlign"><tt>0</tt></td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Right</tt></td>
<td class="topAlign"><tt>2</tt></td>
</tr>
</table>
<p><b>See also</b> <a href="qchar.html#joining">joining</a>().</p>
<h3 class="fn"><a name="SpecialCharacter-enum" />QChar.SpecialCharacter</h3><table class="valuelist">
<tr class="odd" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Null</tt></td>
<td class="topAlign"><tt>0x0000</tt></td>
<td class="topAlign">A <a href="qchar.html">QChar</a> with this
value <a href="qchar.html#isNull">isNull</a>().</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Nbsp</tt></td>
<td class="topAlign"><tt>0x00a0</tt></td>
<td class="topAlign">Non-breaking space.</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.ReplacementCharacter</tt></td>
<td class="topAlign"><tt>0xfffd</tt></td>
<td class="topAlign">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.</td>
</tr>
<tr>
<td class="topAlign">
<tt>QChar.ObjectReplacementCharacter</tt></td>
<td class="topAlign"><tt>0xfffc</tt></td>
<td class="topAlign">Used to represent an object such as an image
when such objects cannot be presented.</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.ByteOrderMark</tt></td>
<td class="topAlign"><tt>0xfeff</tt></td>
<td class="topAlign"> </td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.ByteOrderSwapped</tt></td>
<td class="topAlign"><tt>0xfffe</tt></td>
<td class="topAlign"> </td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.ParagraphSeparator</tt></td>
<td class="topAlign"><tt>0x2029</tt></td>
<td class="topAlign"> </td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.LineSeparator</tt></td>
<td class="topAlign"><tt>0x2028</tt></td>
<td class="topAlign"> </td>
</tr>
</table>
<h3 class="fn"><a name="UnicodeVersion-enum" />QChar.UnicodeVersion</h3><p>Specifies which version of the <a href="http://www.unicode.org/">Unicode standard</a> introduced a certain
character.</p>
<table class="valuelist">
<tr class="odd" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Unicode_1_1</tt></td>
<td class="topAlign"><tt>1</tt></td>
<td class="topAlign">Version 1.1</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Unicode_2_0</tt></td>
<td class="topAlign"><tt>2</tt></td>
<td class="topAlign">Version 2.0</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Unicode_2_1_2</tt></td>
<td class="topAlign"><tt>3</tt></td>
<td class="topAlign">Version 2.1.2</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Unicode_3_0</tt></td>
<td class="topAlign"><tt>4</tt></td>
<td class="topAlign">Version 3.0</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Unicode_3_1</tt></td>
<td class="topAlign"><tt>5</tt></td>
<td class="topAlign">Version 3.1</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Unicode_3_2</tt></td>
<td class="topAlign"><tt>6</tt></td>
<td class="topAlign">Version 3.2</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Unicode_4_0</tt></td>
<td class="topAlign"><tt>7</tt></td>
<td class="topAlign">Version 4.0</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Unicode_4_1</tt></td>
<td class="topAlign"><tt>8</tt></td>
<td class="topAlign">Version 4.1</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Unicode_5_0</tt></td>
<td class="topAlign"><tt>9</tt></td>
<td class="topAlign">Version 5.0</td>
</tr>
<tr>
<td class="topAlign"><tt>QChar.Unicode_Unassigned</tt></td>
<td class="topAlign"><tt>0</tt></td>
<td class="topAlign">The value is not assigned to any character in
version 5.0 of Unicode.</td>
</tr>
</table>
<p><b>See also</b> <a href="qchar.html#unicodeVersion">unicodeVersion</a>().</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QChar" />QChar.__init__ (<i>self</i>)</h3><p>Constructs a null <a href="qchar.html">QChar</a> ('\0').</p>
<p><b>See also</b> <a href="qchar.html#isNull">isNull</a>().</p>
<h3 class="fn"><a name="QChar-2" />QChar.__init__ (<i>self</i>, str <i>c</i>)</h3><p>Constructs a <a href="qchar.html">QChar</a> corresponding to
ASCII/Latin-1 character <i>ch</i>.</p>
<h3 class="fn"><a name="QChar-3" />QChar.__init__ (<i>self</i>, <a href="qlatin1char.html">QLatin1Char</a> <i>ch</i>)</h3><p>Constructs a <a href="qchar.html">QChar</a> corresponding to
ASCII/Latin-1 character <i>ch</i>.</p>
<h3 class="fn"><a name="QChar-4" />QChar.__init__ (<i>self</i>, str <i>c</i>, str <i>r</i>)</h3><p>Constructs a <a href="qchar.html">QChar</a> corresponding to
ASCII/Latin-1 character <i>ch</i>.</p>
<h3 class="fn"><a name="QChar-5" />QChar.__init__ (<i>self</i>, int <i>rc</i>)</h3><p>Constructs a <a href="qchar.html">QChar</a> for Unicode cell
<i>cell</i> in row <i>row</i>.</p>
<p><b>See also</b> <a href="qchar.html#cell">cell</a>() and
<a href="qchar.html#row">row</a>().</p>
<h3 class="fn"><a name="QChar-6" />QChar.__init__ (<i>self</i>, <a href="qchar.html#SpecialCharacter-enum">SpecialCharacter</a> <i>s</i>)</h3><p>Constructs a <a href="qchar.html">QChar</a> for the character
with Unicode code point <i>code</i>.</p>
<h3 class="fn"><a name="QChar-7" />QChar.__init__ (<i>self</i>, <a href="qchar.html">QChar</a>)</h3><p>Constructs a <a href="qchar.html">QChar</a> for the character
with Unicode code point <i>code</i>.</p>
<h3 class="fn"><a name="category" /><a href="qchar.html#Category-enum">Category</a> QChar.category (<i>self</i>)</h3><p>Returns the character's category.</p>
<h3 class="fn"><a name="category-2" /><a href="qchar.html#Category-enum">Category</a> QChar.category (int <i>ucs4</i>)</h3><p>This is an overloaded function.</p>
<p>Returns the category of the UCS-4-encoded character specified by
<i>ucs4</i>.</p>
<p>This function was introduced in Qt 4.3.</p>
<h3 class="fn"><a name="cell" />str QChar.cell (<i>self</i>)</h3><p>Returns the cell (least significant byte) of the Unicode
character.</p>
<p><b>See also</b> <a href="qchar.html#row">row</a>().</p>
<h3 class="fn"><a name="combiningClass" />str QChar.combiningClass (<i>self</i>)</h3><p>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.</p>
<p>The Qt text rendering engine uses this information to correctly
position non-spacing marks around a base character.</p>
<h3 class="fn"><a name="combiningClass-2" />str QChar.combiningClass (int <i>ucs4</i>)</h3><p>This is an overloaded function.</p>
<p>Returns the combining class for the UCS-4-encoded character
specified by <i>ucs4</i>, as defined in the Unicode standard.</p>
<h3 class="fn"><a name="currentUnicodeVersion" /><a href="qchar.html#UnicodeVersion-enum">UnicodeVersion</a> QChar.currentUnicodeVersion ()</h3><p>Returns the most recent supported Unicode version.</p>
<p>This function was introduced in Qt 4.8.</p>
<h3 class="fn"><a name="decomposition" />QString QChar.decomposition (<i>self</i>)</h3><p>Decomposes a character into its parts. Returns an empty string
if no decomposition exists.</p>
<h3 class="fn"><a name="decomposition-2" />QString QChar.decomposition (int <i>ucs4</i>)</h3><p>This is an overloaded function.</p>
<p>Decomposes the UCS-4-encoded character specified by <i>ucs4</i>
into its constituent parts. Returns an empty string if no
decomposition exists.</p>
<h3 class="fn"><a name="decompositionTag" /><a href="qchar.html#Decomposition-enum">Decomposition</a> QChar.decompositionTag (<i>self</i>)</h3><p>Returns the tag defining the composition of the character.
Returns <a href="qchar.html#Decomposition-enum">QChar.Single</a>
if no decomposition exists.</p>
<h3 class="fn"><a name="decompositionTag-2" /><a href="qchar.html#Decomposition-enum">Decomposition</a> QChar.decompositionTag (int <i>ucs4</i>)</h3><p>This is an overloaded function.</p>
<p>Returns the tag defining the composition of the UCS-4-encoded
character specified by <i>ucs4</i>. Returns <a href="qchar.html#Decomposition-enum">QChar.Single</a> if no
decomposition exists.</p>
<h3 class="fn"><a name="digitValue" />int QChar.digitValue (<i>self</i>)</h3><p>Returns the numeric value of the digit, or -1 if the character
is not a digit.</p>
<h3 class="fn"><a name="digitValue-2" />int QChar.digitValue (int <i>ucs4</i>)</h3><p>This is an overloaded function.</p>
<p>Returns the numeric value of the digit, specified by the
UCS-2-encoded character, <i>ucs2</i>, or -1 if the character is not
a digit.</p>
<h3 class="fn"><a name="direction" /><a href="qchar.html#Direction-enum">Direction</a> QChar.direction (<i>self</i>)</h3><p>Returns the character's direction.</p>
<h3 class="fn"><a name="direction-2" /><a href="qchar.html#Direction-enum">Direction</a> QChar.direction (int <i>ucs4</i>)</h3><p>This is an overloaded function.</p>
<p>Returns the direction of the UCS-4-encoded character specified
by <i>ucs4</i>.</p>
<h3 class="fn"><a name="fromAscii" />QChar QChar.fromAscii (str <i>c</i>)</h3><p>Converts the ASCII character <i>c</i> to its equivalent <a href="qchar.html">QChar</a>. This is mainly useful for
non-internationalized software.</p>
<p>An alternative is to use <a href="qlatin1char.html">QLatin1Char</a>.</p>
<p><b>See also</b> <a href="qchar.html#fromLatin1">fromLatin1</a>(), <a href="qchar.html#unicode">unicode</a>(), and <a href="qtextcodec.html#codecForCStrings">QTextCodec.codecForCStrings</a>().</p>
<h3 class="fn"><a name="fromLatin1" />QChar QChar.fromLatin1 (str <i>c</i>)</h3><p>Converts the Latin-1 character <i>c</i> to its equivalent
<a href="qchar.html">QChar</a>. This is mainly useful for
non-internationalized software.</p>
<p><b>See also</b> <a href="qchar.html#fromAscii">fromAscii</a>(),
<a href="qchar.html#unicode">unicode</a>(), and <a href="qtextcodec.html#codecForCStrings">QTextCodec.codecForCStrings</a>().</p>
<h3 class="fn"><a name="hasMirrored" />bool QChar.hasMirrored (<i>self</i>)</h3><p>Returns true if the character should be reversed if the text
direction is reversed; otherwise returns false.</p>
<p>Same as (ch.<a href="qchar.html#mirroredChar">mirroredChar</a>()
!= ch).</p>
<p><b>See also</b> <a href="qchar.html#mirroredChar">mirroredChar</a>().</p>
<h3 class="fn"><a name="highSurrogate" />int QChar.highSurrogate (int <i>ucs4</i>)</h3><p>Returns the high surrogate value of a ucs4 code point. The
returned result is undefined if <i>ucs4</i> is smaller than
0x10000.</p>
<h3 class="fn"><a name="isDigit" />bool QChar.isDigit (<i>self</i>)</h3><p>Returns true if the character is a decimal digit (<a href="qchar.html#Category-enum">Number_DecimalDigit</a>); otherwise
returns false.</p>
<h3 class="fn"><a name="isHighSurrogate" />bool QChar.isHighSurrogate (<i>self</i>)</h3><p>Returns true if the <a href="qchar.html">QChar</a> is the high
part of a utf16 surrogate (ie. if its code point is between 0xd800
and 0xdbff, inclusive).</p>
<h3 class="fn"><a name="isHighSurrogate-2" />bool QChar.isHighSurrogate (int <i>ucs4</i>)</h3><p>Returns true if the UCS-4-encoded character specified by
<i>ucs4</i> is the high part of a utf16 surrogate (ie. if its code
point is between 0xd800 and 0xdbff, inclusive).</p>
<p>This function was introduced in Qt 4.7.</p>
<h3 class="fn"><a name="isLetter" />bool QChar.isLetter (<i>self</i>)</h3><p>Returns true if the character is a letter (Letter_* categories);
otherwise returns false.</p>
<h3 class="fn"><a name="isLetterOrNumber" />bool QChar.isLetterOrNumber (<i>self</i>)</h3><p>Returns true if the character is a letter or number (Letter_* or
<a href="stylesheet-reference.html#number">Number_</a>*
categories); otherwise returns false.</p>
<h3 class="fn"><a name="isLower" />bool QChar.isLower (<i>self</i>)</h3><p>Returns true if the character is a lowercase letter, i.e.
<a href="qchar.html#category">category</a>() is <a href="qchar.html#Category-enum">Letter_Lowercase</a>.</p>
<p><b>See also</b> <a href="qchar.html#isUpper">isUpper</a>(),
<a href="qchar.html#toLower">toLower</a>(), and <a href="qchar.html#toUpper">toUpper</a>().</p>
<h3 class="fn"><a name="isLowSurrogate" />bool QChar.isLowSurrogate (<i>self</i>)</h3><p>Returns true if the <a href="qchar.html">QChar</a> is the low
part of a utf16 surrogate (ie. if its code point is between 0xdc00
and 0xdfff, inclusive).</p>
<h3 class="fn"><a name="isLowSurrogate-2" />bool QChar.isLowSurrogate (int <i>ucs4</i>)</h3><p>Returns true if the UCS-4-encoded character specified by
<i>ucs4</i> is the low part of a utf16 surrogate (ie. if its code
point is between 0xdc00 and 0xdfff, inclusive).</p>
<p>This function was introduced in Qt 4.7.</p>
<h3 class="fn"><a name="isMark" />bool QChar.isMark (<i>self</i>)</h3><p>Returns true if the character is a mark (Mark_* categories);
otherwise returns false.</p>
<p>See <a href="qchar.html#Category-enum">QChar.Category</a> for
more information regarding marks.</p>
<h3 class="fn"><a name="isNull" />bool QChar.isNull (<i>self</i>)</h3><p>Returns true if the character is the Unicode character 0x0000
('\0'); otherwise returns false.</p>
<h3 class="fn"><a name="isNumber" />bool QChar.isNumber (<i>self</i>)</h3><p>Returns true if the character is a number (<a href="stylesheet-reference.html#number">Number_</a>* categories, not
just 0-9); otherwise returns false.</p>
<p><b>See also</b> <a href="qchar.html#isDigit">isDigit</a>().</p>
<h3 class="fn"><a name="isPrint" />bool QChar.isPrint (<i>self</i>)</h3><p>Returns true if the character is a printable character;
otherwise returns false. This is any character not of category Cc
or Cn.</p>
<p>Note that this gives no indication of whether the character is
available in a particular font.</p>
<h3 class="fn"><a name="isPunct" />bool QChar.isPunct (<i>self</i>)</h3><p>Returns true if the character is a punctuation mark
(Punctuation_* categories); otherwise returns false.</p>
<h3 class="fn"><a name="isSpace" />bool QChar.isSpace (<i>self</i>)</h3><p>Returns true if the character is a separator character
(Separator_* categories); otherwise returns false.</p>
<h3 class="fn"><a name="isSymbol" />bool QChar.isSymbol (<i>self</i>)</h3><p>Returns true if the character is a symbol (Symbol_* categories);
otherwise returns false.</p>
<h3 class="fn"><a name="isTitleCase" />bool QChar.isTitleCase (<i>self</i>)</h3><p>Returns true if the character is a titlecase letter, i.e.
<a href="qchar.html#category">category</a>() is <a href="qchar.html#Category-enum">Letter_Titlecase</a>.</p>
<p>This function was introduced in Qt 4.3.</p>
<p><b>See also</b> <a href="qchar.html#isLower">isLower</a>(),
<a href="qchar.html#toUpper">toUpper</a>(), <a href="qchar.html#toLower">toLower</a>(), and <a href="qchar.html#toTitleCase">toTitleCase</a>().</p>
<h3 class="fn"><a name="isUpper" />bool QChar.isUpper (<i>self</i>)</h3><p>Returns true if the character is an uppercase letter, i.e.
<a href="qchar.html#category">category</a>() is <a href="qchar.html#Category-enum">Letter_Uppercase</a>.</p>
<p><b>See also</b> <a href="qchar.html#isLower">isLower</a>(),
<a href="qchar.html#toUpper">toUpper</a>(), and <a href="qchar.html#toLower">toLower</a>().</p>
<h3 class="fn"><a name="joining" /><a href="qchar.html#Joining-enum">Joining</a> QChar.joining (<i>self</i>)</h3><p>Returns information about the joining properties of the
character (needed for certain languages such as Arabic).</p>
<h3 class="fn"><a name="joining-2" /><a href="qchar.html#Joining-enum">Joining</a> QChar.joining (int <i>ucs4</i>)</h3><p>This is an overloaded function.</p>
<p>Returns information about the joining properties of the
UCS-4-encoded character specified by <i>ucs4</i> (needed for
certain languages such as Arabic).</p>
<h3 class="fn"><a name="lowSurrogate" />int QChar.lowSurrogate (int <i>ucs4</i>)</h3><p>Returns the low surrogate value of a ucs4 code point. The
returned result is undefined if <i>ucs4</i> is smaller than
0x10000.</p>
<h3 class="fn"><a name="mirroredChar" />QChar QChar.mirroredChar (<i>self</i>)</h3><p>Returns the mirrored character if this character is a mirrored
character; otherwise returns the character itself.</p>
<p><b>See also</b> <a href="qchar.html#hasMirrored">hasMirrored</a>().</p>
<h3 class="fn"><a name="mirroredChar-2" />int QChar.mirroredChar (int <i>ucs4</i>)</h3><p>This is an overloaded function.</p>
<p>Returns the mirrored character if the UCS-4-encoded character
specified by <i>ucs4</i> is a mirrored character; otherwise returns
the character itself.</p>
<p><b>See also</b> <a href="qchar.html#hasMirrored">hasMirrored</a>().</p>
<h3 class="fn"><a name="requiresSurrogates" />bool QChar.requiresSurrogates (int <i>ucs4</i>)</h3><p>Returns true if the UCS-4-encoded character specified by
<i>ucs4</i> 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).</p>
<p>This function was introduced in Qt 4.7.</p>
<h3 class="fn"><a name="row" />str QChar.row (<i>self</i>)</h3><p>Returns the row (most significant byte) of the Unicode
character.</p>
<p><b>See also</b> <a href="qchar.html#cell">cell</a>().</p>
<h3 class="fn"><a name="setCell" />QChar.setCell (<i>self</i>, str <i>acell</i>)</h3><h3 class="fn"><a name="setRow" />QChar.setRow (<i>self</i>, str <i>arow</i>)</h3><h3 class="fn"><a name="surrogateToUcs4" />int QChar.surrogateToUcs4 (int <i>high</i>, int <i>low</i>)</h3><p>Converts a UTF16 surrogate pair with the given <i>high</i> and
<i>low</i> values to its UCS-4 code point.</p>
<h3 class="fn"><a name="surrogateToUcs4-2" />int QChar.surrogateToUcs4 (QChar <i>high</i>, QChar <i>low</i>)</h3><p>Converts a utf16 surrogate pair (<i>high</i>, <i>low</i>) to its
ucs4 code point.</p>
<h3 class="fn"><a name="toAscii" />str QChar.toAscii (<i>self</i>)</h3><p>Returns the character value of the <a href="qchar.html">QChar</a> 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.</p>
<p>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.</p>
<p><b>See also</b> <a href="qchar.html#toLatin1">toLatin1</a>(),
<a href="qchar.html#unicode">unicode</a>(), and <a href="qtextcodec.html#codecForCStrings">QTextCodec.codecForCStrings</a>().</p>
<h3 class="fn"><a name="toCaseFolded" />QChar QChar.toCaseFolded (<i>self</i>)</h3><p>Returns the case folded equivalent of the character. For most
Unicode characters this is the same as toLowerCase().</p>
<h3 class="fn"><a name="toCaseFolded-2" />int QChar.toCaseFolded (int <i>ucs4</i>)</h3><p>This is an overloaded function.</p>
<p>Returns the case folded equivalent of the UCS-4-encoded
character specified by <i>ucs4</i>. For most Unicode characters
this is the same as toLowerCase().</p>
<h3 class="fn"><a name="toLatin1" />str QChar.toLatin1 (<i>self</i>)</h3><p>Returns the Latin-1 character equivalent to the <a href="qchar.html">QChar</a>, or 0. This is mainly useful for
non-internationalized software.</p>
<p><b>See also</b> <a href="qchar.html#toAscii">toAscii</a>(),
<a href="qchar.html#unicode">unicode</a>(), and <a href="qtextcodec.html#codecForCStrings">QTextCodec.codecForCStrings</a>().</p>
<h3 class="fn"><a name="toLower" />QChar QChar.toLower (<i>self</i>)</h3><p>Returns the lowercase equivalent if the character is uppercase
or titlecase; otherwise returns the character itself.</p>
<h3 class="fn"><a name="toLower-2" />int QChar.toLower (int <i>ucs4</i>)</h3><p>This is an overloaded function.</p>
<p>Returns the lowercase equivalent of the UCS-4-encoded character
specified by <i>ucs4</i> if the character is uppercase or
titlecase; otherwise returns the character itself.</p>
<h3 class="fn"><a name="toTitleCase" />QChar QChar.toTitleCase (<i>self</i>)</h3><p>Returns the title case equivalent if the character is lowercase
or uppercase; otherwise returns the character itself.</p>
<h3 class="fn"><a name="toTitleCase-2" />int QChar.toTitleCase (int <i>ucs4</i>)</h3><p>This is an overloaded function.</p>
<p>Returns the title case equivalent of the UCS-4-encoded character
specified by <i>ucs4</i> if the character is lowercase or
uppercase; otherwise returns the character itself.</p>
<h3 class="fn"><a name="toUpper" />QChar QChar.toUpper (<i>self</i>)</h3><p>Returns the uppercase equivalent if the character is lowercase
or titlecase; otherwise returns the character itself.</p>
<h3 class="fn"><a name="toUpper-2" />int QChar.toUpper (int <i>ucs4</i>)</h3><p>This is an overloaded function.</p>
<p>Returns the uppercase equivalent of the UCS-4-encoded character
specified by <i>ucs4</i> if the character is lowercase or
titlecase; otherwise returns the character itself.</p>
<h3 class="fn"><a name="unicode" />int QChar.unicode (<i>self</i>)</h3><p>Returns a reference to the numeric Unicode value of the <a href="qchar.html">QChar</a>.</p>
<h3 class="fn"><a name="unicodeVersion" /><a href="qchar.html#UnicodeVersion-enum">UnicodeVersion</a> QChar.unicodeVersion (<i>self</i>)</h3><p>Returns the Unicode version that introduced this character.</p>
<h3 class="fn"><a name="unicodeVersion-2" /><a href="qchar.html#UnicodeVersion-enum">UnicodeVersion</a> QChar.unicodeVersion (int <i>ucs4</i>)</h3><p>This is an overloaded function.</p>
<p>Returns the Unicode version that introduced the character
specified in its UCS-4-encoded form as <i>ucs4</i>.</p>
<h3 class="fn"><a name="__add__" />QString QChar.__add__ (<i>self</i>, QString <i>s2</i>)</h3><h3 class="fn"><a name="__eq__" />bool QChar.__eq__ (<i>self</i>, QChar <i>c2</i>)</h3><h3 class="fn"><a name="__ge__" />bool QChar.__ge__ (<i>self</i>, QChar <i>c2</i>)</h3><h3 class="fn"><a name="__gt__" />bool QChar.__gt__ (<i>self</i>, QChar <i>c2</i>)</h3><h3 class="fn"><a name="__hash__" />int QChar.__hash__ (<i>self</i>)</h3><h3 class="fn"><a name="__le__" />bool QChar.__le__ (<i>self</i>, QChar <i>c2</i>)</h3><h3 class="fn"><a name="__lt__" />bool QChar.__lt__ (<i>self</i>, QChar <i>c2</i>)</h3><h3 class="fn"><a name="__ne__" />bool QChar.__ne__ (<i>self</i>, QChar <i>c2</i>)</h3><h3 class="fn"><a name="__repr__" />str QChar.__repr__ (<i>self</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt 4.9.3 for X11</td><td align="center" width="50%">Copyright © <a href="http://www.riverbankcomputing.com">Riverbank Computing Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt 4.8.2</td></tr></table></div></address></body></html>
|