Home | History | Annotate | Download | only in tests

Lines Matching refs:regex

99   GRegex *regex;
103 regex = g_regex_new (pattern, compile_opts, match_opts, NULL);
104 if (regex == NULL)
111 if (!streq (g_regex_get_pattern (regex), pattern))
115 g_regex_unref (regex);
119 g_regex_unref (regex);
138 GRegex *regex;
143 regex = g_regex_new (pattern, compile_opts, 0, &error);
145 if (regex != NULL)
149 g_regex_unref (regex);
216 GRegex *regex;
222 regex = g_regex_new (pattern, compile_opts, match_opts, NULL);
223 match = g_regex_match_full (regex, string, string_len,
232 g_regex_unref (regex);
238 match = g_regex_match (regex, string, match_opts2, NULL);
243 g_regex_unref (regex);
248 g_regex_unref (regex);
288 GRegex *regex;
317 regex = g_regex_new (pattern, 0, 0, NULL);
319 g_regex_match_full (regex, string, string_len,
331 g_assert (regex == g_match_info_get_regex (match_info));
380 g_regex_unref (regex);
444 GRegex *regex;
451 regex = g_regex_new (pattern, 0, 0, NULL);
453 g_regex_match_full (regex, string, -1, start_position,
464 g_regex_unref (regex);
483 GRegex *regex;
489 regex = g_regex_new (pattern, 0, 0, NULL);
491 g_regex_match (regex, string, G_REGEX_MATCH_PARTIAL, &match_info);
495 g_regex_unref (regex);
502 g_regex_unref (regex);
509 g_regex_unref (regex);
514 g_regex_unref (regex);
537 GRegex *regex;
545 regex = g_regex_new (pattern, 0, 0, NULL);
546 g_regex_match_full (regex, string, -1, start_position, 0, &match_info, NULL);
554 g_regex_unref (regex);
564 g_regex_unref (regex);
569 g_regex_unref (regex);
595 GRegex *regex;
603 regex = g_regex_new (pattern, flags, 0, NULL);
605 g_regex_match_full (regex, string, -1, start_position, 0, &match_info, NULL);
612 g_regex_unref (regex);
622 g_regex_unref (regex);
627 g_regex_unref (regex);
658 GRegex *regex;
684 regex = g_regex_new (pattern, 0, 0, NULL);
685 g_regex_match (regex, string, 0, &match_info);
718 g_regex_unref (regex);
863 GRegex *regex;
888 regex = g_regex_new (pattern, 0, 0, NULL);
889 tokens = g_regex_split_full (regex, string, -1, start_position,
921 g_regex_unref (regex);
934 GRegex *regex;
958 regex = g_regex_new (pattern, 0, 0, NULL);
959 tokens = g_regex_split (regex, string, 0);
990 g_regex_unref (regex);
1107 GRegex *regex = NULL;
1118 regex = g_regex_new (pattern, raw ? G_REGEX_RAW : 0, 0, NULL);
1119 g_regex_match (regex, string, 0, &match_info);
1128 g_regex_unref (regex);
1134 if (regex)
1135 g_regex_unref (regex);
1156 GRegex *regex;
1162 regex = g_regex_new (pattern, 0, 0, NULL);
1163 res = g_regex_replace (regex, string, -1, start_position, replacement, 0, NULL);
1168 g_regex_unref (regex);
1173 g_regex_unref (regex);
1194 GRegex *regex;
1200 regex = g_regex_new (pattern, 0, 0, NULL);
1201 res = g_regex_replace_literal (regex, string, -1, start_position,
1207 g_regex_unref (regex);
1212 g_regex_unref (regex);
1231 GRegex *regex;
1237 regex = g_regex_new (pattern, 0, 0, NULL);
1238 num = g_regex_get_string_number (regex, name);
1239 g_regex_unref (regex);
1300 GRegex *regex;
1331 regex = g_regex_new (pattern, 0, 0, NULL);
1332 match_ok = g_regex_match_all_full (regex, string, string_len, start_position,
1396 g_regex_unref (regex);
1408 GRegex *regex;
1438 regex = g_regex_new (pattern, 0, 0, NULL);
1439 match_ok = g_regex_match_all (regex, string, 0, &match_info);
1502 g_regex_unref (regex);