Lines Matching refs:re
7 import re
36 text = re.sub(r'&', '&', text)
37 text = re.sub(r'<', '<', text)
38 text = re.sub(r'>', '>', text)
53 text = re.sub(
69 m = re.search(r'Usable as: Any Matcher[\s\n]*$', comment, re.S)
73 m = re.match(r'^(.*)Matcher<([^>]+)>\s*,?[\s\n]*$', comment, re.S)
75 if re.search(r'Usable as:\s*$', comment):
85 comment = re.sub(r'^\\[^\s]+\n', r'', comment, flags=re.M)
87 comment = re.sub(r'\\[^\s]+\s+', r'', comment)
92 args = re.sub(r'internal::', r'', args)
93 args = re.sub(r'const\s+', r'', args)
94 args = re.sub(r'&', r' ', args)
95 args = re.sub(r'(^|\s)M\d?(\s)', r'\1Matcher<*>\2', args)
136 m = re.match(r""".*Variadic(?:DynCast)?AllOfMatcher\s*<
139 \s*([^\s;]+)\s*;\s*$""", declaration, flags=re.X)
149 m = re.match(""".*AST_TYPE_MATCHER\(
152 \)\s*;\s*$""", declaration, flags=re.X)
161 m = re.match(""".*AST_TYPE(LOC)?_TRAVERSE_MATCHER\(
164 \)\s*;\s*$""", declaration, flags=re.X)
178 m = re.match(r"""^\s*AST_(POLYMORPHIC_)?MATCHER(_P)?(.?)(?:_OVERLOAD)?\(
186 \)\s*{\s*$""", declaration, flags=re.X)
206 m = re.match(r"""^\s*(.*)\s+
209 \)\s*{""", declaration, re.X)
213 m = re.match(r'.*\s+internal::(Bindable)?Matcher<([^>]+)>$', result)
263 m = re.search(r'is_base_of<([^,]+), NodeType>', line)
268 comment += re.sub(r'/+\s?', '', line) + '\n'
287 reference = re.sub(r'<!-- START_DECL_MATCHERS.*END_DECL_MATCHERS -->',
288 '%s', reference, flags=re.S) % node_matcher_table
289 reference = re.sub(r'<!-- START_NARROWING_MATCHERS.*END_NARROWING_MATCHERS -->',
290 '%s', reference, flags=re.S) % narrowing_matcher_table
291 reference = re.sub(r'<!-- START_TRAVERSAL_MATCHERS.*END_TRAVERSAL_MATCHERS -->',
292 '%s', reference, flags=re.S) % traversal_matcher_table