1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

AK: Add FlyString::to_deprecated_fly_string()

This adds the conversion function to_deprecated_fly_string() to enable
conversion from new FlyString to DeprecatedFlyString.
This commit is contained in:
Kenneth Myhra 2023-03-04 21:02:58 +01:00 committed by Linus Groh
parent efabfd4c66
commit 03ceca4ca1
2 changed files with 9 additions and 0 deletions

View file

@ -51,6 +51,9 @@ public:
// This is primarily interesting to unit tests.
[[nodiscard]] static size_t number_of_fly_strings();
// FIXME: Remove this once all code has been ported to FlyString
[[nodiscard]] DeprecatedFlyString to_deprecated_fly_string() const;
private:
// This will hold either the pointer to the Detail::StringData it represents or the raw bytes of
// an inlined short string.