- Deprecated DString.append_chars, use DString.append_string

- Deprecated `DString.append_string` for DStrings, use `DString.append_dstring` instead.
- Added `DString.append_char_buffer`.
This commit is contained in:
Christoffer Lerno
2025-12-16 20:17:54 +01:00
parent 996f8a6a4d
commit 415c9639e7
4 changed files with 38 additions and 13 deletions

View File

@@ -96,7 +96,7 @@ fn void test_append()
assert(s == "éèà", "got '%s'; want 'éèà'", s);
str.clear();
str.append_chars("foo");
str.append_string("foo");
s = str.str_view();
assert(s == "foo", "got '%s'; want 'foo'", s);
str.clear();
@@ -113,7 +113,7 @@ fn void test_append()
assert(s == "xxxyyy", "got '%s'; want 'xxxyyy'", s);
str3.clear();
str3.append_string(str2);
str3.append_dstring(str2);
s = str3.str_view();
assert(s == "yyy", "got '%s'; want 'yyy'", s);
}