diff options
| author | Tyge Løvset <[email protected]> | 2022-06-10 11:46:13 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-06-10 11:46:13 +0200 |
| commit | 6fc13dad84b2b315ea33af180d907e63a632accd (patch) | |
| tree | fc9bab464437759dab2fd0edfe4ad3d0eeb6540d /docs/cstr_api.md | |
| parent | 8883fc8108428878d3d6291ba8981cf6df72499c (diff) | |
| download | STC-modified-6fc13dad84b2b315ea33af180d907e63a632accd.tar.gz STC-modified-6fc13dad84b2b315ea33af180d907e63a632accd.zip | |
Changed a few cstr utf8 function names.
Diffstat (limited to 'docs/cstr_api.md')
| -rw-r--r-- | docs/cstr_api.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/cstr_api.md b/docs/cstr_api.md index efbb0c5e..57c8c6e0 100644 --- a/docs/cstr_api.md +++ b/docs/cstr_api.md @@ -87,9 +87,9 @@ bool cstr_getdelim(cstr *self, int delim, FILE *stream); // does no ```c size_t cstr_u8size(cstr s); // number of utf8 codepoints size_t cstr_u8size_n(cstr s, size_t nbytes); // utf8 size within n bytes -size_t cstr_bytepos(cstr s, size_t u8idx); // byte pos offset at utf8 index -const char* cstr_at(const cstr* self, size_t u8idx); // char* position at utf8 index -csview cstr_chr(const cstr* self, size_t u8idx); // utf8 character at utf8 pos as csview +size_t cstr_pos_u8(cstr s, size_t u8idx); // byte pos offset at utf8 index +const char* cstr_at_u8(const cstr* self, size_t u8idx); // char* position at utf8 index +csview cstr_chr_u8(const cstr* self, size_t u8idx); // utf8 character at utf8 pos as csview // iterate utf8 codepoints cstr_iter cstr_begin(const cstr* self); |
