diff options
| author | Tyge Løvset <[email protected]> | 2022-08-15 16:54:56 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-08-15 16:54:56 +0200 |
| commit | bf3c50da1a346b56b6846c0f7b9e7a222f602c2f (patch) | |
| tree | 3284252adec60cce3bd4d7c5876fe2d8a3d9506e /docs/csview_api.md | |
| parent | e9e405dbe1ec3eb51ce2e3398b3c24583293892e (diff) | |
| download | STC-modified-bf3c50da1a346b56b6846c0f7b9e7a222f602c2f.tar.gz STC-modified-bf3c50da1a346b56b6846c0f7b9e7a222f602c2f.zip | |
More iterator fixes. Make sure cvec/cdeq find_in() return end() iterator if item not found. Small cstr API change to u8_replace*.
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 d6bb4baf..128a1c9d 100644 --- a/docs/csview_api.md +++ b/docs/csview_api.md @@ -146,7 +146,7 @@ int main() { c_auto (cstr, s1) { s1 = cstr_new("hell😀 w😀rld"); - cstr_u8_replace_at(&s1, 7, 1, c_sv("ø")); + cstr_u8_replace(&s1, cstr_find(&s1, "😀rld"), 1, c_sv("ø")); printf("%s\n", cstr_str(&s1)); c_foreach (i, cstr, s1) |
