diff options
| author | Tyge Løvset <[email protected]> | 2022-08-18 09:11:26 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-08-18 09:11:26 +0200 |
| commit | e774adc245c74341ec5c4318de0dfd24a42b21e5 (patch) | |
| tree | ab7b16872e2a2356cf3fc9d69a3323e994a8bed2 /docs/csview_api.md | |
| parent | bd85ecdd0ba00c15a2fa093e0896367ac0d48514 (diff) | |
| parent | c5144785aaac11a30439064decabef62968b00a4 (diff) | |
| download | STC-modified-e774adc245c74341ec5c4318de0dfd24a42b21e5.tar.gz STC-modified-e774adc245c74341ec5c4318de0dfd24a42b21e5.zip | |
Merge pull request #35 from tylov/iter_exp_dont_use
Some API updates cstr, csview with utf8. Added front()/back() to cstack.
Diffstat (limited to 'docs/csview_api.md')
| -rw-r--r-- | docs/csview_api.md | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/csview_api.md b/docs/csview_api.md index 128a1c9d..65e9a066 100644 --- a/docs/csview_api.md +++ b/docs/csview_api.md @@ -49,8 +49,7 @@ csview csview_token(csview sv, csview sep, size_t* start); // *start #### UTF8 methods ```c size_t csview_u8_size(csview sv); -csview csview_u8_substr(csview sv, size_t u8pos, size_t u8len); -csview csview_u8_slice(csview sv, size_t u8p1, size_t u8p2); +csview csview_u8_substr(csview sv, size_t bytepos, size_t u8len); bool csview_valid_utf8(csview sv); // requires linking with src/utf8code.c csview_iter csview_begin(const csview* self); @@ -75,11 +74,10 @@ uint32_t utf8_peek(const char* s, int pos); // codepoint ```c csview cstr_substr(const cstr* self, size_t pos, size_t n); csview cstr_substr_ex(const cstr* s, intptr_t pos, size_t n); // negative pos count from end -csview cstr_u8_substr(const cstr* self, size_t u8pos, size_t u8len); +csview cstr_u8_substr(const cstr* self, size_t bytepos, size_t u8len); csview cstr_slice(const cstr* self, size_t p1, size_t p2); csview cstr_slice_ex(const cstr* s, intptr_t p, intptr_t q); // negative p or q count from end -csview cstr_u8_slice(const cstr* self, size_t u8p1, size_t u8p2); ``` #### Helper methods |
