Diferencia entre revisiones de «cpp/string/multibyte/btowc»
De cppreference.com
m (1 revisión: Translate from the English version) |
m (r2.7.3) (Bot Añadido: de, en, fr, it, ja, pt, ru, zh) |
||
Línea 44: | Línea 44: | ||
{{dcl list see c | c/string/multibyte/btowc}} | {{dcl list see c | c/string/multibyte/btowc}} | ||
{{dcl list end}} | {{dcl list end}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ |
Revisión de 16:25 2 nov 2012
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
Definido en el archivo de encabezado <cwchar>
|
||
std::wint_t btowc( int c ); |
||
Amplía una
c
caracteres de un solo byte en su equivalente de caracteres anchos .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.
Codificaciones de caracteres multibyte utilizar más de un byte códigos para representar los caracteres del juego de caracteres ASCII. Esta función puede ser utilizada para convertir estos caracteres 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.
Contenido |
Parámetros
c | - | carácter de un solo byte para ampliar
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. |
Valor de retorno
WEOF if c
is EOF.
Representación de caracteres gama de
c
(unsigned char)c si es válido un solo byte en el estado inicial de cambios, de lo contrario WEOF .Original:
Wide character representation of
c
if (unsigned char)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.
Ejemplo
Ejecuta este código
#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')); }
Salida:
wide: a widened from narrow: a
Ver también
C documentation for btowc
|