summaryrefslogtreecommitdiff
path: root/include/VBox/com/string.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-03-26 19:21:20 +0000
committer <>2014-05-08 15:03:54 +0000
commitfb123f93f9f5ce42c8e5785d2f8e0edaf951740e (patch)
treec2103d76aec5f1f10892cd1d3a38e24f665ae5db /include/VBox/com/string.h
parent58ed4748338f9466599adfc8a9171280ed99e23f (diff)
downloadVirtualBox-master.tar.gz
Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2.HEADVirtualBox-4.3.10master
Diffstat (limited to 'include/VBox/com/string.h')
-rw-r--r--include/VBox/com/string.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/include/VBox/com/string.h b/include/VBox/com/string.h
index 3462818e..63e08ae9 100644
--- a/include/VBox/com/string.h
+++ b/include/VBox/com/string.h
@@ -204,15 +204,23 @@ public:
}
bool operator==(const Bstr &that) const { return !compare(that.m_bstr); }
+ bool operator==(CBSTR that) const { return !compare(that); }
+ bool operator==(BSTR that) const { return !compare(that); }
bool operator!=(const Bstr &that) const { return !!compare(that.m_bstr); }
- bool operator==(CBSTR that) const { return !compare(that); }
- bool operator==(BSTR that) const { return !compare(that); }
-
- bool operator!=(CBSTR that) const { return !!compare(that); }
- bool operator!=(BSTR that) const { return !!compare(that); }
- bool operator<(const Bstr &that) const { return compare(that.m_bstr) < 0; }
- bool operator<(CBSTR that) const { return compare(that) < 0; }
- bool operator<(BSTR that) const { return compare(that) < 0; }
+ bool operator!=(CBSTR that) const { return !!compare(that); }
+ bool operator!=(BSTR that) const { return !!compare(that); }
+ bool operator<(const Bstr &that) const { return compare(that.m_bstr) < 0; }
+ bool operator<(CBSTR that) const { return compare(that) < 0; }
+ bool operator<(BSTR that) const { return compare(that) < 0; }
+ bool operator<=(const Bstr &that) const { return compare(that.m_bstr) <= 0; }
+ bool operator<=(CBSTR that) const { return compare(that) <= 0; }
+ bool operator<=(BSTR that) const { return compare(that) <= 0; }
+ bool operator>(const Bstr &that) const { return compare(that.m_bstr) > 0; }
+ bool operator>(CBSTR that) const { return compare(that) > 0; }
+ bool operator>(BSTR that) const { return compare(that) > 0; }
+ bool operator>=(const Bstr &that) const { return compare(that.m_bstr) >= 0; }
+ bool operator>=(CBSTR that) const { return compare(that) >= 0; }
+ bool operator>=(BSTR that) const { return compare(that) >= 0; }
/**
* Returns true if the member string has no length.