diff options
| author | Tyge Lovset <[email protected]> | 2022-05-30 10:17:07 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2022-05-30 10:17:07 +0200 |
| commit | b28d3fa7c3b9233ca485014744bf84e6c4f5a1d3 (patch) | |
| tree | 8c97999b1ede5e0cf45c94b2035e94b0734dff1c /docs/csview_api.md | |
| parent | 831dc0843aeedcb45138a6ed576ea03f2dcd58f8 (diff) | |
| download | STC-modified-b28d3fa7c3b9233ca485014744bf84e6c4f5a1d3.tar.gz STC-modified-b28d3fa7c3b9233ca485014744bf84e6c4f5a1d3.zip | |
Large refactoring on strings / utf8 and some file structure.
Diffstat (limited to 'docs/csview_api.md')
| -rw-r--r-- | docs/csview_api.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/csview_api.md b/docs/csview_api.md index 4c92a1e5..55ac017e 100644 --- a/docs/csview_api.md +++ b/docs/csview_api.md @@ -68,7 +68,7 @@ size_t utf8_size_n(const char *s, size_t n); // number of const char* utf8_at(const char *s, size_t index); // from UTF8 index to char* position size_t utf8_pos(const char* s, size_t index); // from UTF8 index to byte index position unsigned utf8_codep_size(const char* s); // 0-4 (0 if s[0] is illegal utf8) -void utf8_peek(const char *s, utf8_decode_t* d); // next codepoint as uint32_t +void utf8_peek(utf8_decode_t* d, const char *s); // next codepoint as uint32_t uint32_t utf8_decode(utf8_decode_t *d, uint8_t byte, // d holds state, size and unicode point const uint32_t byte); // decode next utf8 codepoint. unsigned utf8_encode(char *out, uint32_t cp); // encode unicode cp into out |
