I NEED TO REDO THE LEX FUNCTION LETZGO :(((((((
This commit is contained in:
parent
c7fe19a7d5
commit
61fd72480e
20 changed files with 5173 additions and 12 deletions
|
|
@ -26,20 +26,18 @@ static inline uint32_t ts_decode_ascii(const uint8_t *string, uint32_t length, i
|
|||
|
||||
static inline uint32_t ts_decode_utf8(const uint8_t *string, uint32_t length, int32_t *code_point)
|
||||
{
|
||||
return (ts_decode_ascii(string, length, code_point));
|
||||
/*
|
||||
return (ts_decode_ascii(string, length, code_point));
|
||||
/*
|
||||
uint32_t i = 0;
|
||||
U8_NEXT(string, i, length, *code_point);
|
||||
printf("[UTF8]read %i bytes\n", i);
|
||||
return i;
|
||||
*/
|
||||
*/
|
||||
}
|
||||
|
||||
static inline uint32_t ts_decode_utf16(const uint8_t *string, uint32_t length, int32_t *code_point)
|
||||
{
|
||||
uint32_t i = 0;
|
||||
U16_NEXT(((uint16_t *)string), i, length, *code_point);
|
||||
printf("[UTF16]read %i bytes\n", i);
|
||||
return i * 2;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue