mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
StringBuilder: Add try_append_repeated() and append_repeated()
This two methods add the character as many times as specified by the second parameter.
This commit is contained in:
parent
d589898f5b
commit
62b8ccaffc
2 changed files with 15 additions and 0 deletions
|
@ -35,6 +35,7 @@ public:
|
|||
return vformat(*this, fmtstr.view(), variadic_format_params);
|
||||
}
|
||||
ErrorOr<void> try_append(char const*, size_t);
|
||||
ErrorOr<void> try_append_repeated(char, size_t);
|
||||
ErrorOr<void> try_append_escaped_for_json(StringView);
|
||||
|
||||
void append(StringView);
|
||||
|
@ -46,6 +47,7 @@ public:
|
|||
void append_code_point(u32);
|
||||
void append(char const*, size_t);
|
||||
void appendvf(char const*, va_list);
|
||||
void append_repeated(char, size_t);
|
||||
|
||||
void append_as_lowercase(char);
|
||||
void append_escaped_for_json(StringView);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue