QChar

見出し


QChar クラス

16ビット文字を扱うクラスです。
公式リファレンス

性質


メンバ関数

コンストラクタ

Unicode関係

Category QChar::category() const
Category QChar::category(uint ucs4) [static]
この文字のカテゴリーを返します。

uchar QChar::cell() const
この文字のセルを返します。

unsigned char QChar::combiningClass() const
unsigned char QChar::combiningClass(uint ucs4) [static]
この文字の結合クラスを返します。

UnicodeVersion QChar::currentUnicodeVersion() [static]
Qtでサポートされる最新のUnicodeバージョンを返します。
返り値
キー 説明
QChar::Unicode_1_1 1 Version 1.1
QChar::Unicode_2_0 2 Version 2.0
QChar::Unicode_2_1_2 3 Version 2.1.2
QChar::Unicode_3_0 4 Version 3.0
QChar::Unicode_3_1 5 Version 3.1
QChar::Unicode_3_2 6 Version 3.2
QChar::Unicode_4_0 7 Version 4.0
QChar::Unicode_4_1 8 Version 4.1
QChar::Unicode_5_0 9 Version 5.0
QChar::Unicode_5_1 10 Version 5.1
QChar::Unicode_5_2 11 Version 5.2
QChar::Unicode_6_0 12 Version 6.0
QChar::Unicode_6_1 13 Version 6.1
QChar::Unicode_6_2 14 Version 6.2
QChar::Unicode_6_3 15 Version 6.3
QChar::Unicode_Unassigned 0 バージョン6.3のUnicodeでは文字が割り当てられていません。

QString QChar::decomposition() const
QString QChar::decomposition(uint ucs4) [static]
この文字を分解して文字列で返します。
分解が存在しない場合は空の文字列を返します。

Decomposition QChar::decompositionTag() const
Decomposition QChar::decompositionTag(uint ucs4) [static]
この文字の結合を定義したタグを返します。
分解が存在しない場合は QChar::NoDecomposition を返します。
返り値
キー
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

int QChar::digitValue() const
int QChar::digitValue(uint ucs4) [static]
この文字をint型に変換して返します。
文字が数字でない場合は-1を返します。

Direction QChar::direction() const
Direction QChar::direction(uint ucs4) [static]
この文字の方向を返します。
パラメータ
キー 説明
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::DirFSI|21|Since Qt 5.3
QChar::DirL 0
QChar::DirLRE 11
|QChar::DirLRI|19|Since Qt 5.3
QChar::DirLRO 12
QChar::DirNSM 17
QChar::DirON 10
QChar::DirPDF 16
|QChar::DirPDI|22|Since Qt 5.3
QChar::DirR 1
QChar::DirRLE 14
|QChar::DirRLI|20|Since Qt 5.3
QChar::DirRLO 15
QChar::DirS 8
QChar::DirWS 9

QChar QChar::fromLatin1(char c) [static]
指定したLatin1文字をこのオブジェクトに設定します。

bool QChar::hasMirrored() const
bool QChar::hasMirrored(uint ucs4) [static]
文章の方向が反転した場合にこの文字が反転する場合はtrue、そうでない場合はfalseを返します。

ushort QChar::highSurrogate(uint ucs4) [static]
指定文字のサロゲートペアの上位パートを返します。
パラメータ
  • ucs4 ucs4文字
0x10000 未満の場合は結果は未定義です。

bool QChar::isDigit() const
bool QChar::isDigit(uint ucs4) [static]
この文字が10進数の場合はtrue、そうでない場合はfalseを返します。

bool QChar::isHighSurrogate() const
bool QChar::isHighSurrogate(uint ucs4) [static]
この文字がUTF16サロゲートペアの上位パートの場合はtrue、そうでない場合はfalseを返します。

bool QChar::isLetter() const
bool QChar::isLetter(uint ucs4) [static]
この文字が文字である場合はtrue、そうでない場合はfalseを返します。

bool QChar::isLetterOrNumber() const
bool QChar::isLetterOrNumber(uint ucs4) [static]
この文字が文字または数字である場合はtrue、そうでない場合はfalseを返します。

bool QChar::isLowSurrogate() const
bool QChar::isLowSurrogate(uint ucs4) [static]
この文字がUTF16サロゲートペアの下位パートの場合はtrue、そうでない場合はfalseを返します。

bool QChar::isLower() const
bool QChar::isLower(uint ucs4) [static]
この文字が小文字の場合はtrue、そうでない場合はfalseを返します。

bool QChar::isMark() const
bool QChar::isMark(uint ucs4) [static]
この文字がマークである場合はtrue、そうでない場合はfalseを返します。

bool QChar::isNonCharacter() const
bool QChar::isNonCharacter(uint ucs4) [static]
この文字が非文字である場合はtrue、そうでない場合はfalseを返します。

bool QChar::isNull() const
この文字がNull(\0)を表す場合はtrue、そうでない場合はfalseを返します。

bool QChar::isNumber() const
bool QChar::isNumber(uint ucs4) [static]
この文字が数字である場合はtrue、そうでない場合はfalseを返します。

bool QChar::isPrint() const
bool QChar::isPrint(uint ucs4) [static]
この文字が印刷可能な文字である場合はtrue、そうでない場合はfalseを返します。
注意
この結果は特定のフォントにおいてその文字が利用可能かどうかということはわかりません

bool QChar::isPunct() const
bool QChar::isPunct(uint ucs4) [static]
この文字が句読点である場合はtrue、そうでない場合はfalseを返します。

bool QChar::isSpace() const
bool QChar::isSpace(uint ucs4) [static]
この文字が空白である場合はtrue、そうでない場合はfalseを返します。

bool QChar::isSurrogate() const
bool QChar::isSurrogate(uint ucs4) [static]
この文字がUTF16サロゲートペアの下位パートまたは上位パートの場合はtrue、そうでない場合はfalseを返します。

bool QChar::isSymbol() const
bool QChar::isSymbol(uint ucs4) [static]
この文字が記号である場合はtrue、そうでない場合はfalseを返します。

bool QChar::isTitleCase() const
bool QChar::isTitleCase(uint ucs4) [static]
この文字がタイトルケース文字である場合はtrue、そうでない場合はfalseを返します。

bool QChar::isUpper() const
bool QChar::isUpper(uint ucs4) [static]
指定した文字が大文字である場合はtrue、そうでない場合はfalseを返します。

JoiningType QChar::joiningType() const
JoiningType QChar::joiningType(uint ucs4) [static]
この文字タイプ属性を返します。(アラビア語などで必要になります)

ushort QChar::lowSurrogate(uint ucs4) [static]
サロゲートペアである指定文字の下位パートを返します。

QChar QChar::mirroredChar() const
uint QChar::mirroredChar(uint ucs4) [static]
この文字を反転した文字を返します。

bool QChar::requiresSurrogates(uint ucs4) [static]
指定した文字がサロゲートペアかどうかを返します。

uchar QChar::row() const
この文字の行を返します。

Script QChar::script() const
Script QChar::script(uint ucs4) [static]
Unicodeスクリプト設定値を返します。

uint QChar::surrogateToUcs4(ushort high, ushort low) [static]
uint QChar::surrogateToUcs4(QChar high, QChar low) [static]
UTF16のサロゲートペアをUCS4に変換して返します。

QChar QChar::toCaseFolded() const
uint QChar::toCaseFolded(uint ucs4) [static]
この文字をケースフォルディングして返します。
多くのUnicode文字では toLowerCase() と同じ結果になります。

char QChar::toLatin1() const
Latin1文字へ変換して返します。

QChar QChar::toLower() const
uint QChar::toLower(uint ucs4) [static]
この文字を小文字に変換して返します。

QChar QChar::toTitleCase() const
uint QChar::toTitleCase(uint ucs4) [static]
この文字をタイトルケースに変換して返します。

QChar QChar::toUpper() const
uint QChar::toUpper(uint ucs4) [static]
この文字を大文字に変換して返します。

ushort QChar::unicode() const
ushort & QChar::unicode()
この文字のUnicode符号点を返します。

UnicodeVersion QChar::unicodeVersion() const
UnicodeVersion QChar::unicodeVersion(uint ucs4) [static]
この文字が導入されたUnicodeバージョンを返します。

}

その他

bool operator!=(QChar c1, QChar c2)
c1 と c2 が等しい場合はtrue、そうでない場合はfalseを返します。

bool operator==(QChar c1, QChar c2)
c1 と c2 が異なる場合はtrue、そうでない場合はfalseを返します。

bool operator<(QChar c1, QChar c2)
c1 より c2 のほうが大きい場合はtrue、そうでない場合はfalseを返します。

bool operator<=(QChar c1, QChar c2)
c1 より c2 のほうが大きいか等しい場合はtrue、そうでない場合はfalseを返します。

bool operator>(QChar c1, QChar c2)
c1 が c2 より大きいか等しい場合はtrue、そうでない場合はfalseを返します。

bool operator>=(QChar c1, QChar c2)
c1 が c2 より大きいか等しい場合はtrue、そうでない場合はfalseを返します。

QDataStream & operator<<(QDataStream & out, QChar chr)
QDataStream & operator>>(QDataStream & in, QChar & chr)

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

最終更新:2014年08月31日 01:30