mirror of
https://github.com/znc/znc.git
synced 2026-07-02 16:02:02 +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:
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -88,7 +88,6 @@ public:
|
||||
CString(const string& s) : string(s) {}
|
||||
~CString() {}
|
||||
|
||||
inline unsigned char* strnchr(const unsigned char* src, unsigned char c, unsigned int iMaxBytes, unsigned char* pFill = NULL, unsigned int* piCount = NULL) const;
|
||||
int CaseCmp(const CString& s, unsigned long uLen = CString::npos) const;
|
||||
int StrCmp(const CString& s, unsigned long uLen = CString::npos) const;
|
||||
bool Equals(const CString& s, bool bCaseSensitive = false, unsigned long uLen = CString::npos) const;
|
||||
@@ -182,6 +181,7 @@ public:
|
||||
|
||||
private:
|
||||
protected:
|
||||
unsigned char* strnchr(const unsigned char* src, unsigned char c, unsigned int iMaxBytes, unsigned char* pFill = NULL, unsigned int* piCount = NULL) const;
|
||||
};
|
||||
|
||||
class MCString : public map<CString, CString> {
|
||||
|
||||
Reference in New Issue
Block a user