mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-09-04 08:35:44 +00:00
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:
parent
3aa5426cad
commit
0a7fe7ad57
6 changed files with 121 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue