mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
AK+Kernel: Add StringBuilder::append overload for UTF-16 views
Currently, to append a UTF-16 view to a StringBuilder, callers must first convert the view to UTF-8 and then append the copy. Add a UTF-16 overload so callers do not need to hold an entire copy in memory.
This commit is contained in:
parent
5978caf96b
commit
c16aca7abf
3 changed files with 14 additions and 0 deletions
|
@ -22,6 +22,7 @@ public:
|
|||
~StringBuilder() = default;
|
||||
|
||||
void append(StringView const&);
|
||||
void append(Utf16View const&);
|
||||
void append(Utf32View const&);
|
||||
void append(char);
|
||||
void append_code_point(u32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue