mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
Added CString::TrimPrefix() and CString::TrimSuffix()
These functions remove prefix/suffix strings if possible. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1224 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -147,6 +147,11 @@ public:
|
||||
CString TrimLeft_n(const CString& s = " \t\r\n") const;
|
||||
CString TrimRight_n(const CString& s = " \t\r\n") const;
|
||||
|
||||
bool TrimPrefix(const CString& sPrefix);
|
||||
bool TrimSuffix(const CString& sSuffix);
|
||||
CString TrimPrefix_n(const CString& sPrefix) const;
|
||||
CString TrimSuffix_n(const CString& sSuffix) const;
|
||||
|
||||
bool LeftChomp(unsigned int uLen = 1);
|
||||
bool RightChomp(unsigned int uLen = 1);
|
||||
CString LeftChomp_n(unsigned int uLen = 1) const;
|
||||
|
||||
Reference in New Issue
Block a user