Lines Matching refs:re
17 rure *re = rure_compile_must("\\p{So}$");
18 bool matched = rure_is_match(re, (const uint8_t *)haystack,
27 rure_free(re);
35 rure *re = rure_compile_must("a+");
37 bool matched = rure_shortest_match(re, (const uint8_t *)haystack,
56 rure_free(re);
64 rure *re = rure_compile_must("\\p{So}$");
66 bool matched = rure_find(re, (const uint8_t *)haystack, strlen(haystack),
85 rure_free(re);
93 rure *re = rure_compile_must(".(.*(?P<snowman>\\p{So}))$");
95 rure_captures *caps = rure_captures_new(re);
96 bool matched = rure_find_captures(re, (const uint8_t *)haystack,
119 int32_t capture_index = rure_capture_name_index(re, "snowman");
146 rure_free(re);
155 rure *re = rure_compile_must("\\w+(\\w)");
157 rure_captures *caps = rure_captures_new(re);
158 rure_iter *it = rure_iter_new(re);
207 rure_free(re);
229 rure *re = rure_compile_must(
231 rure_iter_capture_names *it = rure_iter_capture_names_new(re);
263 rure_free(re);
278 rure *re = rure_compile((const uint8_t *)pattern, strlen(pattern),
280 bool matched = rure_is_match(re, (const uint8_t *)haystack,
288 rure_free(re);
295 rure *re = rure_compile((const uint8_t *)"(", 1, 0, NULL, err);
296 if (re != NULL) {
303 rure_free(re);
324 rure *re = rure_compile((const uint8_t *)"\\w{100}", 8, 0, opts, err);
325 if (re != NULL) {
332 rure_free(re);
362 rure_set *re = rure_compile_set((const uint8_t **) patterns,
368 if (re == NULL) {
373 if (rure_set_len(re) != PAT_COUNT) {
378 if (!rure_set_is_match(re, (const uint8_t *) "foobar", 6, 0)) {
383 if (rure_set_is_match(re, (const uint8_t *) "", 0, 0)) {
389 if (!rure_set_matches(re, (const uint8_t *) "foobar", 6, 0, matches)) {
407 rure_set_free(re);
428 rure_set *re = rure_compile_set((const uint8_t **) patterns,
434 if (re == NULL) {
439 if (rure_set_len(re) != PAT_COUNT) {
444 if (rure_set_is_match(re, (const uint8_t *)"foobiasdr", 7, 2)) {
451 if (!rure_set_matches(re, (const uint8_t *)"fooobar", 8, 0, matches)) {
471 if (!rure_set_matches(re, (const uint8_t *)"fooobar", 7, 1, matches)) {
490 rure_set_free(re);
508 rure_set *re = rure_compile_set(
510 if (re != NULL) {
517 rure_set_free(re);