2016-04-14から1日間の記事一覧

QByteArray QString::toLocal8Bit() const

Returns the local 8-bit representation of the string as a QByteArray. The returned byte array is undefined if the string contains characters not supported by the local 8-bit encoding. 文字列をローカルの 8 ビットで表した QByteArray を返しま…

QByteArray QString::toLatin1() const

Returns a Latin-1 representation of the string as a QByteArray. 文字列を Latin-1 で表した QByteArray を返します。 The returned byte array is undefined if the string contains non-Latin1 characters. Those characters may be suppressed or repl…

QByteArray QString::toAscii() const

Returns an 8-bit representation of the string as a QByteArray. 文字列を 8 ビットで表した QByteArray を返します。 If a codec has been set using QTextCodec::setCodecForCStrings(), it is used to convert Unicode to 8-bit char; otherwise this f…