std::basic_ios::narrow
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| char narrow( char_type c, char dfault ) const; |
||
其標準相當於將當前的區域設置特定的字元
c。如果需要的話,將結果轉換從char_typechar。如果沒有可以進行轉換,該函數返回dfault.Original:
Converts a current locale-specific character
c to its standard equivalent. The result is converted from char_type to char if needed. If no conversion can be performed, the function returns dfault.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.
有效地調用std::use_facet< std::ctype<char_type> >(getloc()).narrow(c, dfault);.
Original:
Effectively calls std::use_facet< std::ctype<char_type> >(getloc()).narrow(c, dfault);.
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.
[编辑] 參數
| c | - | 字元轉換
Original: 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. |
| dfault | - | 字元返回,如果轉換不成功
Original: character to return if the conversion was unsuccessful The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 返回值
字元轉換為標準等效,然後char。
dfault如果轉換失敗則返回.Original:
Character converted to its standard equivalent and then to char.
dfault is returned if the conversion fails.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.
[编辑] 另請參閱
| widens characters (公共成員函數) | |