Split the Token() change to an overloaded function

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1780 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2010-02-21 01:35:54 +00:00
parent 2f9e005115
commit 20a1794c16
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -407,6 +407,10 @@ CString CString::Token(unsigned int uPos, bool bRest, const CString& sSep, bool
return sRet;
}
return Token(uPos, bRest, sSep, bAllowEmpty);
}
CString CString::Token(unsigned int uPos, bool bRest, const CString& sSep, bool bAllowEmpty) const {
const char *sep_str = sSep.c_str();
size_t sep_len = sSep.length();
const char *str = c_str();