std::mbrtoc32
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
ヘッダ <cuchar> で定義
|
||
std::size_t mbrtoc32( char32_t* pc32, const char* s, |
(C++11以上) | |
その32ビットの文字表現(一般的には、UTF-32)にナローマルチバイト文字に変換し.
Original:
Converts a narrow multibyte character to its 32-bit character representation (typically, UTF-32).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
s
がNULLポインタでない場合は、次のマルチバイト文字(任意のシフトシーケンスを含む)を完了するのに必要なバイト数を決定するためにn
が指すバイトから始めて、マルチバイト文字列の中で最もs
バイトを検査します。関数はs
で次のマルチバイト文字が完全かつ有効であると判断した場合、対応する32ビットの文字に変換して*pc32に格納(pc32
nullでない場合).Original:
If
s
is not a null pointer, inspects at most n
bytes of the multibyte character string, beginning with the byte pointed to by s
to determine the number of bytes necessary to complete the next multibyte character (including any shift sequences). If the function determines that the next multibyte character in s
is complete and valid, converts it to the corresponding 32-bit character and stores it in *pc32 (if pc32
is not null).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
*s
にマルチバイト文字がマルチchar32_tシーケンス(UTF-32では可能ではない)に対応している場合、この関数の最初の呼び出しの後に、*ps
はmbrtoc32
隣にコールが追加char32_tを書き出すような方法で更新されます、*s
を考慮せずに.Original:
If the multibyte character in
*s
corresponds to a multi-char32_t sequence (not possible with UTF-32), then after the first call to this function, *ps
is updated in such a way that the next calls to mbrtoc32
will write out the additional char32_t, without considering *s
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
s
がNULLポインターである場合、値n
とpc32
無視され、コールがstd::mbrtoc32(NULL, "", 1, ps)に相当するものであり.Original:
If
s
is a null pointer, the values of n
and pc32
are ignored and the call is equivalent to std::mbrtoc32(NULL, "", 1, ps).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
生産ワイド文字がヌル文字である場合、変換状態*psは初期シフト状態を表します.
Original:
If the wide character produced is the null character, the conversion state *ps represents the initial shift state.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
マクロ__STDC_UTF_32__が定義されている場合、この機能によって使用される32ビットのエンコーディングはUTF-32でそれ以外の場合は、実装定義である.
Original:
If the macro __STDC_UTF_32__ is defined, the 32-bit encoding used by this function is UTF-32, otherwise it is implementation-defined.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
パラメータ
pc32 | - | 結果として得られる32ビットの文字が書き込まれる場所へのポインタ
Original: pointer to the location where the resulting 32-bit character will be written The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
s | - | 入力として使用されるマルチバイト文字列へのポインタ
Original: pointer to the multibyte character string used as input The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
n | - | 調べることができますsのバイト数を制限しません
Original: limit on the number of bytes in s that can be examined The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
ps | - | マルチバイト文字列を解釈する際に使用される変換状態オブジェクトへのポインタ
Original: pointer to the conversion state object used when interpreting the multibyte string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
値を返します
:適用される次の最初
Original:
The first of the following that applies:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- 0ヌル文字であった文字は
s
から変換(null以外の場合と*pc32に格納されている)場合Original:0 if the character converted froms
(and stored in *pc32 if non-null) was the null characterThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - バイト数[1...n]首尾
s
から変換されたマルチバイト文字のOriginal:the number of bytes [1...n] of the multibyte character successfully converted froms
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - -3マルチchar32_t文字から次の文字char32_t今*pc32に書き込まれている場合。バイトはこのケースでは、入力から処理されません.Original:-3 if the next char32_t from a multi-char32_t character has now been written to *pc32. No bytes are processed from the input in this case.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - -2次回
n
バイトが不完全だが、今のところ有効なマルチバイト文字で構成されている場合。何も*pc32に書き込まれません.Original:-2 if the nextn
bytes constitute an incomplete, but so far valid, multibyte character. Nothing is written to *pc32.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - -1符号化エラーが発生した場合。
*pc32
が指定されていない場合は何もEILSEQに書き込まれません、値errnoは*psと値に格納されている.Original:-1 if encoding error occurs. Nothing is written to*pc32
, the value EILSEQ is stored in errno and the value if *ps is unspecified.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
も参照してください
C documentation for mbrtoc32
|