AK: Allow implicitly constructing a Utf16View from a Utf16FlyString
The same already works for String and FlyString into StringView, and for Utf16String into Utf16View.
This commit is contained in:
parent
1bc80848fb
commit
73154defa8
1 changed files with 3 additions and 0 deletions
|
|
@ -39,6 +39,9 @@ public:
|
|||
|
||||
ALWAYS_INLINE explicit operator Utf16String() const { return to_utf16_string(); }
|
||||
|
||||
ALWAYS_INLINE operator Utf16View() const& { return view(); }
|
||||
explicit operator Utf16View() const&& = delete;
|
||||
|
||||
ALWAYS_INLINE Utf16String to_utf16_string() const
|
||||
{
|
||||
Detail::Utf16StringBase copy { m_data };
|
||||
|
|
|
|||
Loading…
Reference in a new issue