std::mbrtoc32
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 mbrtoc32(char32_t* pc32, constchar* s, | (seit C++11) | |
Konvertiert einen schmalen Multibyte-Zeichen des 32-Bit-Zeichen-Darstellung (in der Regel, UTF-32) .
Original:
Converts a narrow multibyte character to its 32-bit character representation (typically, 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.
Wenn
s
nicht ein NULL-Zeiger, prüft in den meisten n
Bytes des Multibyte-String, beginnend mit dem Byte, auf das s
, um die Anzahl von Bytes um den nächsten Multibyte-Zeichen (einschließlich etwaiger Schichtfolgen) vervollständigen bestimmen. Wenn die Funktion bestimmt, dass die nächste Multibyte-Zeichen in s
vollständig und gültig ist, wandelt sie in die entsprechende 32-Bit-Zeichen und speichert sie in *pc32 (wenn pc32
nicht null ist) .Original:
If
s
is not a null pointer, inspects at most n
bytes of the multibyte character string, beginning with the byte pointed to by s
to determine the number of bytes necessary to complete the next multibyte character (including any shift sequences). If the function determines that the next multibyte character in s
is complete and valid, converts it to the corresponding 32-bit character and stores it in *pc32 (if pc32
is not null).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 die Multibyte-Zeichen in
*s
entspricht einer multi-char32_t Sequenz (nicht möglich bei UTF-32), dann nach dem ersten Aufruf dieser Funktion wird *ps
in einer solchen Weise, dass die nächsten Anrufe mbrtoc32
schreibt die zusätzliche char32_t aktualisiert , ohne Berücksichtigung *s
.Original:
If the multibyte character in
*s
corresponds to a multi-char32_t sequence (not possible with UTF-32), then after the first call to this function, *ps
is updated in such a way that the next calls to mbrtoc32
will write out the additional char32_t, without considering *s
.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, die Werte der n
und pc32
werden ignoriert und der Anruf ist äquivalent zu std::mbrtoc32(NULL, "", 1, ps) .Original:
If
s
is a null pointer, the values of n
and pc32
are ignored and the call is equivalent to std::mbrtoc32(NULL, "", 1, ps).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 die weite Zeichen produziert, ist das Null-Zeichen stellt die Umwandlung Zustand *ps die erste Schaltzustand .
Original:
If the wide character produced is the null character, the conversion state *ps represents 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, ist die 32-Bit-Codierung von dieser Funktion verwendet UTF-32, ansonsten ist die Implementierung definiert .
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.
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
pc32 | - | Zeiger auf die Stelle, wo die resultierende 32-Bit-Zeichen geschrieben werden Original: pointer to the location where the resulting 32-bit character will be written The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
s | - | Zeiger auf die Multibyte Zeichenkette als Eingabe verwendet Original: pointer to the multibyte character string used as input The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
n | - | Grenze für die Anzahl von Bytes in s, die untersucht werden können Original: limit on the number of bytes in s that can be examined 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
Die erste, die der folgenden gilt:
Original:
The first of the following that applies:
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.
- 0 wenn der Charakter von
s
umgewandelt (und in *pc32 wenn nicht null) war die Null-ZeichenOriginal:0 if the character converted froms
(and stored in *pc32 if non-null) was the null characterThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - die Anzahl der Bytes [1...n] des Multibyte erfolgreich aus
s
umgewandeltOriginal:the number of bytes [1...n] of the multibyte character successfully converted froms
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - -3 wenn die nächste char32_t aus einem Multi-char32_t Charakter Jetzt *pc32 geschrieben worden. Keine Bytes aus dem Eingangssignal in diesem Fall verarbeitet .Original:-3 if the next char32_t from a multi-char32_t character has now been written to *pc32. No bytes are processed from the input in this case.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - -2 wenn die nächsten
n
bytes bilden eine unvollständige, aber bisher gültige Multibyte-Zeichens. Nichts wird dem *pc32 geschrieben .Original:-2 if the nextn
bytes constitute an incomplete, but so far valid, multibyte character. Nothing is written to *pc32.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - -1 wenn die Kodierung Fehler auftritt. Nichts zu
*pc32
geschrieben wird, wird der Wert EILSEQ in errno gespeichert und der Wert, wenn *ps ist unbegrenzt .Original:-1 if encoding error occurs. Nothing is written to*pc32
, the value EILSEQ is stored in errno and the value if *ps is unspecified.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten]Siehe auch
(C++11) | konvertiert einen 32-Bit breiten Zeichen Multibyte-String einzugrenzen Original: convert a 32-bit wide character to 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 externT um Internt wie beim Lesen aus Datei Original: converts a string from externT to internT, such as when reading from 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 mbrtoc32 |