[Igarden-commit] CommonSource/Utilities RGString.h, 1.11.2.1, 1.11.2.2 RGString.cpp, 1.12.2.1, 1.12
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2006-12-29 20:17:57
|
Update of /cvsroot/igarden/CommonSource/Utilities In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv23567 Modified Files: Tag: Release_branch_v1 RGString.h RGString.cpp Log Message: Make "Contains" methods const Index: RGString.h =================================================================== RCS file: /cvsroot/igarden/CommonSource/Utilities/RGString.h,v retrieving revision 1.11.2.1 retrieving revision 1.11.2.2 diff -C2 -d -r1.11.2.1 -r1.11.2.2 *** RGString.h 15 Nov 2006 04:00:23 -0000 1.11.2.1 --- RGString.h 29 Dec 2006 20:17:55 -0000 1.11.2.2 *************** *** 58,62 **** String mid(int len, int where); int FindChar(unsigned char ch); ! bool ContainsSubstring(String &s, long *pos=NULL); // ---------- assignment String& operator=(const String& s); --- 58,62 ---- String mid(int len, int where); int FindChar(unsigned char ch); ! bool ContainsSubstring(String &s, long *pos=NULL) const; // ---------- assignment String& operator=(const String& s); *************** *** 105,109 **** bool operator>=(String s) { return (bool) (!(*this < s)); } ! bool Contains(const wchar_t * pat); // ------- subscript wchar_t& operator[](int n) { return _sptr[n]; } --- 105,109 ---- bool operator>=(String s) { return (bool) (!(*this < s)); } ! bool Contains(const wchar_t * pat) const; // ------- subscript wchar_t& operator[](int n) { return _sptr[n]; } Index: RGString.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/Utilities/RGString.cpp,v retrieving revision 1.12.2.1 retrieving revision 1.12.2.2 diff -C2 -d -r1.12.2.1 -r1.12.2.2 *** RGString.cpp 14 Dec 2006 03:06:48 -0000 1.12.2.1 --- RGString.cpp 29 Dec 2006 20:17:55 -0000 1.12.2.2 *************** *** 380,384 **** /// ContainsSubstring // ! bool String::ContainsSubstring(String &s, long *pos) { wchar_t *strPtr; --- 380,384 ---- /// ContainsSubstring // ! bool String::ContainsSubstring(String &s, long *pos) const { wchar_t *strPtr; *************** *** 405,409 **** /// Contains // ! bool String::Contains(const wchar_t * pat) { PRECONDITION(this != NULL); --- 405,409 ---- /// Contains // ! bool String::Contains(const wchar_t * pat) const { PRECONDITION(this != NULL); |