std::btowc
De 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. |
Déclaré dans l'en-tête <cwchar> | ||
std::wint_t btowc(int c ); | ||
Élargit un
c
caractères mono-octet à son équivalent pour les caractères larges .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.
Codages de caractères multi-octets plus utiliser un seul octet codes pour représenter les caractères du jeu de caractères ASCII. Cette fonction peut être utilisée pour convertir ces caractères à 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.
Sommaire |
[modifier]Paramètres
c | - | caractères mono-octet de se creuser 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. |
[modifier]Retourne la valeur
WEOF if c
is EOF.
Représentation des caractères gamme de
c
si (unsignedchar)c est valide caractères mono-octet dans l'état initial, WEOF autrement .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.
[modifier]Exemple
#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'));}
Résultat :
wide: a widened from narrow: a
[modifier]Voir aussi
rétrécit un caractère large à un caractère sur un octet étroit, si possible 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. (fonction) | |
[ virtuel ]Original: virtual The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | convertit un ou plusieurs caractères de char à 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. (fonction membre virtuelle protégée de std::ctype ) |
C documentation for btowc |