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
+5 -5
View File
@@ -449,7 +449,7 @@ bool CZNC::ParseConfig(const CString& sConfig) {
while (File.ReadLine(sLine)) {
while ((sLine.Right(1) == "\r") || (sLine.Right(1) == "\n")) {
CUtils::Trim(sLine);
sLine.Trim();
}
if ((sLine.empty()) || (sLine[0] == '#') || (sLine.Left(2) == "//")) {
@@ -480,8 +480,8 @@ bool CZNC::ParseConfig(const CString& sConfig) {
CString sTag = sLine.substr(0, sLine.find_first_of(" \t\r\n"));
CString sValue = (sTag.size() < sLine.size()) ? sLine.substr(sTag.size() +1) : "";
CUtils::Trim(sTag);
CUtils::Trim(sValue);
sTag.Trim();
sValue.Trim();
if (sLine.Left(1) == "/") {
CString sTag = sLine.substr(1);
@@ -554,8 +554,8 @@ bool CZNC::ParseConfig(const CString& sConfig) {
// If we have a regular line, figure out where it goes
CString sName = sLine.Token(0, false, '=');
CString sValue = sLine.Token(1, true, '=');
CUtils::Trim(sName);
CUtils::Trim(sValue);
sName.Trim();
sValue.Trim();
if ((!sName.empty()) && (!sValue.empty())) {
if (pUser) {