Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-08-25 08:18:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-08-25 08:27:18 +0300
commitbe906f44c6bb51eb492ecb90dbc1e8e0bc01d1ec (patch)
tree063248784f46dba55c5173ddc28c08e1c3dce9e4 /source/blender/blenlib/tests
parent70f890b510562864e8a37d49afb4891bf083bf84 (diff)
BLI_string_utf8: simplify utf8 stepping logic
There were multiple utf8 functions which treated errors slightly differently. Split BLI_str_utf8_as_unicode_step into two functions. - BLI_str_utf8_as_unicode_step_or_error returns error value when decoding fails and doesn't step. - BLI_str_utf8_as_unicode_step always steps forward at least one returning the byte value without decoding (needed to display some latin1 file-paths). Font drawing uses BLI_str_utf8_as_unicode_step and no longer check for error values.
Diffstat (limited to 'source/blender/blenlib/tests')
0 files changed, 0 insertions, 0 deletions