touchgfx::Unicode::toUTF8() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

touchgfx::Unicode::toUTF8() method

@fn static uint16_t Unicode::toUTF8(const UnicodeChar *unicode, uint8_t* utf8, uint16_t maxbytes); Converts a string from unicode to utf8. Converts a string from unicode to utf8. The conversion stops if there is no more room in the destination or if the terminating zero character has been converted. U+10000 through U+10FFFF are skipped.

Syntax

static uint16_t toUTF8(const UnicodeChar* unicode,     uint8_t* utf8,     uint16_t maxbytes);

Arguments

unicode

The unicode string.

utf8

maxbytes

The maximum number of bytes that the utf8 array can hold.

Return value

The number of characters successfully converted from unicode to utf8 including the terminating zero.

References

LocationText
Unicode.hpp:575
static uint16_t toUTF8(const UnicodeChar* unicode, uint8_t* utf8, uint16_t maxbytes);

Type Use

Type of touchgfx::Unicode::toUTF8()
touchgfx::Unicode::toUTF8()
uint16_t
all items filtered out