std::btowc
Da 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. |
Definido no cabeçalho <cwchar> | ||
std::wint_t btowc(int c ); | ||
Amplia a
c
caractere de byte único para o seu equivalente caractere de largura.Original:
Widens a single-byte character
c
to its wide character equivalent.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.
Codificação de caracteres multibyte mais usar códigos de byte único para representar os caracteres do conjunto de caracteres ASCII. Esta função pode ser usada para converter esses caracteres para wchar_t.
Original:
Most multibyte character encodings use single-byte codes to represent the characters from the ASCII character set. This function may be used to convert such characters to wchar_t.
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.
Índice |
[editar]Parâmetros
c | - | caractere de byte único a aumentar Original: single-byte character to widen The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar]Valor de retorno
WEOF if c
is EOF.
Representação de caracteres gama de
c
se (unsignedchar)c é um caractere de byte único válido no estado deslocamento inicial, WEOF outra forma.Original:
Wide character representation of
c
if (unsignedchar)c is a valid single-byte character in the initial shift state, WEOF otherwise.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.
[editar]Exemplo
#include <cwchar>#include <cstdio>#include <clocale> int main(){std::setlocale(LC_ALL, "");std::wprintf(L"wide: %lc\nwidened from narrow: %lc\n", L'a', std::btowc('a'));}
Saída:
wide: a widened from narrow: a
[editar]Veja também
restringe um caráter amplo para um caractere de byte único estreita, se possível Original: narrows a wide character to a single-byte narrow character, if possible The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função) | |
[virtual] | converte um caractere ou caracteres de char para charT Original: converts a character or characters from char to charT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtual protegido of std::ctype função de membro) |
Documentação C para btowc |