名前空間
変種
操作

std::c32rtomb

提供: cppreference.com
< cpp‎ | string‎ | multibyte

 
 
ストリングスライブラリ
NULLで終わる文字列
Original:
Null-terminated strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
バイト文字列
文字列をマルチバイト
ワイド文字列
クラス
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string
char_traits
 
NULLで終わるマルチバイト文字列
マルチバイト/ワイドコンバージョン
Original:
Wide/multibyte conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
mbsinit
タイプ
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
mbstate_t
 
Defined in header <cuchar>
std::size_t c32rtomb( char* s, char32_t c32, std::mbstate_t* ps );
(C++11およびそれ以降)
その狭いマルチバイト表現に32ビットのワイド文字を変換.
Original:
Converts a 32-bit wide character to its narrow multibyte representation.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
sがNULLポインタでない場合、この関数はc32(任意のシフトシーケンスを含む)のマルチバイト文字表現を格納するのに必要なバイト数を決定し、その最初の要素sによって指された文字配列にマルチバイト文字表現を格納します。最もMB_CUR_MAXバイトに、この関数によって記述することができ.
Original:
If s is not a null pointer, the function determines the number of bytes necessary to store the multibyte character representation of c32 (including any shift sequences), and stores the multibyte character representation in the character array whose first element is pointed to by s. At most MB_CUR_MAX bytes can be written by this function.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
sがNULLポインターである場合、コールは、いくつかの内部バッファstd::c32rtomb(buf, U'\0', ps)ためbufと同等です.
Original:
If s is a null pointer, the call is equivalent to std::c32rtomb(buf, U'\0', ps) for some internal buffer buf.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
C32は初期シフト状態と変換状態パラメータU'\0'が初期シフト状態を表すために更新されて回復させるために必要なシフトシーケンスによって先行nullワイド文字*ps、NULLバイトが格納されている場合.
Original:
If c32 is the null wide character U'\0', a null byte is stored, preceded by any shift sequence necessary to restore the initial shift state and the conversion state parameter *ps is updated to represent 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.
マクロ__STDC_UTF_32__が定義されている場合、この機能によって使用される32ビットのエンコーディングがUTF-32であり、それ以外の場合は、実装定義である。いずれにしても、この関数で使用されるマルチバイトエンコーディングは、現在アクティブなCロケールで指定されている.
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. In any case, the multibyte encoding used by this function is specified by the currently active C locale.
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 narrow character array where the multibyte character will be stored
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
c32 -
変換する32ビットの文字
Original:
the 32-bit character to convert
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.

[編集] 値を返します

成功した場合、最初の要素がsによって指された文字配列に書き込まれたバイト数を(任意のシフトシーケンスを含む)を返します。この値は0、例えばかもしれない(UTF-32では発生しません)マルチchar32_t文字のシーケンスの最初char32_tを処理するとき.
Original:
On success, returns the number of bytes (including any shift sequences) written to the character array whose first element is pointed to by s. This value may be 0, e.g. when processing the first char32_t in multi-char32_t-character sequence (does not occur in UTF-32).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
障害(c32有効な32ビット文字でない場合)、返品-1EILSEQの店舗errno、および詳細不明の状態で*psを葉の上に.
Original:
On failure (if c32 is not a valid 32-bit character), returns -1, stores EILSEQ in errno, and leaves *ps in unspecified state.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] も参照してください

(C++11)
ナローマルチバイト文字列から次の32ビットのワイド文字を生成します
Original:
generate the next 32-bit wide character from a narrow multibyte string
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数) [edit]
[仮想]
そのようなファイルに書き込むときのように、internTからexternTに文字列を変換します
Original:
converts a string from internT to externT, such as when writing to file
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(仮想protectedメンバ関数of std::codecvt) [edit]
C documentation for c32rtomb