no changes, just match the number of opening/closing braces to avoid upsetting Vim (and probably other editors) syntax highlighting

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-08-27 23:03:55 +00:00
parent 2976d6cbc0
commit 0d79a67919

View File

@ -515,10 +515,11 @@ int wxRegExImpl::Replace(wxString *text,
// note that "^" shouldn't match after the first call to Matches() so we
// use wxRE_NOTBOL to prevent it from happening
while ( (!maxMatches || countRepl < maxMatches) &&
Matches(
#ifndef WXREGEX_CONVERT_TO_MB
Matches(textstr + matchStart,
textstr + matchStart,
#else
Matches(textstr.data() + matchStart,
textstr.data() + matchStart,
#endif
countRepl ? wxRE_NOTBOL : 0
WXREGEX_IF_NEED_LEN(textlen - matchStart)) )