summaryrefslogtreecommitdiff
path: root/core/fxcrt/bytestring.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/bytestring.h')
-rw-r--r--core/fxcrt/bytestring.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/fxcrt/bytestring.h b/core/fxcrt/bytestring.h
index 67fdd1d9ac..6d5843efcd 100644
--- a/core/fxcrt/bytestring.h
+++ b/core/fxcrt/bytestring.h
@@ -110,7 +110,9 @@ class ByteString {
bool operator!=(const ByteStringView& str) const { return !(*this == str); }
bool operator!=(const ByteString& other) const { return !(*this == other); }
- bool operator<(const ByteString& str) const;
+ bool operator<(const char* ptr) const;
+ bool operator<(const ByteStringView& str) const;
+ bool operator<(const ByteString& other) const;
const ByteString& operator=(const char* str);
const ByteString& operator=(const ByteStringView& bstrc);
@@ -209,6 +211,9 @@ inline bool operator!=(const char* lhs, const ByteString& rhs) {
inline bool operator!=(const ByteStringView& lhs, const ByteString& rhs) {
return rhs != lhs;
}
+inline bool operator<(const char* lhs, const ByteString& rhs) {
+ return rhs.Compare(lhs) > 0;
+}
inline ByteString operator+(const ByteStringView& str1,
const ByteStringView& str2) {