ds: string: add verbs to function names

This commit is contained in:
2026-04-20 22:03:11 +01:00
parent c39f50a0ee
commit 321622ac16
6 changed files with 133 additions and 51 deletions
+3 -3
View File
@@ -323,11 +323,11 @@ static void array_to_string(const fx_object *obj, fx_stream *out)
struct fx_array_p *array = fx_object_get_private(obj, FX_TYPE_ARRAY);
if (!array->ar_len) {
fx_stream_write_string(out, "[]", NULL);
fx_stream_write_cstr(out, "[]", NULL);
return;
}
fx_stream_write_string(out, "[\n", NULL);
fx_stream_write_cstr(out, "[\n", NULL);
fx_stream_push_indent(out, 1);
size_t len = array_size(array);
@@ -347,7 +347,7 @@ static void array_to_string(const fx_object *obj, fx_stream *out)
}
if (i < len - 1) {
fx_stream_write_string(out, ",", NULL);
fx_stream_write_cstr(out, ",", NULL);
}
fx_stream_write_char(out, '\n');