removed Matches(const wxChar *, int=0) overload: it creates ambiguity with Matches(const wxString&, int=0) one when re.Matches(s.c_str()) is called now that c_str() returns wxCStrData which can be converted to both const wxChar * and wxString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -634,21 +634,12 @@ bool wxRegEx::Compile(const wxString& expr, int flags)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxRegEx::Matches(const wxChar *str, int flags, size_t len) const
|
||||
{
|
||||
wxCHECK_MSG( IsValid(), false, _T("must successfully Compile() first") );
|
||||
(void)len;
|
||||
|
||||
return m_impl->Matches(WXREGEX_CHAR(str), flags WXREGEX_IF_NEED_LEN(len));
|
||||
}
|
||||
|
||||
bool wxRegEx::Matches(const wxChar *str, int flags) const
|
||||
bool wxRegEx::Matches(const wxString& str, int flags) const
|
||||
{
|
||||
wxCHECK_MSG( IsValid(), false, _T("must successfully Compile() first") );
|
||||
|
||||
return m_impl->Matches(WXREGEX_CHAR(str),
|
||||
flags
|
||||
WXREGEX_IF_NEED_LEN(wxStrlen(str)));
|
||||
return m_impl->Matches(WXREGEX_CHAR(str), flags
|
||||
WXREGEX_IF_NEED_LEN(str.length()));
|
||||
}
|
||||
|
||||
bool wxRegEx::GetMatch(size_t *start, size_t *len, size_t index) const
|
||||
|
Reference in New Issue
Block a user