diff options
| author | Tyge Løvset <[email protected]> | 2022-06-10 12:02:12 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-06-10 12:02:12 +0200 |
| commit | d564436422d842a52a00f8b3ef0fadec20625a0d (patch) | |
| tree | 4c04f8f7764f54ad5d166b1bc747382b628f0288 /include/stc/utf8.h | |
| parent | 6fc13dad84b2b315ea33af180d907e63a632accd (diff) | |
| download | STC-modified-d564436422d842a52a00f8b3ef0fadec20625a0d.tar.gz STC-modified-d564436422d842a52a00f8b3ef0fadec20625a0d.zip | |
removed cstr_length() and csview_length() -> use .._size().
Diffstat (limited to 'include/stc/utf8.h')
| -rw-r--r-- | include/stc/utf8.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/utf8.h b/include/stc/utf8.h index 31ea3aa9..fb06de62 100644 --- a/include/stc/utf8.h +++ b/include/stc/utf8.h @@ -41,7 +41,7 @@ bool utf8_valid_n(const char* s, size_t nbytes); int utf8_icmp_n(size_t u8max, const char* s1, size_t n1, const char* s2, size_t n2); unsigned utf8_encode(char *out, uint32_t c); -uint32_t utf8_peek(const char *s, int pos); +uint32_t utf8_peek(const char *s, int u8pos); /* decode next utf8 codepoint. https://bjoern.hoehrmann.de/utf-8/decoder/dfa */ typedef struct { uint32_t state, codep; } utf8_decode_t; |
