From b28d3fa7c3b9233ca485014744bf84e6c4f5a1d3 Mon Sep 17 00:00:00 2001 From: Tyge Lovset Date: Mon, 30 May 2022 10:17:07 +0200 Subject: Large refactoring on strings / utf8 and some file structure. --- docs/csview_api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') 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 -- cgit v1.2.3