xo-object2: + string comparison operators
This commit is contained in:
parent
05693bd55e
commit
fac95836fc
2 changed files with 67 additions and 0 deletions
|
|
@ -250,6 +250,26 @@ namespace xo {
|
|||
return DString::compare(lhs, rhs) == 0;
|
||||
}
|
||||
|
||||
inline bool operator!=(const DString & lhs, const DString & rhs) {
|
||||
return DString::compare(lhs, rhs) != 0;
|
||||
}
|
||||
|
||||
inline bool operator<(const DString & lhs, const DString & rhs) {
|
||||
return DString::compare(lhs, rhs) < 0;
|
||||
}
|
||||
|
||||
inline bool operator<=(const DString & lhs, const DString & rhs) {
|
||||
return DString::compare(lhs, rhs) <= 0;
|
||||
}
|
||||
|
||||
inline bool operator>(const DString & lhs, const DString & rhs) {
|
||||
return DString::compare(lhs, rhs) > 0;
|
||||
}
|
||||
|
||||
inline bool operator>=(const DString & lhs, const DString & rhs) {
|
||||
return DString::compare(lhs, rhs) >= 0;
|
||||
}
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue