From 676ad43898e6ceaaaf596332e229cb8964a2420f Mon Sep 17 00:00:00 2001 From: hogliux Date: Sun, 16 Oct 2016 18:37:55 +0200 Subject: [PATCH] Added more compare operators to Identifier class --- modules/juce_core/text/juce_Identifier.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/juce_core/text/juce_Identifier.h b/modules/juce_core/text/juce_Identifier.h index 7891443815..6b94333659 100644 --- a/modules/juce_core/text/juce_Identifier.h +++ b/modules/juce_core/text/juce_Identifier.h @@ -93,6 +93,18 @@ public: /** Compares the identifier with a string. */ inline bool operator!= (StringRef other) const noexcept { return name != other; } + /** Compares the identifier with a string. */ + inline bool operator< (StringRef other) const noexcept { return name < other; } + + /** Compares the identifier with a string. */ + inline bool operator<= (StringRef other) const noexcept { return name <= other; } + + /** Compares the identifier with a string. */ + inline bool operator> (StringRef other) const noexcept { return name > other; } + + /** Compares the identifier with a string. */ + inline bool operator>= (StringRef other) const noexcept { return name >= other; } + /** Returns this identifier as a string. */ const String& toString() const noexcept { return name; }