Skip to content

Commit

Permalink
FEAT: access to Decode_UTF8_Char core function from host's sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Aug 2, 2023
1 parent 65a33de commit 37971d0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/core/a-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,20 @@ RL_API REBSER* RL_Encode_UTF8_String(void *src, REBCNT len, REBFLG uni, REBFLG o
return Encode_UTF8_String(src, len, uni, opts);
}

RL_API REBCNT RL_Decode_UTF8_Char(const REBYTE *str, REBCNT *len)
/*
** Converts a single UTF8 code-point (to 32 bit).
**
** Returns:
** 32 bit character code
** Arguments:
** src - UTF8 encoded data
** len - number of source bytes consumed.
*/
{
return Decode_UTF8_Char(&str, len);
}

RL_API REBSER* RL_Decode_UTF_String(REBYTE *src, REBCNT len, REBINT utf, REBFLG ccr, REBFLG uni)
/*
** Decode the UTF8 encoded data into Rebol series.
Expand Down

0 comments on commit 37971d0

Please sign in to comment.