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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user