std::c32rtomb
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 <cuchar> | ||
std::size_t c32rtomb(char* s, char32_t c32, std::mbstate_t* ps ); | (seit C++11) | |
Konvertiert eine 32-Bit-Zeichen seiner schmalen Multibyte-Darstellung .
Original:
Converts a 32-bit wide character to its narrow multibyte representation.
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.
Wenn
s
nicht ein NULL-Zeiger, bestimmt die Funktion die Anzahl der Bytes notwendig, die Multibyte-Zeichen Darstellung c32
(einschließlich etwaiger Schichtfolgen) zu speichern, und speichert die Multibyte-Zeichen Darstellung in der Zeichen-Array, dessen erstes Element wird durch s
hingewiesen. An den meisten MB_CUR_MAX bytes kann mit dieser Funktion geschrieben werden .Original:
If
s
is not a null pointer, the function determines the number of bytes necessary to store the multibyte character representation of c32
(including any shift sequences), and stores the multibyte character representation in the character array whose first element is pointed to by s
. At most MB_CUR_MAX bytes can be written by this function.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.
Wenn
s
ein NULL-Zeiger ist, ist der Anruf entspricht std::c32rtomb(buf, U'\0', ps) für einige interne Puffer buf
.Original:
If
s
is a null pointer, the call is equivalent to std::c32rtomb(buf, U'\0', ps) for some internal buffer buf
.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.
Wenn c32 ist die null-Zeichen U'\0', wird ein Null-Byte gespeichert, vorangestellt jedem Schaltvorgang notwendig, um die anfängliche Verschiebung Staat und die Umwandlung Zustandsparameter *ps wird aktualisiert, um den ursprünglichen Schaltzustand stellen wiederherzustellen .
Original:
If c32 is the null wide character U'\0', a null byte is stored, preceded by any shift sequence necessary to restore the initial shift state and the conversion state parameter *ps is updated to represent the initial shift state.
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.
Wenn das Makro __STDC_UTF_32__ definiert ist, die 32-Bit-Codierung von dieser Funktion verwendet UTF-32 ist, sonst ist die Implementierung definiert. In jedem Fall wird der Multibyte-Codierung durch diese Funktion verwendet von dem derzeit aktiven Sprachumgebung C angegeben .
Original:
If the macro __STDC_UTF_32__ is defined, the 32-bit encoding used by this function is UTF-32, otherwise it is implementation-defined. In any case, the multibyte encoding used by this function is specified by the currently active C locale.
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]Parameter
s | - | Zeiger auf schmalen Zeichen-Array, wo die Multibyte-Zeichen gespeichert werden Original: pointer to narrow character array where the multibyte character will be stored The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
c32 | - | die 32-Bit-Zeichen zu konvertieren Original: the 32-bit character to convert The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
ps | - | Zeiger auf die Umwandlung state-Objekt verwendet werden, wenn der Interpretation der Multibyte-String Original: pointer to the conversion state object used when interpreting the multibyte string 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
Bei Erfolg gibt die Anzahl der Bytes (einschließlich etwaiger Schichtfolgen) geschrieben, um die Zeichen-Array, dessen erstes Element wird durch
s
hingewiesen. Dieser Wert kann 0, z. B. werden Bei der Verarbeitung des ersten char32_t in multi-char32_t-Zeichenfolge (nicht in UTF-32 auftreten) .Original:
On success, returns the number of bytes (including any shift sequences) written to the character array whose first element is pointed to by
s
. This value may be 0, e.g. when processing the first char32_t in multi-char32_t-character sequence (does not occur in UTF-32).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.
Bei einem Fehler (wenn c32 ist keine gültige 32-Bit-Zeichen), kehrt -1, speichert EILSEQ in errno und verlässt *ps in unbestimmten Zustand .
Original:
On failure (if c32 is not a valid 32-bit character), returns -1, stores EILSEQ in errno, and leaves *ps in unspecified state.
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]Siehe auch
(C++11) | erzeugen die nächsten 32-Bit-Zeichen aus einem engen Multibyte-String Original: generate the next 32-bit wide character from a narrow multibyte string 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 eine Zeichenkette aus Internt zu externT, wie beim Schreiben in eine Datei Original: converts a string from internT to externT, such as when writing to file 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::codecvt ) |
C documentation for c32rtomb |