From 5031ce9079f9e5292468374fa8d4a95462e7168a Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 10 May 2017 20:58:28 +0200 Subject: Change regex combination, allow hex --- src/regex/regex_test_lib.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/regex/regex_test_lib.h') diff --git a/src/regex/regex_test_lib.h b/src/regex/regex_test_lib.h index 83414e5dc..c4f7e7539 100644 --- a/src/regex/regex_test_lib.h +++ b/src/regex/regex_test_lib.h @@ -38,15 +38,23 @@ extern "C" #endif #endif + /** * Combine an array of regexes into a single prefix-shared regex. + * Returns a prefix-combine regex that matches the same strings as + * any of the original regexes. + * + * WARNING: only useful for reading specific regexes for specific applications, + * namely the gnunet-regex-profiler / gnunet-regex-daemon. + * This function DOES NOT support arbitrary regex combining. * * @param regexes A NULL-terminated array of regexes. + * @param alphabet_size Size of the alphabet the regex uses. * * @return A string with a single regex that matches any of the original regexes */ char * -REGEX_TEST_combine(char * const regexes[]); +REGEX_TEST_combine (char * const regexes[], unsigned int alphabet_size); /** -- cgit v1.2.3