mirror of
https://github.com/znc/znc.git
synced 2026-05-07 13:54:47 +02:00
CString::Starts/EndsWith(): allow specifying case sensitivity
This commit is contained in:
@@ -491,14 +491,18 @@ public:
|
||||
|
||||
/** Check whether the string starts with a given prefix.
|
||||
* @param sPrefix The prefix.
|
||||
* @param cs CaseSensitive if you want the comparision to be case
|
||||
* sensitive, CaseInsensitive (default) otherwise.
|
||||
* @return True if the string starts with prefix, false otherwise.
|
||||
*/
|
||||
bool StartsWith(const CString& sPrefix) const;
|
||||
bool StartsWith(const CString& sPrefix, CaseSensitivity cs = CaseInsensitive) const;
|
||||
/** Check whether the string ends with a given suffix.
|
||||
* @param sSuffix The suffix.
|
||||
* @param cs CaseSensitive if you want the comparision to be case
|
||||
* sensitive, CaseInsensitive (default) otherwise.
|
||||
* @return True if the string ends with suffix, false otherwise.
|
||||
*/
|
||||
bool EndsWith(const CString& sSuffix) const;
|
||||
bool EndsWith(const CString& sSuffix, CaseSensitivity cs = CaseInsensitive) const;
|
||||
|
||||
/** Remove characters from the beginning of this string.
|
||||
* @param uLen The number of characters to remove.
|
||||
|
||||
Reference in New Issue
Block a user