Changed GRETA compile flag - fixing output (was matching in reverse before....)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
//RN (Ryan Norton's) regular expression library
|
//RN (Ryan Norton's) regular expression library
|
||||||
//#define wxUSE_RNWXRE
|
//#define wxUSE_RNWXRE
|
||||||
|
|
||||||
//Greta, Microsoft Research's templated library
|
//GRETA, Microsoft Research's templated regex library
|
||||||
//[http://research.microsoft.com/projects/greta/]
|
//[http://research.microsoft.com/projects/greta/]
|
||||||
//Install - Get it from .net powertools, put the directory in this directory
|
//Install - Get it from .net powertools, put the directory in this directory
|
||||||
//#define wxUSE_GRETA
|
//#define wxUSE_GRETA
|
||||||
@@ -390,7 +390,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
szResult2 = wxString::Format(
|
szResult2 = wxString::Format(
|
||||||
_("--wxRe--\nIndex:[%i]-[%i]\nString:%s\nMatch Time:%ums\nStatus:%s"),
|
_("--Ryan's wxRe--\nIndex:[%i]-[%i]\nString:%s\nMatch Time:%ums\nStatus:%s"),
|
||||||
dwStartIndex2, dwEndIndex2+dwStartIndex2,
|
dwStartIndex2, dwEndIndex2+dwStartIndex2,
|
||||||
szSearch.Mid(dwStartIndex2, dwEndIndex2),
|
szSearch.Mid(dwStartIndex2, dwEndIndex2),
|
||||||
dwEndTime2,
|
dwEndTime2,
|
||||||
@@ -400,7 +400,7 @@ public:
|
|||||||
|
|
||||||
#ifdef wxUSE_GRETA
|
#ifdef wxUSE_GRETA
|
||||||
std::string stdszPattern(szPattern);
|
std::string stdszPattern(szPattern);
|
||||||
rpattern Greta (stdszPattern,GLOBAL,MODE_MIXED);
|
rpattern Greta (stdszPattern,EXTENDED,MODE_MIXED);
|
||||||
match_results r;
|
match_results r;
|
||||||
std::string stdszSearch(szSearch);
|
std::string stdszSearch(szSearch);
|
||||||
|
|
||||||
@@ -417,7 +417,7 @@ public:
|
|||||||
{
|
{
|
||||||
for(i = 0; i < n; ++i)
|
for(i = 0; i < n; ++i)
|
||||||
{
|
{
|
||||||
Greta = rpattern(stdszPattern,GLOBAL,MODE_MIXED);
|
Greta = rpattern(stdszPattern,EXTENDED,MODE_MIXED);
|
||||||
Greta.match(stdszSearch, r);
|
Greta.match(stdszSearch, r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user