summaryrefslogtreecommitdiff
path: root/AK/DeprecatedString.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-01-28 21:08:14 +0100
committerAndreas Kling <kling@serenityos.org>2023-01-29 23:41:42 +0100
commit230cb3b0cb9664839c56f80d6dff3706fffc2243 (patch)
tree4850dd3e481040d2bd24547433f00df8b0bcb079 /AK/DeprecatedString.h
parent6b497b87105dceb6349915732d1fa70fdaf07323 (diff)
downloadserenity-230cb3b0cb9664839c56f80d6dff3706fffc2243.zip
AK: Add DeprecatedString::from_utf8()
This will be used in Jakt to help transition off of DeprecatedString.
Diffstat (limited to 'AK/DeprecatedString.h')
-rw-r--r--AK/DeprecatedString.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/AK/DeprecatedString.h b/AK/DeprecatedString.h
index 0155fcdf19..35474f9bff 100644
--- a/AK/DeprecatedString.h
+++ b/AK/DeprecatedString.h
@@ -95,6 +95,8 @@ public:
DeprecatedString(DeprecatedFlyString const&);
+ static ErrorOr<DeprecatedString> from_utf8(ReadonlyBytes);
+
[[nodiscard]] static DeprecatedString repeated(char, size_t count);
[[nodiscard]] static DeprecatedString repeated(StringView, size_t count);