Add helpers to truncate UTF-8 at code points

This will help to avoid truncating a UTF-8 string in the middle of a
code point, producing an invalid UTF-8 result.
This commit is contained in:
Romain Vimont 2019-05-30 19:01:08 +02:00
commit 0a7fe7ad57
6 changed files with 121 additions and 1 deletions

View file

@ -159,7 +159,8 @@ tests = [
]],
['test_control_event_serialize', [
'tests/test_control_event_serialize.c',
'src/control_event.c'
'src/control_event.c',
'src/str_util.c'
]],
['test_strutil', [
'tests/test_strutil.c',