Add function string_replace_at
(Compatible with C++ interface)
This commit is contained in:
1 parent
750de41984
commit
7165740af3
2 files changed
+19
No files matched your search
@@ -314,6 +314,10 @@ int main(void)
|
||||
string_reserve (s1, 0);
|
||||
assert (string_capacity(s1) == 0);
|
||||
|
||||
string_set_str(s1, "HELLO XXX!");
|
||||
string_replace_at(s1, 6, 3, "World");
|
||||
assert(string_equal_str_p(s1, "HELLO World!"));
|
||||
|
||||
string_clear (s1);
|
||||
string_clear (s2);
|
||||
|
||||
|
||||
Reference in new issue
Block a user