diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-06-20 08:55:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-06-20 08:55:56 +0000 |
commit | 5f7a6c8f6816a826a2dd93eadc5039733f7db606 (patch) | |
tree | 3c22c8ff3436cc3140dfb1b24813ed4362330879 /src/regex/regex_internal.h | |
parent | 21a2b4f95b4488645ba5a6254fcb8919c4915f73 (diff) | |
download | gnunet-5f7a6c8f6816a826a2dd93eadc5039733f7db606.tar.gz gnunet-5f7a6c8f6816a826a2dd93eadc5039733f7db606.zip |
moving functions for testing and evaluation and experiments to the test library, minimizing the internal library, renaming files according to which library they belong to
Diffstat (limited to 'src/regex/regex_internal.h')
-rw-r--r-- | src/regex/regex_internal.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/regex/regex_internal.h b/src/regex/regex_internal.h index 17f5f8419..cd76c1c73 100644 --- a/src/regex/regex_internal.h +++ b/src/regex/regex_internal.h | |||
@@ -444,35 +444,6 @@ REGEX_ITERNAL_dfa_add_multi_strides (struct REGEX_ITERNAL_Context *regex_ctx, | |||
444 | const unsigned int stride_len); | 444 | const unsigned int stride_len); |
445 | 445 | ||
446 | 446 | ||
447 | /** | ||
448 | * Generate a (pseudo) random regular expression of length 'rx_length', as well | ||
449 | * as a (optional) string that will be matched by the generated regex. The | ||
450 | * returned regex needs to be freed. | ||
451 | * | ||
452 | * @param rx_length length of the random regex. | ||
453 | * @param matching_str (optional) pointer to a string that will contain a string | ||
454 | * that will be matched by the generated regex, if | ||
455 | * 'matching_str' pointer was not NULL. | ||
456 | * | ||
457 | * @return NULL if 'rx_length' is 0, a random regex of length 'rx_length', which | ||
458 | * needs to be freed, otherwise. | ||
459 | */ | ||
460 | char * | ||
461 | REGEX_ITERNAL_generate_random_regex (size_t rx_length, char *matching_str); | ||
462 | |||
463 | |||
464 | /** | ||
465 | * Generate a random string of maximum length 'max_len' that only contains literals allowed | ||
466 | * in a regular expression. The string might be 0 chars long but is garantueed | ||
467 | * to be shorter or equal to 'max_len'. | ||
468 | * | ||
469 | * @param max_len maximum length of the string that should be generated. | ||
470 | * | ||
471 | * @return random string that needs to be freed. | ||
472 | */ | ||
473 | char * | ||
474 | REGEX_ITERNAL_generate_random_string (size_t max_len); | ||
475 | |||
476 | 447 | ||
477 | #if 0 /* keep Emacsens' auto-indent happy */ | 448 | #if 0 /* keep Emacsens' auto-indent happy */ |
478 | { | 449 | { |