summaryrefslogtreecommitdiff
path: root/devdocs/c/string%2Fmultibyte%2Fmbstate_t.html
diff options
context:
space:
mode:
Diffstat (limited to 'devdocs/c/string%2Fmultibyte%2Fmbstate_t.html')
-rw-r--r--devdocs/c/string%2Fmultibyte%2Fmbstate_t.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/devdocs/c/string%2Fmultibyte%2Fmbstate_t.html b/devdocs/c/string%2Fmultibyte%2Fmbstate_t.html
new file mode 100644
index 00000000..bed230ed
--- /dev/null
+++ b/devdocs/c/string%2Fmultibyte%2Fmbstate_t.html
@@ -0,0 +1,18 @@
+ <h1 id="firstHeading" class="firstHeading">mbstate_t</h1> <table class="t-dcl-begin"> <tr class="t-dsc-header"> <th> Defined in header <code>&lt;uchar.h&gt;</code> </th> <th> </th> <th><span class="t-mark-rev t-since-c11">(since C11)</span></th> </tr> <tr class="t-dsc-header"> <th> Defined in header <code>&lt;wchar.h&gt;</code> </th> <th> </th> <th> </th> </tr> <tr class="t-dcl t-since-c95"> <td> <pre data-language="c">struct mbstate_t;</pre>
+</td> <td class="t-dcl-nopad"> </td> <td> <span class="t-mark-rev t-since-c95">(since C95)</span> </td> </tr> </table> <p>The type <code>mbstate_t</code> 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 <code>mbstate_t</code> represents the initial conversion state, although other values of <code>mbstate_t</code> may exist that also represent the initial conversion state.</p>
+<p>Possible implementation of <code>mbstate_t</code> 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.</p>
+<p>The following functions should not be called from multiple threads without synchronization with the <code>mbstate_t*</code> argument of a null pointer due to possible data races: <code><a href="mbrlen" title="c/string/multibyte/mbrlen">mbrlen</a></code>, <code><a href="mbrtowc" title="c/string/multibyte/mbrtowc">mbrtowc</a></code>, <code><a href="mbsrtowcs" title="c/string/multibyte/mbsrtowcs">mbsrtowcs</a></code>, <code><a href="mbtowc" title="c/string/multibyte/mbtowc">mbtowc</a></code>, <code><a href="wcrtomb" title="c/string/multibyte/wcrtomb">wcrtomb</a></code>, <code><a href="wcsrtombs" title="c/string/multibyte/wcsrtombs">wcsrtombs</a></code>, <code><a href="wctomb" title="c/string/multibyte/wctomb">wctomb</a></code>.</p>
+<h3 id="References"> References</h3> <ul>
+<li> C11 standard (ISO/IEC 9899:2011): </li>
+<ul><li> 7.29.1/2 Introduction (p: 402) </li></ul>
+<li> C99 standard (ISO/IEC 9899:1999): </li>
+<ul><li> 7.24.1/2 Introduction (p: 348) </li></ul>
+</ul> <h3 id="See_also"> See also</h3> <table class="t-dsc-begin"> <tr class="t-dsc"> <td> <div><a href="mbsinit" title="c/string/multibyte/mbsinit"> <span class="t-lines"><span>mbsinit</span></span></a></div>
+<div><span class="t-lines"><span><span class="t-mark-rev t-since-c95">(C95)</span></span></span></div> </td> <td> checks if the mbstate_t object represents initial shift state <br> <span class="t-mark">(function)</span> </td>
+</tr> <tr class="t-dsc"> <td colspan="2"> <span><a href="https://en.cppreference.com/w/cpp/string/multibyte/mbstate_t" title="cpp/string/multibyte/mbstate t">C++ documentation</a></span> for <code>mbstate_t</code> </td>
+</tr> </table> <div class="_attribution">
+ <p class="_attribution-p">
+ &copy; cppreference.com<br>Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.<br>
+ <a href="https://en.cppreference.com/w/c/string/multibyte/mbstate_t" class="_attribution-link">https://en.cppreference.com/w/c/string/multibyte/mbstate_t</a>
+ </p>
+</div>