Lines Matching full:match
182 match = re.match(r"^ignore\s+(\w+)\s+(\S+)", line)
184 if match:
185 self.ignore.append((ln, match.group(1), match.group(2)))
189 match = re.match(r"^replace\s+(\S+)\s+(\S+)\s+(\S+)", line)
190 if match:
191 self.replace.append((ln, match.group(1), match.group(2),
192 match.group(3)))
195 match = re.match(r"^namespace\s+(\S+)", line)
196 if match:
197 self.namespace = match.group(1)
225 match = re.match(r"^\:c\:(\w+)\:\`(.+)\`", new)
226 if match:
227 reftype = f":c:{match.group(1)}"
228 new = match.group(2)
230 match = re.search(r"(\:ref)\:\`(.+)\`", new)
231 if match:
232 reftype = match.group(1)
233 new = match.group(2)
356 match = re.match(r"^\s*([_\w][\w\d_]+)\s*[\,=]?", line)
357 if match:
358 self.store_type(line_no, "symbol", match.group(1))
363 match = re.match(r"^\s*#\s*define\s+([\w_]+)\s+_IO", line)
364 if match:
365 self.store_type(line_no, "ioctl", match.group(1),
369 match = re.match(r"^\s*#\s*define\s+([\w_]+)(\s+|$)", line)
370 if match:
371 self.store_type(line_no, "define", match.group(1))
374 match = re.match(r"^\s*typedef\s+([_\w][\w\d_]+)\s+(.*)\s+([_\w][\w\d_]+);",
376 if match:
377 name = match.group(2).strip()
378 symbol = match.group(3)
383 match = re_enum.match(line)
384 if match:
385 self.store_type(line_no, "enum", match.group(1))
390 match = re_struct.match(line)
391 if match:
392 self.store_type(line_no, "struct", match.group(1))