1
Fork 0
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:
Timothy Flynn 2021-08-09 11:53:28 -04:00 committed by Andreas Kling
parent 5978caf96b
commit c16aca7abf
3 changed files with 14 additions and 0 deletions

View file

@ -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);