From 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 14 Aug 2025 22:58:58 -0500 Subject: removing all downloaded devdocs files --- devdocs/c/string%2Fmultibyte%2Fmbrtoc8.html | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 devdocs/c/string%2Fmultibyte%2Fmbrtoc8.html (limited to 'devdocs/c/string%2Fmultibyte%2Fmbrtoc8.html') diff --git a/devdocs/c/string%2Fmultibyte%2Fmbrtoc8.html b/devdocs/c/string%2Fmultibyte%2Fmbrtoc8.html deleted file mode 100644 index 826b97a4..00000000 --- a/devdocs/c/string%2Fmultibyte%2Fmbrtoc8.html +++ /dev/null @@ -1,29 +0,0 @@ -

mbrtoc8

Defined in header <uchar.h>
size_t mbrtoc8( char8_t * restrict pc8, const char * restrict s,
-                size_t n, mbstate_t * restrict ps );
-
(since C23)

Converts a narrow multibyte character to UTF-8 encoding.

-

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 UTF-8 and stores the first UTF-8 code unit in *pc8 (if pc8 is not null).

-

If UTF-8 encoding of the multibyte character in *s consists of more than one UTF-8 code unit, then after the first call to this function, *ps is updated in such a way that the next call to mbrtoc8 will write out the additional UTF-8 code units, without considering *s.

-

If s is a null pointer, the values of n and pc8 are ignored and the call is equivalent to mbrtoc8(nullptr, "", 1, ps).

-

If UTF-8 code unit produced is u8'\0', the conversion state *ps represents the initial shift state.

-

The multibyte encoding used by this function is specified by the currently active C locale.

-

Parameters

- - - - -
pc8 - pointer to the location where the resulting UTF-8 code units will be written
s - pointer to the multibyte character string used as input
n - limit on the number of bytes in s that can be examined
ps - pointer to the conversion state object used when interpreting the multibyte string

Return value

The first of the following that applies:

-

Example

See also

- -
-
(C23)
converts UTF-8 string to narrow multibyte encoding
(function)
C++ documentation for mbrtoc8
-

- © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
- https://en.cppreference.com/w/c/string/multibyte/mbrtoc8 -

-
-- cgit v1.2.3