X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/591d01bebacf365a654a9061cddeb7fae617a2f5..abd61ebf9b7b4101f118d53d8ff9942530ef77b9:/contrib/src/stc/scintilla/include/SString.h?ds=sidebyside diff --git a/contrib/src/stc/scintilla/include/SString.h b/contrib/src/stc/scintilla/include/SString.h index 5c2a93d33b..38a206ccf2 100644 --- a/contrib/src/stc/scintilla/include/SString.h +++ b/contrib/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);