summaryrefslogtreecommitdiff
path: root/AK/String.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-28 09:11:00 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-28 09:11:13 +0100
commit95cc4c7e748b6bf77d132a05e962a6830b5f7622 (patch)
tree9a3fea188543a59c9ceb4ea8f01c2b9c9b955ddf /AK/String.h
parent0d2fb306afac1d0d698b2a0bcba47e011f0cc852 (diff)
downloadserenity-95cc4c7e748b6bf77d132a05e962a6830b5f7622.zip
AK: Add some string comparison operators
Some of these are very inefficient. It's nice to have some optimization opportunities in the future though. :^)
Diffstat (limited to 'AK/String.h')
-rw-r--r--AK/String.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/AK/String.h b/AK/String.h
index ce7ad196e2..22a4ed1dfe 100644
--- a/AK/String.h
+++ b/AK/String.h
@@ -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); }