summaryrefslogtreecommitdiffhomepage
path: root/docs/cstr_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-08-18 09:11:26 +0200
committerGitHub <[email protected]>2022-08-18 09:11:26 +0200
commite774adc245c74341ec5c4318de0dfd24a42b21e5 (patch)
treeab7b16872e2a2356cf3fc9d69a3323e994a8bed2 /docs/cstr_api.md
parentbd85ecdd0ba00c15a2fa093e0896367ac0d48514 (diff)
parentc5144785aaac11a30439064decabef62968b00a4 (diff)
downloadSTC-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/cstr_api.md')
-rw-r--r--docs/cstr_api.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/cstr_api.md b/docs/cstr_api.md
index d4e292cd..8c28a601 100644
--- a/docs/cstr_api.md
+++ b/docs/cstr_api.md
@@ -99,7 +99,7 @@ size_t cstr_u8_size_n(const cstr self, size_t nbytes); // utf8 si
size_t cstr_u8_to_pos(const cstr* self, size_t u8idx); // byte pos offset at utf8 codepoint index
const char* cstr_u8_at(const cstr* self, size_t u8idx); // char* position at utf8 codepoint index
csview cstr_u8_chr(const cstr* self, size_t u8idx); // get utf8 character as a csview
-void cstr_u8_replace(cstr* self, size_t pos, size_t u8len, csview repl); // replace u8len utf8 chars
+void cstr_u8_replace(cstr* self, size_t bytepos, size_t u8len, csview repl); // replace u8len utf8 chars
// iterate utf8 codepoints
cstr_iter cstr_begin(const cstr* self);