QLatin1String

見出し


QLatin1String クラス

QLatin1Char 文字列を扱うクラスです。
公式リファレンス

性質

すべてのメソッドはリエントラントです。

メンバ関数

QLatin1String::QLatin1String(const char * str)
指定したLatin1文字を表す QLatin1String オブジェクトを生成します。
パラメータ
  • str Latin1文字
Nullの場合は空の QChar オブジェクトを生成します。
str はコピーされません。このオブジェクトが存在する間は変更及び削除してはいけません。

QLatin1String::QLatin1String(const char * str, int size)
指定したLatin1文字を表す QLatin1String オブジェクトを生成します。
パラメータ
  • str Latin1文字
Nullの場合は空の QChar オブジェクトを生成します。
str はコピーされません。このオブジェクトが存在する間は変更及び削除してはいけません。
  • size str の文字数


QLatin1String::QLatin1String(const QByteArray & str)
指定したLatin1文字を表す QLatin1String オブジェクトを生成します。
パラメータ
  • str Latin1文字
str はコピーされません。このオブジェクトが存在する間は変更及び削除してはいけません。

const char * QLatin1String::data() const
const char * QLatin1String::latin1() const
このオブジェクトに保存されている文字列へのポインタを返します。

int QLatin1String::size() const
この文字列の文字数を返します。

比較演算子
bool QLatin1String::operator==(const QString & other) const
bool QLatin1String::operator==(const QByteArray & s) const
bool QLatin1String::operator==(const char * other) const

bool QLatin1String::operator!=(const QString & other) const
bool QLatin1String::operator!=(const QByteArray & s) const
bool QLatin1String::operator!=(const char * other) const

bool QLatin1String::operator<(const QString & other) const
bool QLatin1String::operator<(const QByteArray & s) const
bool QLatin1String::operator<(const char * other) const

bool QLatin1String::operator<=(const QString & other) const
bool QLatin1String::operator<=(const QByteArray & s) const
bool QLatin1String::operator<=(const char * other) const

bool QLatin1String::operator>(const QString & other) const
bool QLatin1String::operator>(const QByteArray & s) const
bool QLatin1String::operator>(const char * other) const

bool QLatin1String::operator>=(const QString & other) const
bool QLatin1String::operator>=(const QByteArray & s) const
bool QLatin1String::operator>=(const char * other) const

その他

グローバルに定義されている比較演算子
bool operator>=(QLatin1String s1, QLatin1String s2)
bool operator!=(QLatin1String s1, QLatin1String s2)
bool operator<(QLatin1String s1, QLatin1String s2)
bool operator<=(QLatin1String s1, QLatin1String s2)
bool operator==(QLatin1String s1, QLatin1String s2)
bool operator>(QLatin1String s1, QLatin1String s2)

タグ:

+ タグ編集
  • タグ:

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

最終更新:2014年08月31日 02:10