diff options
Diffstat (limited to 'lib/test_helper.h')
-rw-r--r-- | lib/test_helper.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/test_helper.h b/lib/test_helper.h index 47dacf56..568892bf 100644 --- a/lib/test_helper.h +++ b/lib/test_helper.h @@ -6,15 +6,14 @@ // Parse test submatch result string. // -// Expected format: comma-separated lists of offset pairs in parentheses, each -// list contains as many pairs as there are repetitions for the corresponding -// capturing group. +// Expected format: comma-separated lists of offset pairs in parentheses, each list contains as many +// pairs as there are repetitions for the corresponding capturing group. // -// Example for RE "(a(b)?)*" and string "aba": "(0,3),(0,2)(2,3),(1,2)(?,?)". +// Example for regexp "(a(b)?)*" and string "aba": "(0,3),(0,2)(2,3),(1,2)(?,?)". // -// String representation of result is used instead of vectors and initializer -// lists because C++ compilers take too long to process that many vectors, and -// the compilation gets very slow. -bool parse_submatch(const char *s, std::vector<std::vector<regoff_t> > &result); +// String representation of result is used instead of vectors and initializer lists because C++ +// compilers take too long to process that many vectors, and the compilation gets very slow. +// +bool parse_submatch(const char* s, std::vector<std::vector<regoff_t> >& result); #endif // _RE2C_LIB_TEST_HELPER_ |