1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +00:00

AK: Add some string comparison operators

Some of these are very inefficient. It's nice to have some optimization
opportunities in the future though. :^)
This commit is contained in:
Andreas Kling 2020-03-28 09:11:00 +01:00
parent 0d2fb306af
commit 95cc4c7e74
4 changed files with 34 additions and 0 deletions

View file

@ -148,6 +148,9 @@ public:
bool operator==(const StringView&) const;
bool operator!=(const StringView& other) const { return !(*this == other); }
bool operator==(const FlyString&) const;
bool operator!=(const FlyString& other) const { return !(*this == other); }
bool operator<(const String&) const;
bool operator<(const char*) const;
bool operator>=(const String& other) const { return !(*this < other); }