Add wxRegEx::ConvertFromBasic() helper

This will be used to implement support for BREs using PCRE which doesn't
support them directly in the upcoming commits.
This commit is contained in:
Vadim Zeitlin
2021-06-18 23:56:09 +02:00
parent 020b5f7383
commit f41564a3e2
5 changed files with 305 additions and 0 deletions

View File

@@ -276,5 +276,15 @@ public:
@since 3.1.3
*/
static wxString QuoteMeta(const wxString& str);
/**
Converts a basic regular expression to an extended regex syntax.
This function can be used to convert @a bre using deprecated wxRE_BASIC
syntax to default (extended) syntax.
@since 3.1.6
*/
static wxString ConvertFromBasic(const wxString& bre);
};