Lines Matching refs:match
174 match = re.match(r"^ignore\s+(\w+)\s+(\S+)", line)
176 if match:
177 self.ignore.append((ln, match.group(1), match.group(2)))
181 match = re.match(r"^replace\s+(\S+)\s+(\S+)\s+(\S+)", line)
182 if match:
183 self.replace.append((ln, match.group(1), match.group(2),
184 match.group(3)))
187 match = re.match(r"^namespace\s+(\S+)", line)
188 if match:
189 self.namespace = match.group(1)
217 match = re.match(r"^\:c\:(\w+)\:\`(.+)\`", new)
218 if match:
220 new = match.group(2)
222 match = re.search(r"(\:ref)\:\`(.+)\`", new)
223 if match:
224 reftype = match.group(1)
225 new = match.group(2)
344 match = re.match(r"^\s*([_\w][\w\d_]+)\s*[\,=]?", line)
345 if match:
346 self.store_type(line_no, "symbol", match.group(1))
351 match = re.match(r"^\s*#\s*define\s+([\w_]+)\s+_IO", line)
352 if match:
353 self.store_type(line_no, "ioctl", match.group(1),
357 match = re.match(r"^\s*#\s*define\s+([\w_]+)(\s+|$)", line)
358 if match:
359 self.store_type(line_no, "define", match.group(1))
362 match = re.match(r"^\s*typedef\s+([_\w][\w\d_]+)\s+(.*)\s+([_\w][\w\d_]+);",
364 if match:
365 name = match.group(2).strip()
366 symbol = match.group(3)
371 match = re_enum.match(line)
372 if match:
373 self.store_type(line_no, "enum", match.group(1))
378 match = re_struct.match(line)
379 if match:
380 self.store_type(line_no, "struct", match.group(1))