名前空間
変種
操作

mbrlen

提供: cppreference.com
< c‎ | string‎ | multibyte

Defined in header <wchar.h>
size_t mbrlen( const char* s, size_t n, mbstate_t* ps );
最初のバイトは現在の変換状態s与え、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.
表現mbrtowc(nullptr, s, n, ps?ps:&internal)が一度だけ評価されることを除き、この関数は、型internalのいくつかの隠されたオブジェクトのmbstate_tに対するコールpsと同等です.
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.

目次

[編集] パラメータ

s -
マルチバイト文字列の要素へのポインタ
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 -
調べることができますsのバイト数を制限しません
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 -
変換状態を保持する変数へのポインタ
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.

[編集] 値を返します

0次回n以下のバイトがヌル文字を完了すれば.
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.
有効なマルチバイト文字を完了したバイト数(1n間)
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符号化エラーが発生した場合
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バイトn場合は、すべてのnバイトを調べた後、まだ不完全である可能性が有効なマルチバイト文字の一部である
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.

[編集]

[編集] も参照してください

ワイド文字、所定の状態に次のマルチバイト文字に変換します
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.

(関数) [edit]
次のマルチバイト文字のバイト数を返します
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.

(関数) [edit]