AK: Add an identity implementation of StringView::from_string_literal()

This is required for the Jakt runtime.
This commit is contained in:
Ali Mohammad Pur 2022-12-10 19:43:47 +03:30 committed by Ali Mohammad Pur
parent e591c604de
commit 18bc88b806
Notes: sideshowbarker 2024-07-17 05:09:48 +09:00

View file

@ -40,6 +40,12 @@ public:
{
}
// Note: This is here for Jakt.
ALWAYS_INLINE static StringView from_string_literal(StringView string)
{
return string;
}
StringView(ByteBuffer const&);
#ifndef KERNEL
StringView(String const&);