• Home
  • Raw
  • Download

Lines Matching full:regex

4 Subject: [PATCH] tests/regex: Perform more tests both with and without
8 glib/tests/regex.c | 101 +++++++++++++++++++++++++++++++++++++++++----
11 diff --git a/glib/tests/regex.c b/glib/tests/regex.c
13 --- a/glib/tests/regex.c
14 +++ b/glib/tests/regex.c
19 - path = g_strdup_printf ("/regex/match-%s/%d", _name, ++total); \
22 + path = g_strdup_printf ("/regex/match-%s-optimized/%d", _name, total); \
24 + path = g_strdup_printf ("/regex/match-%s/%d", _name, total); \
31 + path = g_strdup_printf ("/regex/match-%s/%d", _name, total); \
36 + path = g_strdup_printf ("/regex/match-%s-optimized/%d", _name, total); \
45 - path = g_strdup_printf ("/regex/match/%d", ++total); \
48 + path = g_strdup_printf ("/regex/match-optimized/%d", total); \
50 + path = g_strdup_printf ("/regex/match/%d", total); \
57 + path = g_strdup_printf ("/regex/match/%d", total); \
62 + path = g_strdup_printf ("/regex/match-optimized/%d", total); \
79 - regex = g_regex_new (data->pattern, G_REGEX_DEFAULT, G_REGEX_MATCH_DEFAULT, NULL);
80 + regex = g_regex_new (data->pattern, data->compile_flags,
83 g_assert (regex != NULL);
89 - path = g_strdup_printf ("/regex/match/count/%d", ++total); \
92 + path = g_strdup_printf ("/regex/match/count/%d", total); \
97 + path = g_strdup_printf ("/regex/match/count-optimized/%d", total); \
105 - path = g_strdup_printf ("/regex/match/partial/%d", ++total); \
108 + path = g_strdup_printf ("/regex/match/partial-optimized/%d", total); \
110 + path = g_strdup_printf ("/regex/match/partial%d", total); \
117 + path = g_strdup_printf ("/regex/match/partial%d", total); \
122 + path = g_strdup_printf ("/regex/match/partial-optimized/%d", total); \
139 - regex = g_regex_new (data->pattern, G_REGEX_DEFAULT, G_REGEX_MATCH_DEFAULT, NULL);
140 + regex = g_regex_new (data->pattern, data->compile_flags, G_REGEX_MATCH_DEFAULT, NULL);
142 g_assert (regex != NULL);
148 - path = g_strdup_printf ("/regex/match/subpattern/%d", ++total); \
151 + path = g_strdup_printf ("/regex/match/subpattern/%d", total); \
156 + path = g_strdup_printf ("/regex/match/subpattern-optimized/%d", total); \
164 - path = g_strdup_printf ("/regex/replace/%d", ++total); \
167 + path = g_strdup_printf ("/regex/replace-optimized/%d", total); \
169 + path = g_strdup_printf ("/regex/replace/%d", total); \
176 + path = g_strdup_printf ("/regex/replace/%d", total); \
181 + path = g_strdup_printf ("/regex/replace-optimized/%d", total); \