Displaying 2 results from an estimated 2 matches for "atoi_adapt".
2009 Aug 24
0
[LLVMdev] Regular Expression lib support
...se tree is created at compile-time
instead of run-time
bool parse_test(std::string &testStr, myPair &ret)
{
sregex e = (s1=(!as_xpr('-')>>+_d>>!('.'>>*_d)))[ref(ret.first)=atof_adapt(s1)]
>> '|'>> (s2=*_d)[push_back(ref(ret.second),atoi_adapt(s2))] >>
*(',' >> (s2=*_d)[push_back(ref(ret.second),atoi_adapt(s2))])
bool successful = regex_match(testStr.begin(),testStr.end(),e,match_extra);
return successful;
}
spirit::qi: // This will be the fastest, quite literally no other
parser has got close to the execution s...
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