mirror of
https://github.com/znc/znc.git
synced 2026-05-01 11:02:27 +02:00
Make CString::strnchr() private
No idea what this function actually does, but it's only used internally in CString. This also removes a bogus "inline". git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2110 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -28,7 +28,7 @@ CString::CString(unsigned long long i) : string() { stringstream s; s << i; *thi
|
||||
CString::CString(double i, int precision) : string() { stringstream s; s.precision(precision); s << std::fixed << i; *this = s.str(); }
|
||||
CString::CString(float i, int precision) : string() { stringstream s; s.precision(precision); s << std::fixed << i; *this = s.str(); }
|
||||
|
||||
inline unsigned char* CString::strnchr(const unsigned char* src, unsigned char c, unsigned int iMaxBytes, unsigned char* pFill, unsigned int* piCount) const {
|
||||
unsigned char* CString::strnchr(const unsigned char* src, unsigned char c, unsigned int iMaxBytes, unsigned char* pFill, unsigned int* piCount) const {
|
||||
for (unsigned int a = 0; a < iMaxBytes && *src; a++, src++) {
|
||||
if (pFill) {
|
||||
pFill[a] = *src;
|
||||
|
||||
Reference in New Issue
Block a user