Qtリファレンス QTextCodec 新しいページはコチラ
提供: yonewiki
(→静的メンバ関数 codecForUtfText) |
|||
8行: | 8行: | ||
− | === '''静的メンバ関数 setCodecForLocale''' === | + | === '''静的 static''' === |
+ | obj.xxxx()のように呼び出すのではなく、QTextCodec::xxxx()のようにして実体化されてなくても使える関数 | ||
+ | ==== '''静的メンバ関数 setCodecForLocale''' ==== | ||
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">void</span> <span style="color:blue;">QTextCodec::setCodecForLocale</span>(<span style="color:deeppink;">QTextCodec*</span> QTextCodecLocale);</span> | *<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">void</span> <span style="color:blue;">QTextCodec::setCodecForLocale</span>(<span style="color:deeppink;">QTextCodec*</span> QTextCodecLocale);</span> | ||
19行: | 21行: | ||
QTextCodecクラスのメンバ関数setCodecForLocaleの引数にQTextCodec型の戻り値の関数 or QTextCodec型のオブジェクトを指定する形式です。上記の例では以下で説明するようなQTextCodec型の戻り値を持つ関数を引数にしています。 | QTextCodecクラスのメンバ関数setCodecForLocaleの引数にQTextCodec型の戻り値の関数 or QTextCodec型のオブジェクトを指定する形式です。上記の例では以下で説明するようなQTextCodec型の戻り値を持つ関数を引数にしています。 | ||
− | === '''静的メンバ関数 codecForName''' === | + | ==== '''静的メンバ関数 codecForName''' ==== |
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecForName</span>(<span style="color:deeppink;">const QByteArray&</span> name)</span> | *<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecForName</span>(<span style="color:deeppink;">const QByteArray&</span> name)</span> | ||
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecForName</span>(<span style="color:deeppink;">const char*</span> name)</span> | *<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecForName</span>(<span style="color:deeppink;">const char*</span> name)</span> | ||
48行: | 50行: | ||
− | === '''静的メンバ関数 availableCodecs''' === | + | ==== '''静的メンバ関数 availableCodecs''' ==== |
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QList<QByteArray></span> <span style="color:blue;">QTextCodec::availableCodecs</span>()</span> | *<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QList<QByteArray></span> <span style="color:blue;">QTextCodec::availableCodecs</span>()</span> | ||
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QList<int></span> <span style="color:blue;">QTextCodec::availableMibs</span>()</span> | *<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QList<int></span> <span style="color:blue;">QTextCodec::availableMibs</span>()</span> | ||
54行: | 56行: | ||
− | === '''静的メンバ関数 codecForHtml''' === | + | ==== '''静的メンバ関数 codecForHtml''' ==== |
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecForHtml</span>(<span style="color:deeppink;">const QByteArray&</span> ba, <span style="color:deeppink;">QTextCodec*</span> defaultCodec)</span> | *<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecForHtml</span>(<span style="color:deeppink;">const QByteArray&</span> ba, <span style="color:deeppink;">QTextCodec*</span> defaultCodec)</span> | ||
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecForHtml</span>(<span style="color:deeppink;">const QByteArray&</span> ba)</span> | *<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecForHtml</span>(<span style="color:deeppink;">const QByteArray&</span> ba)</span> | ||
60行: | 62行: | ||
− | === '''静的メンバ関数 codecForLocale''' === | + | ==== '''静的メンバ関数 codecForLocale''' ==== |
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecForLocale</span>()</span> | *<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecForLocale</span>()</span> | ||
− | === '''静的メンバ関数 codecForMib''' === | + | ==== '''静的メンバ関数 codecForMib''' ==== |
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecForMib</span>(<span style="color:deeppink;">int</span> mib)</span> | *<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecForMib</span>(<span style="color:deeppink;">int</span> mib)</span> | ||
− | === '''静的メンバ関数 codecForUtfText''' === | + | ==== '''静的メンバ関数 codecForUtfText''' ==== |
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecUtfText</span>(<span style="color:deeppink;">const QByteArray&</span> ba, <span style="color:deeppink;">const QTextCodec*</span> defaultCodec)</span> | *<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecUtfText</span>(<span style="color:deeppink;">const QByteArray&</span> ba, <span style="color:deeppink;">const QTextCodec*</span> defaultCodec)</span> | ||
*<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecUtfText</span>(<span style="color:deeppink;">const QByteArray&</span> ba)</span> | *<span style = "background:linear-gradient(transparent 75%, #ffbf7f 75%); font-weight:bold; "><span style="color:deeppink;">QTextCodec*</span> <span style="color:blue;">QTextCodec::codecUtfText</span>(<span style="color:deeppink;">const QByteArray&</span> ba)</span> |