X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/591d01bebacf365a654a9061cddeb7fae617a2f5..80a779275ae04443c568dca919adb26cf6f5002c:/src/stc/scintilla/include/SString.h diff --git a/src/stc/scintilla/include/SString.h b/src/stc/scintilla/include/SString.h index 5c2a93d33b..38a206ccf2 100644 --- a/src/stc/scintilla/include/SString.h +++ b/src/stc/scintilla/include/SString.h @@ -197,7 +197,7 @@ public: bool operator!=(const char *sOther) const { return !operator==(sOther); } - bool contains(char ch) { + bool contains(char ch) const { return (s && *s) ? strchr(s, ch) != 0 : false; } void setsizegrowth(lenpos_t sizeGrowth_) { @@ -253,7 +253,7 @@ public: bool startswith(const char *prefix); bool endswith(const char *suffix); int search(const char *sFind, lenpos_t start=0) const; - bool contains(const char *sFind) { + bool contains(const char *sFind) const { return search(sFind) >= 0; } int substitute(char chFind, char chReplace);