diff --git a/AK/ByteString.h b/AK/ByteString.h index dc48d63c48b..2df1aab1785 100644 --- a/AK/ByteString.h +++ b/AK/ByteString.h @@ -90,6 +90,7 @@ public: static ErrorOr from_utf8(ReadonlyBytes); static ErrorOr from_utf8(StringView string) { return from_utf8(string.bytes()); } + static ByteString must_from_utf8(StringView string) { return MUST(from_utf8(string)); } [[nodiscard]] static ByteString repeated(char, size_t count); [[nodiscard]] static ByteString repeated(StringView, size_t count);