mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
added optional length to CaseCmp
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@978 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -172,7 +172,10 @@ inline unsigned char* CString::strnchr(const unsigned char* src, unsigned char c
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int CString::CaseCmp(const CString& s) const {
|
||||
int CString::CaseCmp(const CString& s, u_long uLen ) const {
|
||||
if( uLen != CString::npos ) {
|
||||
return strncasecmp(c_str(), s.c_str(), uLen);
|
||||
}
|
||||
return strcasecmp(c_str(), s.c_str());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user