Romain Vimont
|
61274a7cdb
|
Factorize integer argument parsing
Add util functions for integer parsing (with tests), and factorize
integer argument parsing to avoid code duplication.
|
6 years ago |
Romain Vimont
|
3259c60b22
|
Fix test compilation on mingw
Including SDL2/SDL.h redefines main to SDL_main by default.
|
6 years ago |
Yu-Chen Lin
|
5eeaed09ae
|
Add test_strquote
Signed-off-by: Yu-Chen Lin <npes87184@gmail.com>
|
6 years ago |
Romain Vimont
|
dfd0707a29
|
Move utilities to util/
|
6 years ago |
Romain Vimont
|
0a7fe7ad57
|
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.
|
7 years ago |
Romain Vimont
|
ff4430b2a3
|
Declare fun(void) functions with no parameters
This is not C++.
|
7 years ago |
Romain Vimont
|
536b31829a
|
Separate multi-words filenames by '_'
Rename foobar.ext to foo_bar.ext.
<https://github.com/Genymobile/scrcpy/pull/226#discussion_r209454865>
|
7 years ago |
Romain Vimont
|
f75c404a26
|
Add tests for strutil
Test our custom string handling functions.
|
8 years ago |