Skip to content

Commit

Permalink
Added support for 6-byte UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Jul 2, 2023
1 parent f8df80c commit 6de9de5
Show file tree
Hide file tree
Showing 5 changed files with 634 additions and 73 deletions.
13 changes: 13 additions & 0 deletions include/libuna.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ int libuna_unicode_character_size_to_utf8(
libuna_error_t **error );

/* Copies a Unicode character from an UTF-8 string
* This function supports upto 4 byte UTF-8 characters
* Returns 1 if successful or -1 on error
*/
LIBUNA_EXTERN \
Expand All @@ -188,6 +189,18 @@ int libuna_unicode_character_copy_from_utf8(
size_t *utf8_string_index,
libuna_error_t **error );

/* Copies a Unicode character from an UTF-8 string
* This function supports upto 6 byte UTF-8 characters
* Returns 1 if successful or -1 on error
*/
LIBUNA_EXTERN \
int libuna_unicode_character_copy_from_utf8_6byte(
libuna_unicode_character_t *unicode_character,
const libuna_utf8_character_t *utf8_string,
size_t utf8_string_size,
size_t *utf8_string_index,
libuna_error_t **error );

/* Copies a Unicode character into a UTF-8 string
* Returns 1 if successful or -1 on error
*/
Expand Down
Loading

0 comments on commit 6de9de5

Please sign in to comment.