mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Add ByteString::must_from_utf8(StringView) for Jakt
This commit is contained in:
parent
5b62d877f2
commit
b27a62488c
Notes:
sideshowbarker
2024-07-17 07:31:31 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b27a62488c
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ public:
|
|||
|
||||
static ErrorOr<ByteString> from_utf8(ReadonlyBytes);
|
||||
static ErrorOr<ByteString> 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);
|
||||
|
|
Loading…
Reference in a new issue