名前空間
変種
操作

std::codecvt::always_noconv, std::codecvt::do_always_noconv

提供: 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:
bool always_noconv() const
(1)
protected:
bool do_max_length() const
(2)
1)
パブリックメンバ関数は、最派生クラスのメンバ関数を呼び出しdo_always_noconv.
Original:
public member function, calls the member function do_always_noconv 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)
戻りtrueすべての有効な入力のためdo_in()do_out()リターンstd::codecvt_base::noconv両方の場合.
Original:
returns true if both do_in() and do_out() return std::codecvt_base::noconv for all valid inputs.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] 値を返します

trueこの変換ファセットが全く変換を実行しない場合、falseその他のとき.
Original:
true if this conversion facet performs no conversions, false otherwise.
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>戻りtrue
Original:
The non-converting specialization std::codecvt<char, char, std::mbstate_t> returns true
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::underflowを呼び出すのではなく、バルク文字のコピーを使用するstd::codecvt::inの実装で、例えば使用されるかもしれませんそれはstd::basic_filebufに吹き込まれたロケールを変換を実行しないことが知られている場合.
Original:
This function may be used e.g. in the implementation of std::basic_filebuf::underflow to use bulk character copy instead of calling std::codecvt::in if it is known that the locale imbued in the std::basic_filebuf does not perform any conversions.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 例外

noexcept specification:  
noexcept
  (C + + 11以来)

[編集]

#include <locale>
#include <iostream>
int main()
{
    std::cout << "The non-converting char<->char codecvt::always_noconv() returns " 
              << std::boolalpha
              << std::use_facet<std::codecvt<char, char, std::mbstate_t>>(
                    std::locale()
                 ).always_noconv() << "\n"
              << "while wchar_t<->char codecvt::always_noconv() returns "
              << std::use_facet<std::codecvt<wchar_t, char, std::mbstate_t>>(
                    std::locale()
                 ).always_noconv() << "\n";
 
}

Output:

The non-converting char<->char codecvt::always_noconv() returns true
while wchar_t<->char codecvt::always_noconv() returns false