Moved CUtils::Trim() into CString class

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@247 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-05-08 04:30:14 +00:00
parent 078bbcf019
commit 511832a8d6
11 changed files with 31 additions and 31 deletions
-12
View File
@@ -392,18 +392,6 @@ CString CUtils::ToKBytes(double d) {
return szRet;
}
CString& CUtils::Trim(CString& s) {
while ((s.Right(1) == " ") || (s.Right(1) == "\t") || (s.Right(1) == "\r") || (s.Right(1) == "\n")) {
s.RightChomp();
}
while ((s.Left(1) == " ") || (s.Left(1) == "\t") || (s.Left(1) == "\r") || (s.Left(1) == "\n")) {
s.LeftChomp();
}
return s;
}
bool CUtils::wildcmp(const CString& sWild, const CString& sString) {
// Written by Jack Handy - jakkhandy@hotmail.com
const char *wild = sWild.c_str(), *CString = sString.c_str();