diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-24 14:03:42 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-24 16:14:10 +0100 |
commit | 404de10a151650fd0f69d4c9347a509757941d5f (patch) | |
tree | d03c23a580f30201269d540ab28e0ab9892c5095 | |
parent | f42f300ba3dca60160258fec831fede552016bc3 (diff) | |
download | serenity-404de10a151650fd0f69d4c9347a509757941d5f.zip |
AK: Add FlyString::is_null()
-rw-r--r-- | AK/FlyString.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/AK/FlyString.h b/AK/FlyString.h index b494bd801c..6dc9391c32 100644 --- a/AK/FlyString.h +++ b/AK/FlyString.h @@ -37,6 +37,8 @@ public: FlyString(const StringView&); FlyString(const char*); + bool is_null() const { return !m_impl; } + bool operator==(const FlyString& other) const { return m_impl == other.m_impl; } bool operator!=(const FlyString& other) const { return m_impl != other.m_impl; } |