summaryrefslogtreecommitdiff
path: root/AK/StringBuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AK/StringBuilder.cpp')
-rw-r--r--AK/StringBuilder.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/AK/StringBuilder.cpp b/AK/StringBuilder.cpp
index 1754a4709b..8999592f1a 100644
--- a/AK/StringBuilder.cpp
+++ b/AK/StringBuilder.cpp
@@ -15,6 +15,7 @@
#ifndef KERNEL
# include <AK/DeprecatedString.h>
+# include <AK/FlyString.h>
# include <AK/Utf16View.h>
#endif
@@ -122,6 +123,11 @@ ErrorOr<String> StringBuilder::to_string() const
{
return String::from_utf8(string_view());
}
+
+ErrorOr<FlyString> StringBuilder::to_fly_string() const
+{
+ return FlyString::from_utf8(string_view());
+}
#endif
StringView StringBuilder::string_view() const