added != operator to SymbolString

This commit is contained in:
john30
2015-03-07 13:07:02 +01:00
parent 2dec01535b
commit 0dafd4d18f
+7
View File
@@ -85,6 +85,13 @@ public:
*/
bool operator==(SymbolString& other) { return m_unescapeState==other.m_unescapeState && m_data==other.m_data; }
/**
* Returns whether this instance is different from the other instance.
* @param other the other instance.
* @return true if this instance is different from the other instance.
*/
bool operator!=(SymbolString& other) { return m_unescapeState!=other.m_unescapeState || m_data!=other.m_data; }
/**
* Appends a the symbol to the end of the symbol string and escapes/unescapes it if necessary.
* @param value the symbol to append.