MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Legato Interface > h) String Functions > leDecodeCodePoint Function
MPLAB® Harmony Graphics Suite
leDecodeCodePoint Function

Given an encoded codepoint (ASCII, UTF-8, or UTF-16) returns the actual codepoint

C
LIB_EXPORT leResult leDecodeCodePoint(
    uint32_t encoding, 
    uint8_t* data, 
    uint32_t max, 
    uint32_t* codePoint, 
    uint32_t* offset
);
Parameters
Parameters 
Description 
uint32_t encoding 
the encoding of the value 
uint8_t* data 
the data to decode 
uint32_t max 
the size of the data buffer 
uint32_t* codePoint 
will contain the decoded code point 
uint32_t* offset 
will contain the offset in the buffer after the decode point 
Returns

leResult - the result of the operation

MPLAB® Harmony Graphics Suite