<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # QChar Class Reference ## [[QtCore](index.htm) module] 該QChar類提供了一個16位的Unicode字符。[More...](#details) ### Types * `enum Category { NoCategory, Mark_NonSpacing, Mark_SpacingCombining, Mark_Enclosing, ..., Symbol_Other }` * `enum CombiningClass { Combining_BelowLeftAttached, Combining_BelowAttached, Combining_BelowRightAttached, Combining_LeftAttached, ..., Combining_IotaSubscript }` * `enum Decomposition { NoDecomposition, Canonical, Font, NoBreak, ..., Fraction }` * `enum Direction { DirL, DirR, DirEN, DirES, ..., DirBN }` * `enum Joining { OtherJoining, Dual, Right, Center }` * `enum SpecialCharacter { Null, Nbsp, ReplacementCharacter, ObjectReplacementCharacter, ..., LineSeparator }` * `enum UnicodeVersion { Unicode_Unassigned, Unicode_1_1, Unicode_2_0, Unicode_2_1_2, ..., Unicode_5_0 }` ### Methods * `__init__ (self)` * `__init__ (self, str?c)` * `__init__ (self, QLatin1Char?ch)` * `__init__ (self, str?c, str?r)` * `__init__ (self, int?rc)` * `__init__ (self, SpecialCharacter?s)` * `__init__ (self, QChar)` * `Category category (self)` * `str cell (self)` * `str combiningClass (self)` * `QString decomposition (self)` * `Decomposition decompositionTag (self)` * `int digitValue (self)` * `Direction direction (self)` * `bool hasMirrored (self)` * `bool isDigit (self)` * `bool isHighSurrogate (self)` * `bool isLetter (self)` * `bool isLetterOrNumber (self)` * `bool isLower (self)` * `bool isLowSurrogate (self)` * `bool isMark (self)` * `bool isNull (self)` * `bool isNumber (self)` * `bool isPrint (self)` * `bool isPunct (self)` * `bool isSpace (self)` * `bool isSymbol (self)` * `bool isTitleCase (self)` * `bool isUpper (self)` * `Joining joining (self)` * `QChar mirroredChar (self)` * `str row (self)` * `setCell (self, str?acell)` * `setRow (self, str?arow)` * `str toAscii (self)` * `QChar toCaseFolded (self)` * `str toLatin1 (self)` * `QChar toLower (self)` * `QChar toTitleCase (self)` * `QChar toUpper (self)` * `int unicode (self)` * `UnicodeVersion unicodeVersion (self)` ### Static Methods * `Category category (int?ucs4)` * `str combiningClass (int?ucs4)` * `UnicodeVersion currentUnicodeVersion ()` * `QString decomposition (int?ucs4)` * `Decomposition decompositionTag (int?ucs4)` * `int digitValue (int?ucs4)` * `Direction direction (int?ucs4)` * `QChar fromAscii (str?c)` * `QChar fromLatin1 (str?c)` * `int highSurrogate (int?ucs4)` * `bool isHighSurrogate (int?ucs4)` * `bool isLowSurrogate (int?ucs4)` * `Joining joining (int?ucs4)` * `int lowSurrogate (int?ucs4)` * `int mirroredChar (int?ucs4)` * `bool requiresSurrogates (int?ucs4)` * `int surrogateToUcs4 (int?high, int?low)` * `int surrogateToUcs4 (QChar?high, QChar?low)` * `int toCaseFolded (int?ucs4)` * `int toLower (int?ucs4)` * `int toTitleCase (int?ucs4)` * `int toUpper (int?ucs4)` * `UnicodeVersion unicodeVersion (int?ucs4)` ### Special Methods * `QString __add__ (self, QString?s2)` * `bool __eq__ (self, QChar?c2)` * `bool __ge__ (self, QChar?c2)` * `bool __gt__ (self, QChar?c2)` * `int __hash__ (self)` * `bool __le__ (self, QChar?c2)` * `bool __lt__ (self, QChar?c2)` * `bool __ne__ (self, QChar?c2)` * `str __repr__ (self)` * `str __str__ (self)` * `unicode __unicode__ (self)` * * * ## Detailed Description 這個類可以醃制。 該QChar類提供了一個16位的Unicode字符。 在Qt中, Unicode字符是沒有任何標記或結構的16位實體。此類表示這樣的實體。它是輕量級的,因此它可以隨處使用。大多數編譯器把它當作`unsigned short`。 QChar提供的測試/分類功能全套,轉換和從其他格式,從組成到分解的Unicode轉換,并試圖比較和大小寫轉換,如果你問它。 分類功能包括像那些在標準C + +頭\u003ccctype\u003e (原\u003cCTYPE.H\u003e )功能,但在全方位的Unicode字符操作。他們都返回True,如果該字符是某種類型的字符,否則返回假。這些分類功能[isNull](qchar.html#isNull)( ) (如果字符是'\ 0'返回True ) ,[isPrint](qchar.html#isPrint)( ) ( True如果字符是任何類型的可打印字符,包括空格的) ,[isPunct](qchar.html#isPunct)( ) (任何種類的點狀的) ,[isMark](qchar.html#isMark)( ) ( Unicode的標志) ,[isLetter](qchar.html#isLetter)( ) (一個字母) ,[isNumber](qchar.html#isNumber)( ) (任何種類的數字字符,不只是0-9 ) ,[isLetterOrNumber](qchar.html#isLetterOrNumber)()和[isDigit](qchar.html#isDigit)( ) (小數位數) 。所有這些都是圍繞包裝[category](qchar.html#category)( ),它返回的Unicode定義的每個字符的類別。 QChar還提供[direction](qchar.html#direction)( ),表示這個人物的“自然”的寫作方向。該[joining](qchar.html#joining)( )函數指示如何連接字符與鄰國(主要是阿拉伯語需要) ,最后[hasMirrored](qchar.html#hasMirrored)( ),這表明該字符是否需要打印時在其“非自然”的寫作方向進行鏡像。 由Unicode字符(如A )可以通過使用被轉換為Unicode的分解( “一”加“環以上” )[decomposition](qchar.html#decomposition)( ) 。 在Unicode中,比較未必能夠和大小寫轉換是非常困難的最好的。 Unicode的,涵蓋了“全”的世界,也包括世界上大部分的情況下和排序問題。運算符== ()和朋友會做的字符的數值Unicode值(代碼點)完全基于比較和[toUpper](qchar.html#toUpper)()和[toLower](qchar.html#toLower)( )會做改變的情況下,當角色有一個明確定義的大寫/小寫形式。對于區域設置相關的比較,使用[QString.localeAwareCompare](qstring.html#localeAwareCompare)( ) 。 該轉換功能包括[unicode](qchar.html#unicode)( )(一個標量) ,[toLatin1](qchar.html#toLatin1)( ) (標量,但將所有非Latin-1字符為0) ,[row](qchar.html#row)( ) (給出了統一行) ,[cell](qchar.html#cell)( ) (給出了Unicode的細胞) ,[digitValue](qchar.html#digitValue)( ) (給出任何的眾多數字字符的整數值) ,以及一系列的構造函數。 QChar提供了構造函數和類型轉換運算符,可以很容易轉換,并從傳統的8位`char`秒。如果你定義`QT_NO_CAST_FROM_ASCII`和`QT_NO_CAST_TO_ASCII`,如在解釋[QString](qstring.html)文檔,你將需要顯式調用[fromAscii](qchar.html#fromAscii)()或[fromLatin1](qchar.html#fromLatin1)( ) ,或使用[QLatin1Char](qlatin1char.html),從8位構建QChar`char`,你將需要調用[toAscii](qchar.html#toAscii)()或[toLatin1](qchar.html#toLatin1)( )來得到8位的值返回。 * * * ## Type Documentation ``` QChar.Category ``` 此枚舉映射的Unicode字符類別。 下面的字符是規范性的統一: | Constant | Value | Description | | --- | --- | --- | | `QChar.Mark_NonSpacing` | `1` | Unicode類名的Mn | | `QChar.Mark_SpacingCombining` | `2` | Unicode類名MC | | `QChar.Mark_Enclosing` | `3` | Unicode類的名字我 | | `QChar.Number_DecimalDigit` | `4` | Unicode類名的Nd | | `QChar.Number_Letter` | `5` | Unicode類名標準升 | | `QChar.Number_Other` | `6` | Unicode類名無 | | `QChar.Separator_Space` | `7` | Unicode類Zs的名字 | | `QChar.Separator_Line` | `8` | Unicode類名ZL | | `QChar.Separator_Paragraph` | `9` | Unicode類名Zp中 | | `QChar.Other_Control` | `10` | Unicode類名副本 | | `QChar.Other_Format` | `11` | Unicode類名比照 | | `QChar.Other_Surrogate` | `12` | Unicode類名銫 | | `QChar.Other_PrivateUse` | `13` | Unicode類公司名稱 | | `QChar.Other_NotAssigned` | `14` | Unicode類名稱CN | 以下類別的信息以Unicode : | Constant | Value | Description | | --- | --- | --- | | `QChar.Letter_Uppercase` | `15` | Unicode類名陸 | | `QChar.Letter_Lowercase` | `16` | Unicode類名LL | | `QChar.Letter_Titlecase` | `17` | Unicode類名中尉 | | `QChar.Letter_Modifier` | `18` | Unicode類名流明 | | `QChar.Letter_Other` | `19` | Unicode類名羅 | | `QChar.Punctuation_Connector` | `20` | Unicode類名稱PC | | `QChar.Punctuation_Dash` | `21` | Unicode類名的Pd | | `QChar.Punctuation_Open` | `22` | Unicode類名詩 | | `QChar.Punctuation_Close` | `23` | Unicode類名PE | | `QChar.Punctuation_InitialQuote` | `24` | Unicode類名皮 | | `QChar.Punctuation_FinalQuote` | `25` | Unicode類名PF | | `QChar.Punctuation_Other` | `26` | Unicode類名寶 | | `QChar.Symbol_Math` | `27` | Unicode類名稱SM | | `QChar.Symbol_Currency` | `28` | Unicode類名鈧 | | `QChar.Symbol_Modifier` | `29` | Unicode類名Sk的 | | `QChar.Symbol_Other` | `30` | Unicode的類名,這樣 | | `QChar.NoCategory` | `0` | Qt可以找不到一個合適的類別的字符。 | **See also** [category](qchar.html#category)( ) 。 ``` QChar.CombiningClass ``` ``` QChar.Decomposition ``` 這個枚舉類型定義了Unicode的分解特性。請參閱[Unicode Standard](http://www.unicode.org/)對值的說明。 | Constant | Value | | --- | --- | | `QChar.NoDecomposition` | `0` | | `QChar.Canonical` | `1` | | `QChar.Circle` | `8` | | `QChar.Compat` | `16` | | `QChar.Final` | `6` | | `QChar.Font` | `2` | | `QChar.Fraction` | `17` | | `QChar.Initial` | `4` | | `QChar.Isolated` | `7` | | `QChar.Medial` | `5` | | `QChar.Narrow` | `13` | | `QChar.NoBreak` | `3` | | `QChar.Small` | `14` | | `QChar.Square` | `15` | | `QChar.Sub` | `10` | | `QChar.Super` | `9` | | `QChar.Vertical` | `11` | | `QChar.Wide` | `12` | **See also** [decomposition](qchar.html#decomposition)( ) 。 ``` QChar.Direction ``` 這個枚舉類型定義了統一的方向屬性。請參閱[Unicode Standard](http://www.unicode.org/)對值的說明。 為了符合C / C + +的命名約定“dir”是預先考慮到Unicode標準中使用的代碼。 | Constant | Value | | --- | --- | | `QChar.DirAL` | `13` | | `QChar.DirAN` | `5` | | `QChar.DirB` | `7` | | `QChar.DirBN` | `18` | | `QChar.DirCS` | `6` | | `QChar.DirEN` | `2` | | `QChar.DirES` | `3` | | `QChar.DirET` | `4` | | `QChar.DirL` | `0` | | `QChar.DirLRE` | `11` | | `QChar.DirLRO` | `12` | | `QChar.DirNSM` | `17` | | `QChar.DirON` | `10` | | `QChar.DirPDF` | `16` | | `QChar.DirR` | `1` | | `QChar.DirRLE` | `14` | | `QChar.DirRLO` | `15` | | `QChar.DirS` | `8` | | `QChar.DirWS` | `9` | **See also** [direction](qchar.html#direction)( ) 。 ``` QChar.Joining ``` 這個枚舉類型定義的Unicode加入屬性。請參閱[Unicode Standard](http://www.unicode.org/)對值的說明。 | Constant | Value | | --- | --- | | `QChar.Center` | `3` | | `QChar.Dual` | `1` | | `QChar.OtherJoining` | `0` | | `QChar.Right` | `2` | **See also** [joining](qchar.html#joining)( ) 。 ``` QChar.SpecialCharacter ``` | Constant | Value | Description | | --- | --- | --- | | `QChar.Null` | `0x0000` | A [QChar](qchar.html)與此值[isNull](qchar.html#isNull)( ) 。 | | `QChar.Nbsp` | `0x00a0` | 不換行空格。 | | `QChar.ReplacementCharacter` | `0xfffd` | 所示的字符時,字體沒有字形一定的編碼點。一個特殊的問號字符被經常使用。編解碼器使用此代碼點,當輸入的數據不能以Unicode來表示。 | | `QChar.ObjectReplacementCharacter` | `0xfffc` | 用于表示一個對象,例如圖像時這樣的對象不能被提交。 | | `QChar.ByteOrderMark` | `0xfeff` | ? | | `QChar.ByteOrderSwapped` | `0xfffe` | ? | | `QChar.ParagraphSeparator` | `0x2029` | ? | | `QChar.LineSeparator` | `0x2028` | ? | ``` QChar.UnicodeVersion ``` 指定哪些版本[Unicode standard](http://www.unicode.org/)引入了一定的角色。 | Constant | Value | Description | | --- | --- | --- | | `QChar.Unicode_1_1` | `1` | 1.1版 | | `QChar.Unicode_2_0` | `2` | 2.0版 | | `QChar.Unicode_2_1_2` | `3` | 版本2.1.2 | | `QChar.Unicode_3_0` | `4` | 3.0版 | | `QChar.Unicode_3_1` | `5` | 3.1版 | | `QChar.Unicode_3_2` | `6` | 3.2版 | | `QChar.Unicode_4_0` | `7` | 4.0版 | | `QChar.Unicode_4_1` | `8` | 4.1版 | | `QChar.Unicode_5_0` | `9` | 5.0版 | | `QChar.Unicode_Unassigned` | `0` | 該值不會分配給任何字符的Unicode 5.0版。 | **See also** [unicodeVersion](qchar.html#unicodeVersion)( ) 。 * * * ## Method Documentation ``` QChar.__init__ (self) ``` 構造一個空[QChar](qchar.html)( '\ 0' ) 。 **See also** [isNull](qchar.html#isNull)( ) 。 ``` QChar.__init__ (self, str?c) ``` 構造一個[QChar](qchar.html)對應ASCII/Latin-1字符_ch_。 ``` QChar.__init__ (self, QLatin1Char?ch) ``` 構造一個[QChar](qchar.html)對應ASCII/Latin-1字符_ch_。 ``` QChar.__init__ (self, str?c, str?r) ``` 構造一個[QChar](qchar.html)對應ASCII/Latin-1字符_ch_。 ``` QChar.__init__ (self, int?rc) ``` 構造一個[QChar](qchar.html)對于Unicode細胞_cell_行_row_。 **See also** [cell](qchar.html#cell)()和[row](qchar.html#row)( ) 。 ``` QChar.__init__ (self, SpecialCharacter?s) ``` 構造一個[QChar](qchar.html)對于字符與Unicode代碼點_code_。 ``` QChar.__init__ (self, QChar) ``` 構造一個[QChar](qchar.html)對于字符與Unicode代碼點_code_。 ``` Category QChar.category (self) ``` [ 返回字符的類別。 ](qchar.html#Category-enum) ``` Category QChar.category (int?ucs4) ``` [ 這是一個重載函數。 返回由指定的UCS - 4編碼的字符的類別_ucs4_。 此功能被引入Qt的4.3 。 ``` str QChar.cell (self) ``` 返回Unicode字符的單元格(最顯著字節) 。 ](qchar.html#Category-enum) [**See also**](qchar.html#Category-enum) [row](qchar.html#row)( ) 。 ``` str QChar.combiningClass (self) ``` 返回結合類的字符作為Unicode標準定義。這主要是有用的定位提示為連接到一個基本字符標記。 Qt的文本渲染引擎使用這些信息來正確定位圍繞一個基本字符為非空格標記。 ``` str QChar.combiningClass (int?ucs4) ``` 這是一個重載函數。 返回組合類由指定的UCS - 4編碼的字符_ucs4_,如Unicode標準定義。 ``` UnicodeVersion QChar.currentUnicodeVersion () ``` [ 返回最近支持Unicode版本。 此功能被引入Qt的4.8 。 ``` QString QChar.decomposition (self) ``` 分解一個字符到它的部分。返回如果沒有分解存在一個空字符串。 ``` QString QChar.decomposition (int?ucs4) ``` 這是一個重載函數。 分解所指定的UCS - 4編碼的字符_ucs4_成其組成部分。返回如果沒有分解存在一個空字符串。 ](qchar.html#UnicodeVersion-enum) ``` Decomposition QChar.decompositionTag (self) ``` [](qchar.html#Decomposition-enum) [返回定義的字符的組合物中的標記。回報](qchar.html#Decomposition-enum)[QChar.Single](qchar.html#Decomposition-enum)如果沒有分解的存在。 ``` Decomposition QChar.decompositionTag (int?ucs4) ``` [ 這是一個重載函數。 ](qchar.html#Decomposition-enum) [返回定義所指定的UCS-4編碼的字符的組合物中的標記_ucs4_。回報](qchar.html#Decomposition-enum)[QChar.Single](qchar.html#Decomposition-enum)如果沒有分解的存在。 ``` int QChar.digitValue (self) ``` 返回數字的數值,或者-1如果字符是不是數字。 ``` int QChar.digitValue (int?ucs4) ``` 這是一個重載函數。 返回數字的數字值,由UCS-2編碼的字符指定_ucs2_,或-1,如果字符不是一個數字。 ``` Direction QChar.direction (self) ``` [ 返回字符的方向。 ](qchar.html#Direction-enum) ``` Direction QChar.direction (int?ucs4) ``` [ 這是一個重載函數。 返回由指定的UCS - 4編碼的字符的方向_ucs4_。 ``` QChar QChar.fromAscii (str?c) ``` ](qchar.html#Direction-enum) [ASCII字符轉換_c_它的等效](qchar.html#Direction-enum)[QChar](qchar.html)。這主要是針對非國際化的軟件非常有用。 一個替代方案是使用[QLatin1Char](qlatin1char.html)。 **See also** [fromLatin1](qchar.html#fromLatin1)( )[unicode](qchar.html#unicode)()和[QTextCodec.codecForCStrings](qtextcodec.html#codecForCStrings)( ) 。 ``` QChar QChar.fromLatin1 (str?c) ``` 拉丁- 1字符轉換_c_它的等效[QChar](qchar.html)。這主要是針對非國際化的軟件非常有用。 **See also** [fromAscii](qchar.html#fromAscii)( )[unicode](qchar.html#unicode)()和[QTextCodec.codecForCStrings](qtextcodec.html#codecForCStrings)( ) 。 ``` bool QChar.hasMirrored (self) ``` 返回True如果如果文本方向是相反的性格應該得到扭轉,否則返回False 。 同(章[mirroredChar](qchar.html#mirroredChar)( !) = CH) 。 **See also** [mirroredChar](qchar.html#mirroredChar)( ) 。 ``` int QChar.highSurrogate (int?ucs4) ``` 返回一個UCS4代碼點的高代理項值。返回的結果是不確定的,如果_ucs4_比0x10000處小。 ``` bool QChar.isDigit (self) ``` 如果字符是十進制數字,則返回True ([Number_DecimalDigit](qchar.html#Category-enum)),否則返回False 。 ``` bool QChar.isHighSurrogate (self) ``` 返回True如果[QChar](qchar.html)是UTF16代理(也就是說,如果它的代碼點是0xd800和0xdbff (含)之間)的高位部分。 ``` bool QChar.isHighSurrogate (int?ucs4) ``` 返回True如果指定的UCS - 4編碼的字符_ucs4_是UTF16代理(也就是說,如果它的代碼點是0xd800和0xdbff (含)之間)的高位部分。 此功能被引入Qt的4.7 。 ``` bool QChar.isLetter (self) ``` 返回True如果該字符是字母( Letter_ *類),否則返回False 。 ``` bool QChar.isLetterOrNumber (self) ``` 返回True如果該字符是字母或數字( Letter_ *或[Number_](index.htm#number)*類),否則返回False 。 ``` bool QChar.isLower (self) ``` 返回True如果該字符是小寫字母,即[category](qchar.html#category)()是[Letter_Lowercase](qchar.html#Category-enum)。 **See also** [isUpper](qchar.html#isUpper)( )[toLower](qchar.html#toLower)()和[toUpper](qchar.html#toUpper)( ) 。 ``` bool QChar.isLowSurrogate (self) ``` 返回True如果[QChar](qchar.html)是UTF16代理(也就是說,如果它的代碼點是介于0xDC00和0xdfff (含)之間)的低部。 ``` bool QChar.isLowSurrogate (int?ucs4) ``` 返回True如果指定的UCS - 4編碼的字符_ucs4_是UTF16代理(也就是說,如果它的代碼點是介于0xDC00和0xdfff (含)之間)的低部。 此功能被引入Qt的4.7 。 ``` bool QChar.isMark (self) ``` 返回True如果字符是標記( Mark_ *類),否則返回False 。 See [QChar.Category](qchar.html#Category-enum)了解有關標記的更多信息。 ``` bool QChar.isNull (self) ``` 返回True如果該字符是Unicode字符為0x0000 ( '\ 0' ),否則返回False 。 ``` bool QChar.isNumber (self) ``` 返回True如果該字符是數字([Number_](index.htm#number)*類別,而不只是0-9 ),否則返回False 。 **See also** [isDigit](qchar.html#isDigit)( ) 。 ``` bool QChar.isPrint (self) ``` 返回True如果字符是可打印字符,否則返回False 。這是不是類抄送或CN任意字符。 請注意,這沒有給出的字符是否是在一個特定的字體。 ``` bool QChar.isPunct (self) ``` 返回True如果字符是一個標點符號( Punctuation_ *類),否則返回False 。 ``` bool QChar.isSpace (self) ``` 返回True如果該字符是一個分隔符( Separator_ *類),否則返回False 。 ``` bool QChar.isSymbol (self) ``` 返回True如果該字符是符號( Symbol_ *類),否則返回False 。 ``` bool QChar.isTitleCase (self) ``` 返回True如果該字符是首字母大寫字母,即[category](qchar.html#category)()是[Letter_Titlecase](qchar.html#Category-enum)。 此功能被引入Qt的4.3 。 **See also** [isLower](qchar.html#isLower)( )[toUpper](qchar.html#toUpper)( )[toLower](qchar.html#toLower)()和[toTitleCase](qchar.html#toTitleCase)( ) 。 ``` bool QChar.isUpper (self) ``` 返回True如果該字符是一個大寫字母,即[category](qchar.html#category)()是[Letter_Uppercase](qchar.html#Category-enum)。 **See also** [isLower](qchar.html#isLower)( )[toUpper](qchar.html#toUpper)()和[toLower](qchar.html#toLower)( ) 。 ``` Joining QChar.joining (self) ``` [ 返回有關字符(需要一定的語言,如阿拉伯語)的連接屬性的信息。 ](qchar.html#Joining-enum) ``` Joining QChar.joining (int?ucs4) ``` [ 這是一個重載函數。 返回有關指定的UCS - 4編碼的字符的連接屬性的信息_ucs4_(需要特定的語言,如阿拉伯語) 。 ``` int QChar.lowSurrogate (int?ucs4) ``` 返回一個UCS4代碼點的低代理項值。返回的結果是不確定的,如果_ucs4_比0x10000處小。 ``` QChar QChar.mirroredChar (self) ``` 返回鏡像的字符,如果這個字符是一個鏡像字符,否則返回字符本身。 ](qchar.html#Joining-enum) [**See also**](qchar.html#Joining-enum) [hasMirrored](qchar.html#hasMirrored)( ) 。 ``` int QChar.mirroredChar (int?ucs4) ``` 這是一個重載函數。 返回鏡像的字符,如果所指定的UCS - 4編碼的字符_ucs4_是一個鏡像字符,否則返回字符本身。 **See also** [hasMirrored](qchar.html#hasMirrored)( ) 。 ``` bool QChar.requiresSurrogates (int?ucs4) ``` 返回True如果指定的UCS - 4編碼的字符_ucs4_可以拆分成UTF16替代的高和低的部分(也就是說,如果它的代碼點大于或等于0x10000處) 。 此功能被引入Qt的4.7 。 ``` str QChar.row (self) ``` 返回Unicode字符的行(最顯著字節)。 **See also** [cell](qchar.html#cell)( ) 。 ``` QChar.setCell (self, str?acell) ``` ``` QChar.setRow (self, str?arow) ``` ``` int QChar.surrogateToUcs4 (int?high, int?low) ``` 一個UTF16代理對給定的轉換_high_和_low_值其UCS- 4碼點。 ``` int QChar.surrogateToUcs4 (QChar?high, QChar?low) ``` 一個UTF16代理對(轉換_high_,_low_)其UCS4代碼點。 ``` str QChar.toAscii (self) ``` 返回的字符值[QChar](qchar.html)使用用于讀取C字符串當前的編解碼器,或者0,如果使用此編解碼器的字符是不能表示獲得的。默認的編解碼處理的Latin-1編碼的文本,但是這是可以改變的,以幫助開發人員使用其它的編碼編寫源代碼。 此功能的主要目的是保存在C字符串中使用ASCII字符。這主要是針對非國際化的軟件開發者很有用。 **See also** [toLatin1](qchar.html#toLatin1)( )[unicode](qchar.html#unicode)()和[QTextCodec.codecForCStrings](qtextcodec.html#codecForCStrings)( ) 。 ``` QChar QChar.toCaseFolded (self) ``` 返回的情況下折疊的字符等效的。對于大多數的Unicode字符,這是相同toLowerCase () 。 ``` int QChar.toCaseFolded (int?ucs4) ``` 這是一個重載函數。 返回的情況下通過折疊指定的UCS - 4編碼的字符等效_ucs4_。對于大多數的Unicode字符,這是相同toLowerCase () 。 ``` str QChar.toLatin1 (self) ``` 返回的Latin-1字符等同于[QChar](qchar.html)或0。這主要是針對非國際化的軟件非常有用。 **See also** [toAscii](qchar.html#toAscii)( )[unicode](qchar.html#unicode)()和[QTextCodec.codecForCStrings](qtextcodec.html#codecForCStrings)( ) 。 ``` QChar QChar.toLower (self) ``` 返回小寫等效如果字符是大寫或首字母大寫,否則返回字符本身。 ``` int QChar.toLower (int?ucs4) ``` 這是一個重載函數。 返回由指定的UCS - 4編碼的字符的小寫等效_ucs4_如果字符是大寫或首字母大寫,否則返回字符本身。 ``` QChar QChar.toTitleCase (self) ``` 返回標題等同的情況下如果字符是小寫或大寫,否則返回字符本身。 ``` int QChar.toTitleCase (int?ucs4) ``` 這是一個重載函數。 返回標題等同的情況下通過指定的UCS - 4編碼的字符_ucs4_如果字符是小寫或大寫,否則返回字符本身。 ``` QChar QChar.toUpper (self) ``` 返回大寫等價的,如果該字符是小寫或首字母大寫,否則返回字符本身。 ``` int QChar.toUpper (int?ucs4) ``` 這是一個重載函數。 返回由指定的UCS - 4編碼的字符的大寫形式_ucs4_如果字符是小寫或首字母大寫,否則返回字符本身。 ``` int QChar.unicode (self) ``` 返回一個引用的數字Unicode值[QChar](qchar.html)。 ``` UnicodeVersion QChar.unicodeVersion (self) ``` [ 返回介紹這個人物的Unicode版本。 ](qchar.html#UnicodeVersion-enum) ``` UnicodeVersion QChar.unicodeVersion (int?ucs4) ``` [ 這是一個重載函數。 返回介紹了其UCS- 4編碼的形式指定的字符的Unicode版本_ucs4_。 ``` QString QChar.__add__ (self, QString?s2) ``` ``` bool QChar.__eq__ (self, QChar?c2) ``` ``` bool QChar.__ge__ (self, QChar?c2) ``` ``` bool QChar.__gt__ (self, QChar?c2) ``` ``` int QChar.__hash__ (self) ``` ``` bool QChar.__le__ (self, QChar?c2) ``` ``` bool QChar.__lt__ (self, QChar?c2) ``` ``` bool QChar.__ne__ (self, QChar?c2) ``` ``` str QChar.__repr__ (self) ``` ``` str QChar.__str__ (self) ``` ``` unicode QChar.__unicode__ (self) ``` ](qchar.html#UnicodeVersion-enum)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看