<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qchar.cpp --> <title>Qt 4.8: QChar Class Reference</title> <link rel="stylesheet" type="text/css" href="style/style.css" /> <script src="scripts/jquery.js" type="text/javascript"></script> <script src="scripts/functions.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="style/superfish.css" /> <link rel="stylesheet" type="text/css" href="style/narrow.css" /> <!--[if IE]> <meta name="MSSmartTagsPreventParsing" content="true"> <meta http-equiv="imagetoolbar" content="no"> <![endif]--> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" href="style/style_ie6.css"> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" type="text/css" href="style/style_ie7.css"> <![endif]--> <!--[if IE 8]> <link rel="stylesheet" type="text/css" href="style/style_ie8.css"> <![endif]--> <script src="scripts/superfish.js" type="text/javascript"></script> <script src="scripts/narrow.js" type="text/javascript"></script> </head> <body class="" onload="CheckEmptyAndLoadList();"> <div class="header" id="qtdocheader"> <div class="content"> <div id="nav-logo"> <a href="index.html">Home</a></div> <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a> <div id="narrowsearch"></div> <div id="nav-topright"> <ul> <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li> <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li> <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/"> DOC</a></li> <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li> </ul> </div> <div id="shortCut"> <ul> <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li> <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS </a></li> </ul> </div> <ul class="sf-menu" id="narrowmenu"> <li><a href="#">API Lookup</a> <ul> <li><a href="classes.html">Class index</a></li> <li><a href="functions.html">Function index</a></li> <li><a href="modules.html">Modules</a></li> <li><a href="namespaces.html">Namespaces</a></li> <li><a href="qtglobal.html">Global Declarations</a></li> <li><a href="qdeclarativeelements.html">QML elements</a></li> </ul> </li> <li><a href="#">Qt Topics</a> <ul> <li><a href="qt-basic-concepts.html">Programming with Qt</a></li> <li><a href="qtquick.html">Device UIs & Qt Quick</a></li> <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li> <li><a href="supported-platforms.html">Supported Platforms</a></li> <li><a href="technology-apis.html">Qt and Key Technologies</a></li> <li><a href="best-practices.html">How-To's and Best Practices</a></li> </ul> </li> <li><a href="#">Examples</a> <ul> <li><a href="all-examples.html">Examples</a></li> <li><a href="tutorials.html">Tutorials</a></li> <li><a href="demos.html">Demos</a></li> <li><a href="qdeclarativeexamples.html">QML Examples</a></li> </ul> </li> </ul> </div> </div> <div class="wrapper"> <div class="hd"> <span></span> </div> <div class="bd group"> <div class="sidebar"> <div class="searchlabel"> Search index:</div> <div class="search" id="sidebarsearch"> <form id="qtdocsearch" action="" onsubmit="return false;"> <fieldset> <input type="text" name="searchstring" id="pageType" value="" /> <div id="resultdialog"> <a href="#" id="resultclose">Close</a> <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span> results:</p> <ul id="resultlist" class="all"> </ul> </div> </fieldset> </form> </div> <div class="box first bottombar" id="lookup"> <h2 title="API Lookup"><span></span> API Lookup</h2> <div id="list001" class="list"> <ul id="ul001" > <li class="defaultLink"><a href="classes.html">Class index</a></li> <li class="defaultLink"><a href="functions.html">Function index</a></li> <li class="defaultLink"><a href="modules.html">Modules</a></li> <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li> <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li> <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li> </ul> </div> </div> <div class="box bottombar" id="topics"> <h2 title="Qt Topics"><span></span> Qt Topics</h2> <div id="list002" class="list"> <ul id="ul002" > <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> <li class="defaultLink"><a href="qtquick.html">Device UIs & Qt Quick</a></li> <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li> <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> </ul> </div> </div> <div class="box" id="examples"> <h2 title="Examples"><span></span> Examples</h2> <div id="list003" class="list"> <ul id="ul003"> <li class="defaultLink"><a href="all-examples.html">Examples</a></li> <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li> <li class="defaultLink"><a href="demos.html">Demos</a></li> <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li> </ul> </div> </div> </div> <div class="wrap"> <div class="toolbar"> <div class="breadcrumb toolblock"> <ul> <li class="first"><a href="index.html">Home</a></li> <!-- Breadcrumbs go here --> <li><a href="modules.html">Modules</a></li> <li><a href="qtcore.html">QtCore</a></li> <li>QChar</li> </ul> </div> <div class="toolbuttons toolblock"> <ul> <li id="smallA" class="t_button">A</li> <li id="medA" class="t_button active">A</li> <li id="bigA" class="t_button">A</li> <li id="print" class="t_button"><a href="javascript:this.print();"> <span>Print</span></a></li> </ul> </div> </div> <div class="content mainContent"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#public-types">Public Types</a></li> <li class="level1"><a href="#public-functions">Public Functions</a></li> <li class="level1"><a href="#static-public-members">Static Public Members</a></li> <li class="level1"><a href="#related-non-members">Related Non-Members</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <h1 class="title">QChar Class Reference</h1> <!-- $$$QChar-brief --> <p>The QChar class provides a 16-bit Unicode character. <a href="#details">More...</a></p> <!-- @@@QChar --> <pre class="cpp"> <span class="preprocessor">#include <QChar></span></pre><p><b>Note:</b> All functions in this class are <a href="threads-reentrancy.html#reentrant">reentrant</a>.</p> <ul> <li><a href="qchar-members.html">List of all members, including inherited members</a></li> <li><a href="qchar-qt3.html">Qt 3 support members</a></li> </ul> <a name="public-types"></a> <h2>Public Types</h2> <table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#Category-enum">Category</a></b> { Mark_NonSpacing, Mark_SpacingCombining, Mark_Enclosing, Number_DecimalDigit, ..., NoCategory }</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#Decomposition-enum">Decomposition</a></b> { NoDecomposition, Canonical, Circle, Compat, ..., Wide }</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#Direction-enum">Direction</a></b> { DirAL, DirAN, DirB, DirBN, ..., DirWS }</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#Joining-enum">Joining</a></b> { Center, Dual, OtherJoining, Right }</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#SpecialCharacter-enum">SpecialCharacter</a></b> { Null, Nbsp, ReplacementCharacter, ObjectReplacementCharacter, ..., LineSeparator }</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#UnicodeVersion-enum">UnicodeVersion</a></b> { Unicode_1_1, Unicode_2_0, Unicode_2_1_2, Unicode_3_0, ..., Unicode_Unassigned }</td></tr> </table> <a name="public-functions"></a> <h2>Public Functions</h2> <table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#QChar">QChar</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#QChar-2">QChar</a></b> ( char <i>ch</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#QChar-3">QChar</a></b> ( uchar <i>ch</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#QChar-4">QChar</a></b> ( QLatin1Char <i>ch</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#QChar-5">QChar</a></b> ( uchar <i>cell</i>, uchar <i>row</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#QChar-6">QChar</a></b> ( ushort <i>code</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#QChar-7">QChar</a></b> ( short <i>code</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#QChar-8">QChar</a></b> ( uint <i>code</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#QChar-9">QChar</a></b> ( int <i>code</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#QChar-10">QChar</a></b> ( SpecialCharacter <i>ch</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Category </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#category">category</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uchar </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#cell">cell</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> unsigned char </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#combiningClass">combiningClass</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#decomposition">decomposition</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Decomposition </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#decompositionTag">decompositionTag</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#digitValue">digitValue</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Direction </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#direction">direction</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#hasMirrored">hasMirrored</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isDigit">isDigit</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isHighSurrogate">isHighSurrogate</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isLetter">isLetter</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isLetterOrNumber">isLetterOrNumber</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isLowSurrogate">isLowSurrogate</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isLower">isLower</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isMark">isMark</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isNull">isNull</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isNumber">isNumber</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isPrint">isPrint</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isPunct">isPunct</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isSpace">isSpace</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isSymbol">isSymbol</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isTitleCase">isTitleCase</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isUpper">isUpper</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Joining </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#joining">joining</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QChar </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#mirroredChar">mirroredChar</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uchar </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#row">row</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> char </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#toAscii">toAscii</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QChar </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#toCaseFolded">toCaseFolded</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> char </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#toLatin1">toLatin1</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QChar </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#toLower">toLower</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QChar </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#toTitleCase">toTitleCase</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QChar </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#toUpper">toUpper</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> ushort & </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#unicode">unicode</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> ushort </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#unicode-2">unicode</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> UnicodeVersion </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#unicodeVersion">unicodeVersion</a></b> () const</td></tr> </table> <a name="static-public-members"></a> <h2>Static Public Members</h2> <table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Category </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#category-2">category</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Category </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#category-3">category</a></b> ( ushort <i>ucs2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> unsigned char </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#combiningClass-2">combiningClass</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> unsigned char </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#combiningClass-3">combiningClass</a></b> ( ushort <i>ucs2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> UnicodeVersion </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#currentUnicodeVersion">currentUnicodeVersion</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#decomposition-2">decomposition</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Decomposition </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#decompositionTag-2">decompositionTag</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#digitValue-2">digitValue</a></b> ( ushort <i>ucs2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#digitValue-3">digitValue</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Direction </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#direction-2">direction</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Direction </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#direction-3">direction</a></b> ( ushort <i>ucs2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QChar </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#fromAscii">fromAscii</a></b> ( char <i>c</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QChar </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#fromLatin1">fromLatin1</a></b> ( char <i>c</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> ushort </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#highSurrogate">highSurrogate</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isHighSurrogate-2">isHighSurrogate</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#isLowSurrogate-2">isLowSurrogate</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Joining </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#joining-2">joining</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Joining </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#joining-3">joining</a></b> ( ushort <i>ucs2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> ushort </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#lowSurrogate">lowSurrogate</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#mirroredChar-2">mirroredChar</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> ushort </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#mirroredChar-3">mirroredChar</a></b> ( ushort <i>ucs2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#requiresSurrogates">requiresSurrogates</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#surrogateToUcs4">surrogateToUcs4</a></b> ( ushort <i>high</i>, ushort <i>low</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#surrogateToUcs4-2">surrogateToUcs4</a></b> ( QChar <i>high</i>, QChar <i>low</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#toCaseFolded-2">toCaseFolded</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> ushort </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#toCaseFolded-3">toCaseFolded</a></b> ( ushort <i>ucs2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#toLower-2">toLower</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> ushort </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#toLower-3">toLower</a></b> ( ushort <i>ucs2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#toTitleCase-2">toTitleCase</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> ushort </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#toTitleCase-3">toTitleCase</a></b> ( ushort <i>ucs2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> uint </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#toUpper-2">toUpper</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> ushort </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#toUpper-3">toUpper</a></b> ( ushort <i>ucs2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> UnicodeVersion </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#unicodeVersion-2">unicodeVersion</a></b> ( uint <i>ucs4</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> UnicodeVersion </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#unicodeVersion-3">unicodeVersion</a></b> ( ushort <i>ucs2</i> )</td></tr> </table> <a name="related-non-members"></a> <h2>Related Non-Members</h2> <table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#operator-not-eq-41">operator!=</a></b> ( QChar <i>c1</i>, QChar <i>c2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#operator-lt-14">operator<</a></b> ( QChar <i>c1</i>, QChar <i>c2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QDataStream & </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#operator-lt-lt-78">operator<<</a></b> ( QDataStream & <i>out</i>, const QChar & <i>chr</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#operator-lt-eq-9">operator<=</a></b> ( QChar <i>c1</i>, QChar <i>c2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#operator-eq-eq-58">operator==</a></b> ( QChar <i>c1</i>, QChar <i>c2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#operator-gt-9">operator></a></b> ( QChar <i>c1</i>, QChar <i>c2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#operator-gt-eq-9">operator>=</a></b> ( QChar <i>c1</i>, QChar <i>c2</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QDataStream & </td><td class="memItemRight bottomAlign"><b><a href="qchar.html#operator-gt-gt-49">operator>></a></b> ( QDataStream & <i>in</i>, QChar & <i>chr</i> )</td></tr> </table> <a name="details"></a> <!-- $$$QChar-description --> <div class="descr"> <h2>Detailed Description</h2> <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> </div> <p><b>See also </b><a href="qstring.html">QString</a>, <a href="unicode.html#unicode">Unicode</a>, and <a href="qlatin1char.html">QLatin1Char</a>.</p> <!-- @@@QChar --> <div class="types"> <h2>Member Type Documentation</h2> <!-- $$$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_Open$$$Punctuation_Close$$$Punctuation_InitialQuote$$$Punctuation_FinalQuote$$$Punctuation_Other$$$Symbol_Math$$$Symbol_Currency$$$Symbol_Modifier$$$Symbol_Other$$$Punctuation_Dask --> <h3 class="fn"><a name="Category-enum"></a>enum QChar::<span class="name">Category</span></h3> <p>This enum maps the Unicode character categories.</p> <p>The following characters are normative in Unicode:</p> <table class="valuelist"><tr valign="top" class="odd"><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 valign="top" class="even"><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> <!-- @@@Category --> <!-- $$$Decomposition$$$NoDecomposition$$$Canonical$$$Font$$$NoBreak$$$Initial$$$Medial$$$Final$$$Isolated$$$Circle$$$Super$$$Sub$$$Vertical$$$Wide$$$Narrow$$$Small$$$Square$$$Compat$$$Fraction$$$Single --> <h3 class="fn"><a name="Decomposition-enum"></a>enum QChar::<span class="name">Decomposition</span></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> <!-- @@@Decomposition --> <!-- $$$Direction$$$DirL$$$DirR$$$DirEN$$$DirES$$$DirET$$$DirAN$$$DirCS$$$DirB$$$DirS$$$DirWS$$$DirON$$$DirLRE$$$DirLRO$$$DirAL$$$DirRLE$$$DirRLO$$$DirPDF$$$DirNSM$$$DirBN --> <h3 class="fn"><a name="Direction-enum"></a>enum QChar::<span class="name">Direction</span></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> <!-- @@@Direction --> <!-- $$$Joining$$$OtherJoining$$$Dual$$$Right$$$Center --> <h3 class="fn"><a name="Joining-enum"></a>enum QChar::<span class="name">Joining</span></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> <!-- @@@Joining --> <!-- $$$SpecialCharacter$$$Null$$$Nbsp$$$ReplacementCharacter$$$ObjectReplacementCharacter$$$ByteOrderMark$$$ByteOrderSwapped$$$null$$$replacement$$$byteOrderMark$$$byteOrderSwapped$$$nbsp$$$ParagraphSeparator$$$LineSeparator --> <h3 class="fn"><a name="SpecialCharacter-enum"></a>enum QChar::<span class="name">SpecialCharacter</span></h3> <table class="valuelist"><tr valign="top" class="odd"><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> <!-- @@@SpecialCharacter --> <!-- $$$UnicodeVersion$$$Unicode_Unassigned$$$Unicode_1_1$$$Unicode_2_0$$$Unicode_2_1_2$$$Unicode_3_0$$$Unicode_3_1$$$Unicode_3_2$$$Unicode_4_0$$$Unicode_4_1$$$Unicode_5_0 --> <h3 class="fn"><a name="UnicodeVersion-enum"></a>enum QChar::<span class="name">UnicodeVersion</span></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 valign="top" class="odd"><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> <!-- @@@UnicodeVersion --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QChar[overload1]$$$QChar --> <h3 class="fn"><a name="QChar"></a>QChar::<span class="name">QChar</span> ()</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> <!-- @@@QChar --> <!-- $$$QChar$$$QCharchar --> <h3 class="fn"><a name="QChar-2"></a>QChar::<span class="name">QChar</span> ( <span class="type">char</span> <i>ch</i> )</h3> <p>Constructs a <a href="qchar.html">QChar</a> corresponding to ASCII/Latin-1 character <i>ch</i>.</p> <!-- @@@QChar --> <!-- $$$QChar$$$QCharuchar --> <h3 class="fn"><a name="QChar-3"></a>QChar::<span class="name">QChar</span> ( <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> <i>ch</i> )</h3> <p>Constructs a <a href="qchar.html">QChar</a> corresponding to ASCII/Latin-1 character <i>ch</i>.</p> <!-- @@@QChar --> <!-- $$$QChar$$$QCharQLatin1Char --> <h3 class="fn"><a name="QChar-4"></a>QChar::<span class="name">QChar</span> ( <span class="type"><a href="qlatin1char.html">QLatin1Char</a></span> <i>ch</i> )</h3> <p>Constructs a <a href="qchar.html">QChar</a> corresponding to ASCII/Latin-1 character <i>ch</i>.</p> <!-- @@@QChar --> <!-- $$$QChar$$$QCharucharuchar --> <h3 class="fn"><a name="QChar-5"></a>QChar::<span class="name">QChar</span> ( <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> <i>cell</i>, <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> <i>row</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> <!-- @@@QChar --> <!-- $$$QChar$$$QCharushort --> <h3 class="fn"><a name="QChar-6"></a>QChar::<span class="name">QChar</span> ( <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>code</i> )</h3> <p>Constructs a <a href="qchar.html">QChar</a> for the character with Unicode code point <i>code</i>.</p> <!-- @@@QChar --> <!-- $$$QChar$$$QCharshort --> <h3 class="fn"><a name="QChar-7"></a>QChar::<span class="name">QChar</span> ( <span class="type">short</span> <i>code</i> )</h3> <p>Constructs a <a href="qchar.html">QChar</a> for the character with Unicode code point <i>code</i>.</p> <!-- @@@QChar --> <!-- $$$QChar$$$QCharuint --> <h3 class="fn"><a name="QChar-8"></a>QChar::<span class="name">QChar</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>code</i> )</h3> <p>Constructs a <a href="qchar.html">QChar</a> for the character with Unicode code point <i>code</i>.</p> <!-- @@@QChar --> <!-- $$$QChar$$$QCharint --> <h3 class="fn"><a name="QChar-9"></a>QChar::<span class="name">QChar</span> ( <span class="type">int</span> <i>code</i> )</h3> <p>Constructs a <a href="qchar.html">QChar</a> for the character with Unicode code point <i>code</i>.</p> <!-- @@@QChar --> <!-- $$$QChar$$$QCharSpecialCharacter --> <h3 class="fn"><a name="QChar-10"></a>QChar::<span class="name">QChar</span> ( <span class="type"><a href="qchar.html#SpecialCharacter-enum">SpecialCharacter</a></span> <i>ch</i> )</h3> <p>Constructs a <a href="qchar.html">QChar</a> for the predefined character value <i>ch</i>.</p> <!-- @@@QChar --> <!-- $$$category[overload1]$$$category --> <h3 class="fn"><a name="category"></a><span class="type"><a href="qchar.html#Category-enum">Category</a></span> QChar::<span class="name">category</span> () const</h3> <p>Returns the character's category.</p> <!-- @@@category --> <!-- $$$category$$$categoryuint --> <h3 class="fn"><a name="category-2"></a><span class="type"><a href="qchar.html#Category-enum">Category</a></span> QChar::<span class="name">category</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@category --> <!-- $$$category$$$categoryushort --> <h3 class="fn"><a name="category-3"></a><span class="type"><a href="qchar.html#Category-enum">Category</a></span> QChar::<span class="name">category</span> ( <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>ucs2</i> )<tt> [static]</tt></h3> <p>This is an overloaded function.</p> <p>Returns the category of the UCS-2-encoded character specified by <i>ucs2</i>.</p> <!-- @@@category --> <!-- $$$cell[overload1]$$$cell --> <h3 class="fn"><a name="cell"></a><span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> QChar::<span class="name">cell</span> () const</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> <!-- @@@cell --> <!-- $$$combiningClass[overload1]$$$combiningClass --> <h3 class="fn"><a name="combiningClass"></a><span class="type">unsigned</span> <span class="type">char</span> QChar::<span class="name">combiningClass</span> () const</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> <!-- @@@combiningClass --> <!-- $$$combiningClass$$$combiningClassuint --> <h3 class="fn"><a name="combiningClass-2"></a><span class="type">unsigned</span> <span class="type">char</span> QChar::<span class="name">combiningClass</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@combiningClass --> <!-- $$$combiningClass$$$combiningClassushort --> <h3 class="fn"><a name="combiningClass-3"></a><span class="type">unsigned</span> <span class="type">char</span> QChar::<span class="name">combiningClass</span> ( <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>ucs2</i> )<tt> [static]</tt></h3> <p>This is an overloaded function.</p> <p>Returns the combining class for the UCS-2-encoded character specified by <i>ucs2</i>, as defined in the Unicode standard.</p> <!-- @@@combiningClass --> <!-- $$$currentUnicodeVersion[overload1]$$$currentUnicodeVersion --> <h3 class="fn"><a name="currentUnicodeVersion"></a><span class="type"><a href="qchar.html#UnicodeVersion-enum">UnicodeVersion</a></span> QChar::<span class="name">currentUnicodeVersion</span> ()<tt> [static]</tt></h3> <p>Returns the most recent supported Unicode version.</p> <p>This function was introduced in Qt 4.8.</p> <!-- @@@currentUnicodeVersion --> <!-- $$$decomposition[overload1]$$$decomposition --> <h3 class="fn"><a name="decomposition"></a><span class="type"><a href="qstring.html">QString</a></span> QChar::<span class="name">decomposition</span> () const</h3> <p>Decomposes a character into its parts. Returns an empty string if no decomposition exists.</p> <!-- @@@decomposition --> <!-- $$$decomposition$$$decompositionuint --> <h3 class="fn"><a name="decomposition-2"></a><span class="type"><a href="qstring.html">QString</a></span> QChar::<span class="name">decomposition</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@decomposition --> <!-- $$$decompositionTag[overload1]$$$decompositionTag --> <h3 class="fn"><a name="decompositionTag"></a><span class="type"><a href="qchar.html#Decomposition-enum">Decomposition</a></span> QChar::<span class="name">decompositionTag</span> () const</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> <!-- @@@decompositionTag --> <!-- $$$decompositionTag$$$decompositionTaguint --> <h3 class="fn"><a name="decompositionTag-2"></a><span class="type"><a href="qchar.html#Decomposition-enum">Decomposition</a></span> QChar::<span class="name">decompositionTag</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@decompositionTag --> <!-- $$$digitValue[overload1]$$$digitValue --> <h3 class="fn"><a name="digitValue"></a><span class="type">int</span> QChar::<span class="name">digitValue</span> () const</h3> <p>Returns the numeric value of the digit, or -1 if the character is not a digit.</p> <!-- @@@digitValue --> <!-- $$$digitValue$$$digitValueushort --> <h3 class="fn"><a name="digitValue-2"></a><span class="type">int</span> QChar::<span class="name">digitValue</span> ( <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>ucs2</i> )<tt> [static]</tt></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> <!-- @@@digitValue --> <!-- $$$digitValue$$$digitValueuint --> <h3 class="fn"><a name="digitValue-3"></a><span class="type">int</span> QChar::<span class="name">digitValue</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></h3> <p>This is an overloaded function.</p> <p>Returns the numeric value of the digit specified by the UCS-4-encoded character, <i>ucs4</i>, or -1 if the character is not a digit.</p> <!-- @@@digitValue --> <!-- $$$direction[overload1]$$$direction --> <h3 class="fn"><a name="direction"></a><span class="type"><a href="qchar.html#Direction-enum">Direction</a></span> QChar::<span class="name">direction</span> () const</h3> <p>Returns the character's direction.</p> <!-- @@@direction --> <!-- $$$direction$$$directionuint --> <h3 class="fn"><a name="direction-2"></a><span class="type"><a href="qchar.html#Direction-enum">Direction</a></span> QChar::<span class="name">direction</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></h3> <p>This is an overloaded function.</p> <p>Returns the direction of the UCS-4-encoded character specified by <i>ucs4</i>.</p> <!-- @@@direction --> <!-- $$$direction$$$directionushort --> <h3 class="fn"><a name="direction-3"></a><span class="type"><a href="qchar.html#Direction-enum">Direction</a></span> QChar::<span class="name">direction</span> ( <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>ucs2</i> )<tt> [static]</tt></h3> <p>This is an overloaded function.</p> <p>Returns the direction of the UCS-2-encoded character specified by <i>ucs2</i>.</p> <!-- @@@direction --> <!-- $$$fromAscii[overload1]$$$fromAsciichar --> <h3 class="fn"><a name="fromAscii"></a><span class="type">QChar</span> QChar::<span class="name">fromAscii</span> ( <span class="type">char</span> <i>c</i> )<tt> [static]</tt></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> <!-- @@@fromAscii --> <!-- $$$fromLatin1[overload1]$$$fromLatin1char --> <h3 class="fn"><a name="fromLatin1"></a><span class="type">QChar</span> QChar::<span class="name">fromLatin1</span> ( <span class="type">char</span> <i>c</i> )<tt> [static]</tt></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> <!-- @@@fromLatin1 --> <!-- $$$hasMirrored[overload1]$$$hasMirrored --> <h3 class="fn"><a name="hasMirrored"></a><span class="type">bool</span> QChar::<span class="name">hasMirrored</span> () const</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> <!-- @@@hasMirrored --> <!-- $$$highSurrogate[overload1]$$$highSurrogateuint --> <h3 class="fn"><a name="highSurrogate"></a><span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> QChar::<span class="name">highSurrogate</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@highSurrogate --> <!-- $$$isDigit[overload1]$$$isDigit --> <h3 class="fn"><a name="isDigit"></a><span class="type">bool</span> QChar::<span class="name">isDigit</span> () const</h3> <p>Returns true if the character is a decimal digit (<a href="qchar.html#Category-enum">Number_DecimalDigit</a>); otherwise returns false.</p> <!-- @@@isDigit --> <!-- $$$isHighSurrogate[overload1]$$$isHighSurrogate --> <h3 class="fn"><a name="isHighSurrogate"></a><span class="type">bool</span> QChar::<span class="name">isHighSurrogate</span> () const</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> <!-- @@@isHighSurrogate --> <!-- $$$isHighSurrogate$$$isHighSurrogateuint --> <h3 class="fn"><a name="isHighSurrogate-2"></a><span class="type">bool</span> QChar::<span class="name">isHighSurrogate</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@isHighSurrogate --> <!-- $$$isLetter[overload1]$$$isLetter --> <h3 class="fn"><a name="isLetter"></a><span class="type">bool</span> QChar::<span class="name">isLetter</span> () const</h3> <p>Returns true if the character is a letter (Letter_* categories); otherwise returns false.</p> <!-- @@@isLetter --> <!-- $$$isLetterOrNumber[overload1]$$$isLetterOrNumber --> <h3 class="fn"><a name="isLetterOrNumber"></a><span class="type">bool</span> QChar::<span class="name">isLetterOrNumber</span> () const</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> <!-- @@@isLetterOrNumber --> <!-- $$$isLowSurrogate[overload1]$$$isLowSurrogate --> <h3 class="fn"><a name="isLowSurrogate"></a><span class="type">bool</span> QChar::<span class="name">isLowSurrogate</span> () const</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> <!-- @@@isLowSurrogate --> <!-- $$$isLowSurrogate$$$isLowSurrogateuint --> <h3 class="fn"><a name="isLowSurrogate-2"></a><span class="type">bool</span> QChar::<span class="name">isLowSurrogate</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@isLowSurrogate --> <!-- $$$isLower[overload1]$$$isLower --> <h3 class="fn"><a name="isLower"></a><span class="type">bool</span> QChar::<span class="name">isLower</span> () const</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> <!-- @@@isLower --> <!-- $$$isMark[overload1]$$$isMark --> <h3 class="fn"><a name="isMark"></a><span class="type">bool</span> QChar::<span class="name">isMark</span> () const</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> <!-- @@@isMark --> <!-- $$$isNull[overload1]$$$isNull --> <h3 class="fn"><a name="isNull"></a><span class="type">bool</span> QChar::<span class="name">isNull</span> () const</h3> <p>Returns true if the character is the Unicode character 0x0000 ('\0'); otherwise returns false.</p> <!-- @@@isNull --> <!-- $$$isNumber[overload1]$$$isNumber --> <h3 class="fn"><a name="isNumber"></a><span class="type">bool</span> QChar::<span class="name">isNumber</span> () const</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> <!-- @@@isNumber --> <!-- $$$isPrint[overload1]$$$isPrint --> <h3 class="fn"><a name="isPrint"></a><span class="type">bool</span> QChar::<span class="name">isPrint</span> () const</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> <!-- @@@isPrint --> <!-- $$$isPunct[overload1]$$$isPunct --> <h3 class="fn"><a name="isPunct"></a><span class="type">bool</span> QChar::<span class="name">isPunct</span> () const</h3> <p>Returns true if the character is a punctuation mark (Punctuation_* categories); otherwise returns false.</p> <!-- @@@isPunct --> <!-- $$$isSpace[overload1]$$$isSpace --> <h3 class="fn"><a name="isSpace"></a><span class="type">bool</span> QChar::<span class="name">isSpace</span> () const</h3> <p>Returns true if the character is a separator character (Separator_* categories); otherwise returns false.</p> <!-- @@@isSpace --> <!-- $$$isSymbol[overload1]$$$isSymbol --> <h3 class="fn"><a name="isSymbol"></a><span class="type">bool</span> QChar::<span class="name">isSymbol</span> () const</h3> <p>Returns true if the character is a symbol (Symbol_* categories); otherwise returns false.</p> <!-- @@@isSymbol --> <!-- $$$isTitleCase[overload1]$$$isTitleCase --> <h3 class="fn"><a name="isTitleCase"></a><span class="type">bool</span> QChar::<span class="name">isTitleCase</span> () const</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> <!-- @@@isTitleCase --> <!-- $$$isUpper[overload1]$$$isUpper --> <h3 class="fn"><a name="isUpper"></a><span class="type">bool</span> QChar::<span class="name">isUpper</span> () const</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> <!-- @@@isUpper --> <!-- $$$joining[overload1]$$$joining --> <h3 class="fn"><a name="joining"></a><span class="type"><a href="qchar.html#Joining-enum">Joining</a></span> QChar::<span class="name">joining</span> () const</h3> <p>Returns information about the joining properties of the character (needed for certain languages such as Arabic).</p> <!-- @@@joining --> <!-- $$$joining$$$joininguint --> <h3 class="fn"><a name="joining-2"></a><span class="type"><a href="qchar.html#Joining-enum">Joining</a></span> QChar::<span class="name">joining</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@joining --> <!-- $$$joining$$$joiningushort --> <h3 class="fn"><a name="joining-3"></a><span class="type"><a href="qchar.html#Joining-enum">Joining</a></span> QChar::<span class="name">joining</span> ( <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>ucs2</i> )<tt> [static]</tt></h3> <p>This is an overloaded function.</p> <p>Returns information about the joining properties of the UCS-2-encoded character specified by <i>ucs2</i> (needed for certain languages such as Arabic).</p> <!-- @@@joining --> <!-- $$$lowSurrogate[overload1]$$$lowSurrogateuint --> <h3 class="fn"><a name="lowSurrogate"></a><span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> QChar::<span class="name">lowSurrogate</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@lowSurrogate --> <!-- $$$mirroredChar[overload1]$$$mirroredChar --> <h3 class="fn"><a name="mirroredChar"></a><span class="type">QChar</span> QChar::<span class="name">mirroredChar</span> () const</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> <!-- @@@mirroredChar --> <!-- $$$mirroredChar$$$mirroredCharuint --> <h3 class="fn"><a name="mirroredChar-2"></a><span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> QChar::<span class="name">mirroredChar</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@mirroredChar --> <!-- $$$mirroredChar$$$mirroredCharushort --> <h3 class="fn"><a name="mirroredChar-3"></a><span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> QChar::<span class="name">mirroredChar</span> ( <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>ucs2</i> )<tt> [static]</tt></h3> <p>This is an overloaded function.</p> <p>Returns the mirrored character if the UCS-2-encoded character specified by <i>ucs2</i> is a mirrored character; otherwise returns the character itself.</p> <p><b>See also </b><a href="qchar.html#hasMirrored">hasMirrored</a>().</p> <!-- @@@mirroredChar --> <!-- $$$requiresSurrogates[overload1]$$$requiresSurrogatesuint --> <h3 class="fn"><a name="requiresSurrogates"></a><span class="type">bool</span> QChar::<span class="name">requiresSurrogates</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@requiresSurrogates --> <!-- $$$row[overload1]$$$row --> <h3 class="fn"><a name="row"></a><span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> QChar::<span class="name">row</span> () const</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> <!-- @@@row --> <!-- $$$surrogateToUcs4[overload1]$$$surrogateToUcs4ushortushort --> <h3 class="fn"><a name="surrogateToUcs4"></a><span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> QChar::<span class="name">surrogateToUcs4</span> ( <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>high</i>, <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>low</i> )<tt> [static]</tt></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> <!-- @@@surrogateToUcs4 --> <!-- $$$surrogateToUcs4$$$surrogateToUcs4QCharQChar --> <h3 class="fn"><a name="surrogateToUcs4-2"></a><span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> QChar::<span class="name">surrogateToUcs4</span> ( <span class="type">QChar</span> <i>high</i>, <span class="type">QChar</span> <i>low</i> )<tt> [static]</tt></h3> <p>Converts a utf16 surrogate pair (<i>high</i>, <i>low</i>) to its ucs4 code point.</p> <!-- @@@surrogateToUcs4 --> <!-- $$$toAscii[overload1]$$$toAscii --> <h3 class="fn"><a name="toAscii"></a><span class="type">char</span> QChar::<span class="name">toAscii</span> () const</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> <!-- @@@toAscii --> <!-- $$$toCaseFolded[overload1]$$$toCaseFolded --> <h3 class="fn"><a name="toCaseFolded"></a><span class="type">QChar</span> QChar::<span class="name">toCaseFolded</span> () const</h3> <p>Returns the case folded equivalent of the character. For most Unicode characters this is the same as toLowerCase().</p> <!-- @@@toCaseFolded --> <!-- $$$toCaseFolded$$$toCaseFoldeduint --> <h3 class="fn"><a name="toCaseFolded-2"></a><span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> QChar::<span class="name">toCaseFolded</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@toCaseFolded --> <!-- $$$toCaseFolded$$$toCaseFoldedushort --> <h3 class="fn"><a name="toCaseFolded-3"></a><span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> QChar::<span class="name">toCaseFolded</span> ( <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>ucs2</i> )<tt> [static]</tt></h3> <p>This is an overloaded function.</p> <p>Returns the case folded equivalent of the UCS-2-encoded character specified by <i>ucs2</i>. For most Unicode characters this is the same as toLowerCase().</p> <!-- @@@toCaseFolded --> <!-- $$$toLatin1[overload1]$$$toLatin1 --> <h3 class="fn"><a name="toLatin1"></a><span class="type">char</span> QChar::<span class="name">toLatin1</span> () const</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> <!-- @@@toLatin1 --> <!-- $$$toLower[overload1]$$$toLower --> <h3 class="fn"><a name="toLower"></a><span class="type">QChar</span> QChar::<span class="name">toLower</span> () const</h3> <p>Returns the lowercase equivalent if the character is uppercase or titlecase; otherwise returns the character itself.</p> <!-- @@@toLower --> <!-- $$$toLower$$$toLoweruint --> <h3 class="fn"><a name="toLower-2"></a><span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> QChar::<span class="name">toLower</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@toLower --> <!-- $$$toLower$$$toLowerushort --> <h3 class="fn"><a name="toLower-3"></a><span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> QChar::<span class="name">toLower</span> ( <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>ucs2</i> )<tt> [static]</tt></h3> <p>This is an overloaded function.</p> <p>Returns the lowercase equivalent of the UCS-2-encoded character specified by <i>ucs2</i> if the character is uppercase or titlecase; otherwise returns the character itself.</p> <!-- @@@toLower --> <!-- $$$toTitleCase[overload1]$$$toTitleCase --> <h3 class="fn"><a name="toTitleCase"></a><span class="type">QChar</span> QChar::<span class="name">toTitleCase</span> () const</h3> <p>Returns the title case equivalent if the character is lowercase or uppercase; otherwise returns the character itself.</p> <!-- @@@toTitleCase --> <!-- $$$toTitleCase$$$toTitleCaseuint --> <h3 class="fn"><a name="toTitleCase-2"></a><span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> QChar::<span class="name">toTitleCase</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@toTitleCase --> <!-- $$$toTitleCase$$$toTitleCaseushort --> <h3 class="fn"><a name="toTitleCase-3"></a><span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> QChar::<span class="name">toTitleCase</span> ( <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>ucs2</i> )<tt> [static]</tt></h3> <p>This is an overloaded function.</p> <p>Returns the title case equivalent of the UCS-2-encoded character specified by <i>ucs2</i> if the character is lowercase or uppercase; otherwise returns the character itself.</p> <!-- @@@toTitleCase --> <!-- $$$toUpper[overload1]$$$toUpper --> <h3 class="fn"><a name="toUpper"></a><span class="type">QChar</span> QChar::<span class="name">toUpper</span> () const</h3> <p>Returns the uppercase equivalent if the character is lowercase or titlecase; otherwise returns the character itself.</p> <!-- @@@toUpper --> <!-- $$$toUpper$$$toUpperuint --> <h3 class="fn"><a name="toUpper-2"></a><span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> QChar::<span class="name">toUpper</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@toUpper --> <!-- $$$toUpper$$$toUpperushort --> <h3 class="fn"><a name="toUpper-3"></a><span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> QChar::<span class="name">toUpper</span> ( <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>ucs2</i> )<tt> [static]</tt></h3> <p>This is an overloaded function.</p> <p>Returns the uppercase equivalent of the UCS-2-encoded character specified by <i>ucs2</i> if the character is lowercase or titlecase; otherwise returns the character itself.</p> <!-- @@@toUpper --> <!-- $$$unicode[overload1]$$$unicode --> <h3 class="fn"><a name="unicode"></a><span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> & QChar::<span class="name">unicode</span> ()</h3> <p>Returns a reference to the numeric Unicode value of the <a href="qchar.html">QChar</a>.</p> <!-- @@@unicode --> <!-- $$$unicode$$$unicode --> <h3 class="fn"><a name="unicode-2"></a><span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> QChar::<span class="name">unicode</span> () const</h3> <p>This is an overloaded function.</p> <!-- @@@unicode --> <!-- $$$unicodeVersion[overload1]$$$unicodeVersion --> <h3 class="fn"><a name="unicodeVersion"></a><span class="type"><a href="qchar.html#UnicodeVersion-enum">UnicodeVersion</a></span> QChar::<span class="name">unicodeVersion</span> () const</h3> <p>Returns the Unicode version that introduced this character.</p> <!-- @@@unicodeVersion --> <!-- $$$unicodeVersion$$$unicodeVersionuint --> <h3 class="fn"><a name="unicodeVersion-2"></a><span class="type"><a href="qchar.html#UnicodeVersion-enum">UnicodeVersion</a></span> QChar::<span class="name">unicodeVersion</span> ( <span class="type"><a href="qtglobal.html#uint-typedef">uint</a></span> <i>ucs4</i> )<tt> [static]</tt></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> <!-- @@@unicodeVersion --> <!-- $$$unicodeVersion$$$unicodeVersionushort --> <h3 class="fn"><a name="unicodeVersion-3"></a><span class="type"><a href="qchar.html#UnicodeVersion-enum">UnicodeVersion</a></span> QChar::<span class="name">unicodeVersion</span> ( <span class="type"><a href="qtglobal.html#ushort-typedef">ushort</a></span> <i>ucs2</i> )<tt> [static]</tt></h3> <p>This is an overloaded function.</p> <p>Returns the Unicode version that introduced the character specified in its UCS-2-encoded form as <i>ucs2</i>.</p> <!-- @@@unicodeVersion --> </div> <div class="relnonmem"> <h2>Related Non-Members</h2> <!-- $$$operator!=$$$operator!=QCharQChar --> <h3 class="fn"><a name="operator-not-eq-41"></a><span class="type">bool</span> <span class="name">operator!=</span> ( <span class="type">QChar</span> <i>c1</i>, <span class="type">QChar</span> <i>c2</i> )</h3> <p>Returns true if <i>c1</i> and <i>c2</i> are not the same Unicode character; otherwise returns false.</p> <!-- @@@operator!= --> <!-- $$$operator<$$$operator<QCharQChar --> <h3 class="fn"><a name="operator-lt-14"></a><span class="type">bool</span> <span class="name">operator<</span> ( <span class="type">QChar</span> <i>c1</i>, <span class="type">QChar</span> <i>c2</i> )</h3> <p>Returns true if the numeric Unicode value of <i>c1</i> is less than that of <i>c2</i>; otherwise returns false.</p> <!-- @@@operator< --> <!-- $$$operator<<$$$operator<<QDataStream&constQChar& --> <h3 class="fn"><a name="operator-lt-lt-78"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> & <span class="name">operator<<</span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> & <i>out</i>, const <span class="type">QChar</span> & <i>chr</i> )</h3> <p>Writes the char <i>chr</i> to the stream <i>out</i>.</p> <p><b>See also </b><a href="datastreamformat.html">Serializing Qt Data Types</a>.</p> <!-- @@@operator<< --> <!-- $$$operator<=$$$operator<=QCharQChar --> <h3 class="fn"><a name="operator-lt-eq-9"></a><span class="type">bool</span> <span class="name">operator<=</span> ( <span class="type">QChar</span> <i>c1</i>, <span class="type">QChar</span> <i>c2</i> )</h3> <p>Returns true if the numeric Unicode value of <i>c1</i> is less than or equal to that of <i>c2</i>; otherwise returns false.</p> <!-- @@@operator<= --> <!-- $$$operator==$$$operator==QCharQChar --> <h3 class="fn"><a name="operator-eq-eq-58"></a><span class="type">bool</span> <span class="name">operator==</span> ( <span class="type">QChar</span> <i>c1</i>, <span class="type">QChar</span> <i>c2</i> )</h3> <p>Returns true if <i>c1</i> and <i>c2</i> are the same Unicode character; otherwise returns false.</p> <!-- @@@operator== --> <!-- $$$operator>$$$operator>QCharQChar --> <h3 class="fn"><a name="operator-gt-9"></a><span class="type">bool</span> <span class="name">operator></span> ( <span class="type">QChar</span> <i>c1</i>, <span class="type">QChar</span> <i>c2</i> )</h3> <p>Returns true if the numeric Unicode value of <i>c1</i> is greater than that of <i>c2</i>; otherwise returns false.</p> <!-- @@@operator> --> <!-- $$$operator>=$$$operator>=QCharQChar --> <h3 class="fn"><a name="operator-gt-eq-9"></a><span class="type">bool</span> <span class="name">operator>=</span> ( <span class="type">QChar</span> <i>c1</i>, <span class="type">QChar</span> <i>c2</i> )</h3> <p>Returns true if the numeric Unicode value of <i>c1</i> is greater than or equal to that of <i>c2</i>; otherwise returns false.</p> <!-- @@@operator>= --> <!-- $$$operator>>$$$operator>>QDataStream&QChar& --> <h3 class="fn"><a name="operator-gt-gt-49"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> & <span class="name">operator>></span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> & <i>in</i>, <span class="type">QChar</span> & <i>chr</i> )</h3> <p>Reads a char from the stream <i>in</i> into char <i>chr</i>.</p> <p><b>See also </b><a href="datastreamformat.html">Serializing Qt Data Types</a>.</p> <!-- @@@operator>> --> </div> </div> </div> </div> <div class="ft"> <span></span> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.</p> <br /> <p> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.</p> <p> Documentation sources may be obtained from <a href="http://www.qt-project.org"> www.qt-project.org</a>.</p> <br /> <p> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. <a title="Privacy Policy" href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p> </div> <script src="scripts/functions.js" type="text/javascript"></script> </body> </html>