std::btowc
Aus 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. |
definiert in Header <cwchar> | ||
std::wint_t btowc(int c ); | ||
Weitet sich eine Single-Byte-Zeichen
c
seiner breiten Charakter entspricht .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.
Die meisten Multibyte-Zeichenkodierung verwenden Single-Byte-Codes, um die Zeichen aus dem ASCII-Zeichensatz darstellen. Diese Funktion kann verwendet werden, um solche Schriftzeichen wchar_t umzuwandeln .
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.
Inhaltsverzeichnis |
[Bearbeiten]Parameter
c | - | Single-Byte-Zeichen zu erweitern 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. |
[Bearbeiten]Rückgabewert
WEOF if c
is EOF.
Wide character Darstellung
c
wenn (unsignedchar)c ist eine gültige Single-Byte-Zeichen in der ursprünglichen Schaltzustand WEOF sonst .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.
[Bearbeiten]Beispiel
#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'));}
Output:
wide: a widened from narrow: a
[Bearbeiten]Siehe auch
verengt eine breite Charakter zu einem Single-Byte engen Charakter, wenn möglich 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. (Funktion) | |
[virtuell] | wandelt ein Zeichen oder Zeichen aus char um 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. (virtuellen geschützten Member-Funktion of std::ctype ) |
C documentation for btowc |