Home | History | Annotate | Download | only in tools

Lines Matching refs:re

7 import re
17 return re.sub(pattern, '%s', text, flags=re.S) % replacement
20 text = re.sub(r'([^/\*])\*', r'\1\\*', text)
21 text = re.sub(r'<tt>\s*(.*?)\s*<\/tt>', r'``\1``', text)
22 text = re.sub(r'\\c ([^ ,;\.]+)', r'``\1``', text)
23 text = re.sub(r'\\\w+ ', '', text)
28 s = re.sub(r'\n([^\n])', '\n' + indent + '\\1', text, flags=re.S)
85 re.sub('.*_', '', self.name),
125 name = re.sub(r'enum\s+(\w+)\s*\{', '\\1', line)
129 name = re.sub(r'struct\s+(\w+)\s*\{', '\\1', line)
133 field_type, field_name = re.match(r'([<>:\w(,\s)]+)\s+(\w+);',