search for: parse_test

Displaying 3 results from an estimated 3 matches for "parse_test".

2020 Mar 03
3
[PATCH] lib-imap: imap-bodystructure: add test with empty header field
...3 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/lib-imap/test-imap-bodystructure.c b/src/lib-imap/test-imap-bodystructure.c index 6f456a44530b..b8f215d689c4 100644 --- a/src/lib-imap/test-imap-bodystructure.c +++ b/src/lib-imap/test-imap-bodystructure.c @@ -41,6 +41,19 @@ struct parse_test parse_tests[] = { "\"text\" \"plain\" (\"charset\" \"utf-8\") NIL NIL \"8bit\" 8 2 NIL NIL NIL NIL", .body = "\"text\" \"plain\" (\"charset\" \"utf-8\") NIL NIL \"8bit\" 8 2...
2009 Aug 24
0
[LLVMdev] Regular Expression lib support
...know the syntax, if anyone else could show me how for this example? I doubt it would be any shorter or faster to write (and especially to execute) then the spirit example for note. 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());...
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