summaryrefslogtreecommitdiff
path: root/src/utf8.h
Commit message (Collapse)AuthorAgeFilesLines
* utf8: introduce git_utf8_char_lengthEdward Thomson2021-04-141-0/+20
| | | | | Introduce a function to determine the number of Unicode characters in a given UTF-8 string.
* utf8: refactor utf8 functionsEdward Thomson2021-04-141-0/+32
Move the utf8 functions into a proper namespace `git_utf8` instead of being in the namespaceless `git__` function group. Update them to have out-params first and use `char *` instead of `uint8_t *` to match our API treating strings as `char *` (even if they truly contain `uchar`s inside).