mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
AK: Add support for the new FlyString to StringView
This commit is contained in:
parent
b61f8cd130
commit
e96c64cdb4
2 changed files with 10 additions and 1 deletions
|
@ -49,6 +49,7 @@ public:
|
|||
StringView(ByteBuffer const&);
|
||||
#ifndef KERNEL
|
||||
StringView(String const&);
|
||||
StringView(FlyString const&);
|
||||
StringView(DeprecatedString const&);
|
||||
StringView(DeprecatedFlyString const&);
|
||||
#endif
|
||||
|
@ -56,11 +57,12 @@ public:
|
|||
explicit StringView(ByteBuffer&&) = delete;
|
||||
#ifndef KERNEL
|
||||
explicit StringView(String&&) = delete;
|
||||
explicit StringView(FlyString&&) = delete;
|
||||
explicit StringView(DeprecatedString&&) = delete;
|
||||
explicit StringView(DeprecatedFlyString&&) = delete;
|
||||
#endif
|
||||
|
||||
template<OneOf<String, DeprecatedString, DeprecatedFlyString, ByteBuffer> StringType>
|
||||
template<OneOf<String, FlyString, DeprecatedString, DeprecatedFlyString, ByteBuffer> StringType>
|
||||
StringView& operator=(StringType&&) = delete;
|
||||
|
||||
[[nodiscard]] constexpr bool is_null() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue