mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
Take StringView in more places
We should work towards a pattern where we take StringView as function arguments, and store String as member, to push the String construction to the last possible moment.
This commit is contained in:
parent
b55b6cd7fc
commit
7bce096afd
14 changed files with 28 additions and 36 deletions
|
@ -11,7 +11,7 @@ public:
|
|||
explicit StringBuilder(ssize_t initial_capacity = 16);
|
||||
~StringBuilder() {}
|
||||
|
||||
void append(const String&);
|
||||
void append(const StringView&);
|
||||
void append(char);
|
||||
void append(const char*, ssize_t);
|
||||
void appendf(const char*, ...);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue