Lines Matching full:re

25 import re
88 re.compile(r"^\s*enum\s+([\w_]+)\s*\{"),
89 re.compile(r"^\s*enum\s+([\w_]+)\s*$"),
90 re.compile(r"^\s*typedef\s*enum\s+([\w_]+)\s*\{"),
91 re.compile(r"^\s*typedef\s*enum\s+([\w_]+)\s*$"),
94 re.compile(r"^\s*struct\s+([_\w][\w\d_]+)\s*\{"),
95 re.compile(r"^\s*struct\s+([_\w][\w\d_]+)$"),
96 re.compile(r"^\s*typedef\s*struct\s+([_\w][\w\d_]+)\s*\{"),
97 re.compile(r"^\s*typedef\s*struct\s+([_\w][\w\d_]+)$"),
118 # We're calling each definition inside an enum as "symbol"
174 match = re.match(r"^ignore\s+(\w+)\s+(\S+)", line)
181 match = re.match(r"^replace\s+(\S+)\s+(\S+)\s+(\S+)", line)
187 match = re.match(r"^namespace\s+(\S+)", line)
217 match = re.match(r"^\:c\:(\w+)\:\`(.+)\`", new)
222 match = re.search(r"(\:ref)\:\`(.+)\`", new)
309 if re.search(r"/\*.*", line):
313 line = re.sub(r"(//.*)", "", line)
316 if re.search(r".*\*/", line):
325 # and there's no need to use re.DOTALL for the logic below
327 line = re.sub(r"(/\*.*\*/)", "", line)
344 match = re.match(r"^\s*([_\w][\w\d_]+)\s*[\,=]?", line)
351 match = re.match(r"^\s*#\s*define\s+([\w_]+)\s+_IO", line)
357 match = re.match(r"^\s*#\s*define\s+([\w_]+)(\s+|$)", line)
362 match = re.match(r"^\s*typedef\s+([_\w][\w\d_]+)\s+(.*)\s+([_\w][\w\d_]+);",
408 text = re.sub(r"\s+$", "", self.data) + "\n"
409 text = re.sub(r"\n\s+\n", "\n\n", text)
412 text = re.sub(r"([\_\`\*\<\>\&\\\\:\/\|\%\$\#\{\}\~\^])", r"\\\1", text)
415 text = re.sub(r"DEPRECATED", "**DEPRECATED**", text)
424 symbol = re.escape(re.sub(r"([\_\`\*\<\>\&\\\\:\/])", r"\\\1", symbol))
425 text = re.sub(fr'{start_delim}{symbol}{end_delim}',
429 text = re.sub(r"\\ ([\n ])", r"\1", text)
430 text = re.sub(r" \\ ", " ", text)