amassari 2004/12/09 10:34:20 Modified: c/src/xercesc/dom/deprecated DOMString.cpp DOMString.hpp Log: Added operator < (jira#392) Revision Changes Path 1.12 +5 -1 xml-xerces/c/src/xercesc/dom/deprecated/DOMString.cpp Index: DOMString.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/deprecated/DOMString.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- DOMString.cpp 28 Sep 2004 10:56:04 -0000 1.11 +++ DOMString.cpp 9 Dec 2004 18:34:19 -0000 1.12 @@ -1048,6 +1048,10 @@ return DOMString(str); } +bool DOMString::operator < (const DOMString &other) const +{ + return (compareString(other) < 0); +} int DOMString::compareString(const DOMString &other) const { 1.8 +9 -1 xml-xerces/c/src/xercesc/dom/deprecated/DOMString.hpp Index: DOMString.hpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/deprecated/DOMString.hpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- DOMString.hpp 8 Sep 2004 13:55:42 -0000 1.7 +++ DOMString.hpp 9 Dec 2004 18:34:19 -0000 1.8 @@ -376,6 +376,14 @@ int compareString(const DOMString &other) const; /** + * Less than operator. It is a helper operator for compareString. + * + * @param other The object to be compared with. + * @return True if this DOMString is lexically less than the other DOMString. + */ + bool operator < (const DOMString &other) const; + + /** * Tells if a <code>DOMString</code> contains the same character data * as another. *
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]