X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..353a4edc6ebdb88d0040de2f13aabfa8accf014b:/include/wx/regex.h?ds=sidebyside diff --git a/include/wx/regex.h b/include/wx/regex.h index c30f0bf140..7f9b2c04b0 100644 --- a/include/wx/regex.h +++ b/include/wx/regex.h @@ -94,9 +94,12 @@ 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 wxString& text, int flags = 0) const; + bool Matches(const wxChar *text, int flags, size_t len) const + { return Matches(wxString(text, len), flags); } // get the start index and the length of the match of the expression // (index 0) or a bracketed subexpression (index != 0)