Namensräume
Varianten
Aktionen

mbrlen

Aus cppreference.com
< c‎ | string‎ | multibyte

 
 
 
Nullterminierten Multibyte Strings
Wide / Multibyte Konvertierungen
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.
mbsinit
Types
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
mbstate_t
 
Defined in header <wchar.h>
size_t mbrlen( const char* s, size_t n, mbstate_t* ps );
Bestimmt die Größe in Bytes, der Rest des Multibyte-Zeichen, dessen erstes Byte wird durch s hingewiesen, angesichts der aktuellen Konvertierungsstatus ps .
Original:
Determines the size, in bytes, of the remainder of the multibyte character whose first byte is pointed to by s, given the current conversion state ps.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Diese Funktion entspricht dem Aufruf mbrtowc(nullptr, s, n, ps?ps:&internal) für einige versteckte Objekt internal vom Typ mbstate_t, außer, dass der Ausdruck ps nur einmal ausgewertet wird .
Original:
This function is equivalent to the call mbrtowc(nullptr, s, n, ps?ps:&internal) for some hidden object internal of type mbstate_t, except that the expression ps is evaluated only once.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Inhaltsverzeichnis

[Bearbeiten] Parameter

s -
Zeiger auf ein Element einer Multibyte Zeichenkette
Original:
pointer to an element of a multibyte character string
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 Variable, die die Umwandlung Zustand
Original:
pointer to the variable holding the conversion state
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

0 wenn die nächste n oder weniger Bytes die Null-Zeichen abgeschlossen .
Original:
0 if the next n or fewer bytes complete the null character.
The 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 (zwischen 1 und n) ausfüllen, dass ein gültiges Multibyte-Zeichen
Original:
The number of bytes (between 1 and n) that complete a valid multibyte character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(size_t)-1 wenn die Kodierung Fehler auftritt
Original:
(size_t)-1 if encoding error occurs
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(size_t)-2 wenn die nächsten n bytes Teil eines möglicherweise gültiges Multibyte-Zeichen, die noch unvollständig ist nach Prüfung aller n Byte sind
Original:
(size_t)-2 if the next n bytes are part of a possibly valid multibyte character, which is still incomplete after examining all n bytes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Beispiel

[Bearbeiten] Siehe auch

wandelt die nächsten Multibyte Zeichen-Zeichen, gegebenen Zustand
Original:
converts the next multibyte character to wide character, given state
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Funktion) [edit]
gibt die Anzahl der Bytes in den nächsten Multibyte-Zeichens
Original:
returns the number of bytes in the next multibyte character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(Funktion) [edit]