Browse Source

Added more compare operators to Identifier class

tags/2021-05-28
hogliux 9 years ago
parent
commit
676ad43898
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      modules/juce_core/text/juce_Identifier.h

+ 12
- 0
modules/juce_core/text/juce_Identifier.h View File

@@ -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; }


Loading…
Cancel
Save