Cleaned up regex.cpp
fixed strlen problem in regex many other things related to cleanup of regex.cpp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -172,17 +172,7 @@ regexec(regex_t *re,
|
||||
int flags)
|
||||
{
|
||||
rm_detail_t det;
|
||||
size_t nLen = 0;
|
||||
chr* s2 = (chr*) string;
|
||||
|
||||
if (string && *string)
|
||||
{
|
||||
while(*++s2);
|
||||
}
|
||||
|
||||
nLen = ((s2 - string) / sizeof(chr));
|
||||
|
||||
return wx_regexec(re, string, nLen, &det, nmatch, pmatch, flags);
|
||||
return wx_regexec(re, string, wx_strlen(string), &det, nmatch, pmatch, flags);
|
||||
}
|
||||
int
|
||||
wx_regexec(regex_t *re,
|
||||
|
Reference in New Issue
Block a user