diff options
Diffstat (limited to 'prism/encoding.c')
| -rw-r--r-- | prism/encoding.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/prism/encoding.c b/prism/encoding.c index 2210d71411..bdb9958e97 100644 --- a/prism/encoding.c +++ b/prism/encoding.c @@ -2277,7 +2277,10 @@ pm_utf_8_codepoint(const uint8_t *b, ptrdiff_t n, size_t *width) { return 0; } -static size_t +/** + * Return the size of the next character in the UTF-8 encoding. + */ +size_t pm_encoding_utf_8_char_width(const uint8_t *b, ptrdiff_t n) { size_t width; pm_utf_8_codepoint(b, n, &width); |
