mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user