ds: string: add verbs to function names
This commit is contained in:
+3
-3
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user