summaryrefslogtreecommitdiff
path: root/src/regex/regex_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex/regex_internal.h')
-rw-r--r--src/regex/regex_internal.h29
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 */
460char *
461REGEX_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 */
473char *
474REGEX_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{