@@ -462,6 +462,13 @@ void rure_options_dfa_size_limit(rure_options *options, size_t limit);
462
462
* The number of patterns to compile is specified by patterns_count. patterns
463
463
* must contain at least this many entries.
464
464
*
465
+ * flags is a bitfield. Valid values are constants declared with prefix
466
+ * RURE_FLAG_.
467
+ *
468
+ * options contains non-flag configuration settings. If it's NULL, default
469
+ * settings are used. options may be freed immediately after a call to
470
+ * rure_compile.
471
+ *
465
472
* error is set if there was a problem compiling the pattern.
466
473
*
467
474
* The compiled expression set returned may be used from multiple threads.
@@ -488,6 +495,12 @@ void rure_set_free(rure_set *re);
488
495
* haystack may contain arbitrary bytes, but ASCII compatible text is more
489
496
* useful. UTF-8 is even more useful. Other text encodings aren't supported.
490
497
* length should be the number of bytes in haystack.
498
+ *
499
+ * start is the position at which to start searching. Note that setting the
500
+ * start position is distinct from incrementing the pointer, since the regex
501
+ * engine may look at bytes before the start position to determine match
502
+ * information. For example, if the start position is greater than 0, then the
503
+ * \A ("begin text") anchor can never match.
491
504
*/
492
505
bool rure_set_is_match (rure_set * re , const uint8_t * haystack , size_t length ,
493
506
size_t start );
@@ -503,6 +516,12 @@ bool rure_set_is_match(rure_set *re, const uint8_t *haystack, size_t length,
503
516
* useful. UTF-8 is even more useful. Other text encodings aren't supported.
504
517
* length should be the number of bytes in haystack.
505
518
*
519
+ * start is the position at which to start searching. Note that setting the
520
+ * start position is distinct from incrementing the pointer, since the regex
521
+ * engine may look at bytes before the start position to determine match
522
+ * information. For example, if the start position is greater than 0, then the
523
+ * \A ("begin text") anchor can never match.
524
+ *
506
525
* matches must be greater than or equal to the number of patterns the
507
526
* rure_set was compiled with.
508
527
*
0 commit comments