Espacios de nombres
Variantes
Acciones

Diferencia entre revisiones de «cpp/string/multibyte/btowc»

De cppreference.com
< cpp‎ | string‎ | multibyte
m (r2.7.3) (Bot Añadido: de, en, fr, it, ja, pt, ru, zh)
m (Use {{lc}}. Update links. Various fixes.)
 
Línea 11: Línea 11:
  
 
===Parámetros===
 
===Parámetros===
{{param list begin}}
+
{{begin}}
{{param list item | c |{{tr| carácter de un solo byte para ampliar| single-byte character to widen}}}}
+
{{| c |{{tr| carácter de un solo byte para ampliar| single-byte character to widen}}}}
{{param list end}}
+
{{end}}
  
 
===Valor de retorno===
 
===Valor de retorno===
{{c|WEOF}} if {{tt|c}} is {{c|EOF}}.  
+
{{c|WEOF}} if {{tt|c}} is {{|EOF}}.  
  
 
{{tr|Representación de caracteres gama de {{tt|c}} {{c|(unsigned char)c}} si es válido un solo byte en el estado inicial de cambios, de lo contrario {{c|WEOF}} .|Wide character representation of {{tt|c}} if {{c|(unsigned char)c}} is a valid single-byte character in the initial shift state, {{c|WEOF}} otherwise.}}
 
{{tr|Representación de caracteres gama de {{tt|c}} {{c|(unsigned char)c}} si es válido un solo byte en el estado inicial de cambios, de lo contrario {{c|WEOF}} .|Wide character representation of {{tt|c}} if {{c|(unsigned char)c}} is a valid single-byte character in the initial shift state, {{c|WEOF}} otherwise.}}
Línea 39: Línea 39:
  
 
===Ver también===
 
===Ver también===
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/string/multibyte/dcl list wctob}}
+
{{| cpp/string/multibyte/wctob}}
{{dcl list template | cpp/locale/ctype/dcl list do_widen}}
+
{{| cpp/locale/ctype/do_widen}}
{{dcl list see c | c/string/multibyte/btowc}}
+
{{see c | c/string/multibyte/btowc}}
{{dcl list end}}
+
{{end}}
  
 
[[de:cpp/string/multibyte/btowc]]
 
[[de:cpp/string/multibyte/btowc]]

Última revisión de 00:20 2 jul 2013

 
 
 
Cadenas multibyte terminadas en nulo
Ancho / multibyte conversiones
Original:
Wide/multibyte conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Tipos
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
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.
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.

Contenido

[editar] 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.

[editar] 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.

[editar] Ejemplo

#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

[editar] Ver también

Limita un carácter ancho a un carácter estrecho de un solo byte, si es posible.
(función) [editar]
[virtual]
convierte un carácter o caracteres de char a 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.

(función miembro virtual protegida de std::ctype) [editar]