Displaying 2 results from an estimated 2 matches for "match_extra".
2009 Aug 24
0
[LLVMdev] Regular Expression lib support
...std/tr1/boost::regex (the C++ standard): // dynamic regex, so it is
slow in comparison to other alternatives
bool parse_test(std::string &testStr, myPair &ret)
{
match_results<IteratorType> m;
regex e(regexStr);
bool successful = regex_match(testStr.begin(),testStr.end(),m,e,match_extra);
if(successful)
{
float f;
vector<int> &i_list = myPair.second;
f = atof(m[1].c_str());
myPair.first=f;
for(int i = 2; i < what.captures(2).size(); ++i)
{
i_list.push_back(atoi(m.captures(2)[i]));
}
}
return successful;
}
boost::xpressive(dy...
2009 Aug 24
2
[LLVMdev] Regular Expression lib support
On Aug 23, 2009, at 5:50 PM, OvermindDL1 wrote:
> On Sun, Aug 23, 2009 at 6:32 PM, Daniel Dunbar<daniel at zuster.org>
> wrote:
>> This is too heavy, and we don't need the extra features, and regexec
>> is well tested and much more standard. Unless there is an
>> overwhelming
>
> 'regexec' I had never heard of, figured it was a library, turns