c32rtomb
Материал из cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Заголовочный файл <uchar.h>
|
||
| (начиная с C11) | ||
Преобразует 32-битной характер его узкое представление многобайтовых.
Original:
Converts a 32-bit wide character to its narrow multibyte representation.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Если
s не является нулевым указателем, то функция определяет количество байт, необходимых для хранения многобайтовых представление характер c32 (включая любые изменения последовательности), и сохраняет многобайтовых представление символа в массив, первый элемент, на который указывает s. В большинстве MB_CUR_MAX байт может быть записан с помощью этой функции.Original:
If
s is not a null pointer, the function determines the number of bytes necessary to store the multibyte character representation of c32 (including any shift sequences), and stores the multibyte character representation in the character array whose first element is pointed to by s. At most MB_CUR_MAX bytes can be written by this function.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Если
s является нулевым указателем, то вызов эквивалентно c32rtomb(buf, U'\0', ps) для некоторых внутренних buf буфер.Original:
If
s is a null pointer, the call is equivalent to c32rtomb(buf, U'\0', ps) for some internal buffer buf.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Если
c32 является нулевой U'\0' широкий характер, нулевой байт хранится, которому предшествует любой сдвиг последовательности, необходимые для восстановления исходного состояния сдвига и параметров преобразования состояния *ps обновляется представляют начальное состояние сдвига.Original:
If
c32 is the null wide character U'\0', a null byte is stored, preceded by any shift sequence necessary to restore the initial shift state and the conversion state parameter *ps is updated to represent the initial shift state.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Если __STDC_UTF_32__ макрокоманда определена, 32-разрядная кодировка, в которой эта функция является UTF-32, в противном случае она определяется реализацией. В любом случае, кодировок используется эта функция задается активного в данный момент языка C.
Original:
If the macro __STDC_UTF_32__ is defined, the 32-bit encoding used by this function is UTF-32, otherwise it is implementation-defined. In any case, the multibyte encoding used by this function is specified by the currently active C locale.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[править] Параметры
| s | - | Указатель на узкой массив символов, где многобайтовых символов будут сохранены
Original: pointer to narrow character array where the multibyte character will be stored The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| c32 | - | 32-разрядный символ преобразования
Original: the 32-bit character to convert 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 conversion state object used when interpreting the multibyte string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[править] Возвращаемое значение
В случае успеха возвращает количество байтов (включая любое изменение последовательности) записывается в массив символов, первый элемент, на который указывает
s. Это значение может быть 0, например, При обработке первого char32_t в мульти-char32_t-последовательность символов (не входит в UTF-32).Original:
On success, returns the number of bytes (including any shift sequences) written to the character array whose first element is pointed to by
s. This value may be 0, e.g. when processing the first char32_t in multi-char32_t-character sequence (does not occur in UTF-32).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
В случае неудачи (если c32 не является допустимым 32-разрядных символов), возвращается -1, магазины EILSEQ в errno, и оставляет *ps в неопределенное состояние.
Original:
On failure (if c32 is not a valid 32-bit character), returns -1, stores EILSEQ in errno, and leaves *ps in unspecified state.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[править] См. также
| (C11) |
генерации следующего 32-битный символ из узких строку многобайтовых Original: generate the next 32-bit wide character from a narrow multibyte string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (функция) |
| C++ документация для c32rtomb
| |