#include "compiler.h"
#include "unicode.h"
Go to the source code of this file.
Functions |
uint8_t | unicode_header_scan (uint8_t *header) |
| Detect the text format via a header (3 bytes)
|
uint8_t | unicode_header_get (uint8_t *header, uint8_t txt_format) |
| Return the header corresponding at text format identifier.
|
uint8_t | utf8_to_unicode (uint8_t *utf8, uint16_t *unicode) |
| Conversion UTF-8 to unicode.
|
Function Documentation
uint8_t unicode_header_get |
( |
uint8_t * |
header, |
|
|
uint8_t |
txt_format |
|
) |
| |
- Parameters:
-
txt_format | UNI_TYPE_UTF8, UNI_TYPE_UTF16BE, UNI_TYPE_UTF16LE, UNI_TYPE_ASCII |
header | header to fill (array of 3B) |
- Returns:
- the size of header
Definition at line 91 of file unicode.c.
uint8_t unicode_header_scan |
( |
uint8_t * |
header | ) |
|
- Parameters:
-
header | header to analyse (array of 3B) |
- Returns:
- text format identifier
Definition at line 62 of file unicode.c.
uint8_t utf8_to_unicode |
( |
uint8_t * |
utf8, |
|
|
uint16_t * |
unicode |
|
) |
| |
- Parameters:
-
utf8 | array with utf8 codes (array of 3B max) |
unicode | pointer used to store the character unicode decoded |
- Returns:
- the size of UTF8 decoded
Definition at line 121 of file unicode.c.