名前空間
変種
操作

std::codecvt::unshift, std::codecvt::do_unshift

提供: cppreference.com
< cpp‎ | locale‎ | codecvt

 
 
ローカライゼーションライブラリ
ロケールおよびファセット
Original:
Locales and facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
locale
文字分類
Original:
Character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
変換
Original:
Conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ファセットカテゴリの基底クラスです
Original:
Facet category base classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ファセットカテゴリ
Original:
Facet categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ロケール固有のファセット
Original:
Locale-specific facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
コー​​ド変換ファセット
Original:
Code conversion facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
codecvt_utf8(C++11)
codecvt_utf16(C++11)
Cロケール
Original:
C locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
 
Defined in header <locale>
public:

result unshift( stateT& state,
                externT* to,
                externT* to_end,

                externT*& to_next) const
(1)
protected:

result do_unshift( stateT& state,
                   externT* to,
                   externT* to_end,

                   externT*& to_next) const
(2)
1)
パブリックメンバ関数は、最派生クラスのメンバ関数を呼び出しdo_unshift.
Original:
public member function, calls the member function do_unshift of the most derived class.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
このcodecvtファセットによって表されるエンコーディングが状態に依存しており、stateが初期シフト状態ではない変換状態を表している場合、初期シフト状態に戻すために必要な文字を書き込みます。文字は、最初の要素toによって指された文字配列に書き込まれます。 to_end-to文字以上は出力されない。パラメータto_nextは、最後に書き込まれた文字過去のものを指すように更新され.
Original:
if the encoding represented by this codecvt facet is state-dependent, and state represents a conversion state that is not the initial shift state, writes the characters necessary to return to the initial shift state. The characters are written to a character array whose first element is pointed to by to. No more than to_end-to characters are written. The parameter to_next is updated to point one past the last character written.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] 値を返します

次のように、成功のステータスを示すタイプstd::codecvt_base::resultの値:
Original:
A value of type std::codecvt_base::result, indicating the success status as follows:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ok
必要なすべての文字が書かれていました。 stateは現在、初期シフト状態を表しています
Original:
all necessary characters were written. state now represents 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.
partial
出力バッファ内の十分なスペースがありません。 to_next == to_end
Original:
not enough space in the output buffer. to_next == to_end
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
error
不明なエラーが発生しました
Original:
unspecified error occurred
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
noconv
エンコーディングは、必要ない終結配列状態依存ではありません
Original:
the encoding is not state-dependent, no termination sequence necessary
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
非変換の専門はstd::codecvt<char, char, std::mbstate_t>常にstd::codecvt_base::noconvを返します
Original:
The non-converting specialization std::codecvt<char, char, std::mbstate_t> always returns std::codecvt_base::noconv
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] ノート

状態依存のマルチバイト文字シーケンスを確定する場合、この関数はstd::basic_filebuf::close()によって、他の状況では呼ばれて.
Original:
This function is called by std::basic_filebuf::close() and in other situations when finalizing a state-dependent multibyte character sequence.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集]

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

そのマルチバイト表現、所定の状態にワイド文字に変換します
Original:
converts a wide character to its multibyte representation, given state
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メンバ関数) [edit]