diff options
Diffstat (limited to 'include/value.h')
-rw-r--r-- | include/value.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/value.h b/include/value.h index 2ffbd7c..f2850c9 100644 --- a/include/value.h +++ b/include/value.h @@ -308,6 +308,17 @@ public: Value operator%(double value); /** + * Comparison operators for hardcoded strings + * @param value + */ + bool operator==(const char *value) const { return stringValue() == value; } + bool operator!=(const char *value) const { return stringValue() != value; } + bool operator<=(const char *value) const { return stringValue() <= value; } + bool operator>=(const char *value) const { return stringValue() >= value; } + bool operator< (const char *value) const { return stringValue() < value; } + bool operator> (const char *value) const { return stringValue() > value; } + + /** * Comparison operators * @param value */ |