psychon
2573b6408e
Mark some global vars as const and static and some static local vars as const
...
This way the compiler puts those vars in .rodata instead of .data and everyone
happy. (Plus we have one symbol less exported)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1241 726aef4b-f618-498e-8847-2d620e286838
2008-10-07 13:45:34 +00:00
kroimon
5237a24747
Use CString::Equals() everywhere.
...
* (CString::CaseCmp() == 0) became CString::Equals()
* (CString::CaseCmp() != 0) became !CString::Equals()
* replaced some occurrences of strn?casecmp
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1234 726aef4b-f618-498e-8847-2d620e286838
2008-09-30 15:15:59 +00:00
kroimon
f40b3e78d7
Added CString::Equals()
...
This new function can be used to replace the old (CaseCmp() == 0) statements.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1232 726aef4b-f618-498e-8847-2d620e286838
2008-09-30 12:58:34 +00:00
kroimon
195681d7d7
Added length argument to CString::StrCmp() like in CString::CaseCmp()
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1231 726aef4b-f618-498e-8847-2d620e286838
2008-09-30 12:57:10 +00:00
kroimon
e693acaa66
Added CString::TrimPrefix() and CString::TrimSuffix()
...
These functions remove prefix/suffix strings if possible.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1224 726aef4b-f618-498e-8847-2d620e286838
2008-09-28 16:59:28 +00:00
kroimon
6766b32e1b
Fixed some trailing whitespace / tab mixups and adjusted MD5.cpp to our coding guidelines.
...
This commit includes absolutely no changes in functionality, only pure cleanup.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1215 726aef4b-f618-498e-8847-2d620e286838
2008-09-26 12:51:36 +00:00
kroimon
57f4288c00
Renamed String.h and String.cpp to ZNCString.h and ZNCString.cpp
...
and updated all references to these files.
This became neccessary to solve problems on case-insensitive file-systems like Windows and MacOS X.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1202 726aef4b-f618-498e-8847-2d620e286838
2008-09-13 16:38:41 +00:00