[sword-cvs] sword/include swbuf.h,1.38,1.39
sword at www.crosswire.org
sword at www.crosswire.org
Thu Jul 15 06:11:55 MST 2004
Committed by: joachim
Update of /cvs/core/sword/include
In directory www:/tmp/cvs-serv9924/include
Modified Files:
swbuf.h
Log Message:
fixes for the cppunit stuff; added a better == in SWBuf for comparision with char*
Index: swbuf.h
===================================================================
RCS file: /cvs/core/sword/include/swbuf.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- swbuf.h 16 Jun 2004 09:04:20 -0000 1.38
+++ swbuf.h 15 Jul 2004 13:11:52 -0000 1.39
@@ -286,6 +286,7 @@
inline bool operator <=(const SWBuf &other) const { return compare(other) <= 0; }
inline bool operator >=(const SWBuf &other) const { return compare(other) >= 0; }
+ inline int compare(const char* other) const { return strcmp(c_str(), other); }
inline bool operator ==(const char *other) const { return !compare(other); }
inline bool operator !=(const char *other) const { return compare(other); }
inline bool operator > (const char *other) const { return compare(other) > 0; }
More information about the sword-cvs
mailing list