X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..2ac9bfa9b0b8cc78d59f656996358f15fbe2dc26:/include/wx/regex.h diff --git a/include/wx/regex.h b/include/wx/regex.h index c30f0bf140..bda45030d2 100644 --- a/include/wx/regex.h +++ b/include/wx/regex.h @@ -94,9 +94,13 @@ public: // true if matches and false otherwise // // flags may be combination of wxRE_NOTBOL and wxRE_NOTEOL + // len may be the length of text (ignored by most system regex libs) // // may only be called after successful call to Compile() bool Matches(const wxChar *text, int flags = 0) const; + bool Matches(const wxChar *text, int flags, size_t len) const; + bool Matches(const wxString& text, int flags = 0) const + { return Matches(text.c_str(), flags, text.length()); } // get the start index and the length of the match of the expression // (index 0) or a bracketed subexpression (index != 0)