Unicode processing functions with UTF-8 character encoding.
More...
Unicode processing functions with UTF-8 character encoding.
◆ GUI_STRING_UNICODE_Result_t
UNICODE processing result information.
Enumerator |
---|
UNICODE_OK | Indicates function successfully decode unicode sequence of 1-4 bytes
|
UNICODE_ERROR | Indicates function got an error with input data from 2nd to 4th byte in UTF-8 encoding
|
UNICODE_PROGRESS | Indicates function decoding is still in progress and it waits for new character
|
◆ gui_string_unicode_decode()
◆ gui_string_unicode_encode()
uint8_t gui_string_unicode_encode |
( |
const uint32_t |
c, |
|
|
GUI_Char * |
out |
|
) |
| |
Encodes input character to UNICODE sequence of 1-4 bytes.
- Parameters
-
[in] | c | Character to encode to UNICODE sequence |
[out] | out | Pointer to 4-bytes long array to store UNICODE information to |
- Return values
-
Number | of bytes required for character encoding |
- See also
- gui_string_unicode_init, gui_string_unicode_decode
◆ gui_string_unicode_init()