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:
Ryan Norton
2003-12-30 22:21:00 +00:00
parent 9965cadbde
commit c5feba0ea3
5 changed files with 53 additions and 87 deletions

View File

@@ -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,