cpp/string/multibyte/mbstate t

The type mbstate_t is a trivial non-array type that can represent any of the conversion states that can occur in an implementation-defined set of supported multibyte character encoding rules. Zero-initialized value of represents the initial conversion state, although other values of  may exist that also represent the initial conversion state.

Possible implementation of is a struct type holding an array representing the incomplete multibyte character, an integer counter indicating the number of bytes in the array that have been processed, and a representation of the current shift state.

The following functions should not be called from multiple threads without synchronization with the argument of a null pointer due to possible data races: std, std, std, std, std, std, std.