Lines Matching refs:re

18 import re
28 "modules and re-run this tool."
36 start_token = re.compile(r"#define _EVDEVK.*")
37 end_token = re.compile(r"#undef _EVDEVK\n")
51 pattern = re.compile(r"^#define\s+(?P<name>\w+)\s+(0x[0-9A-Fa-f]+)")
55 match = re.match(pattern, line)
79 filter(lambda v: re.match(r"^v[2-6]\.[0-9]+(\.[0-9]+)?$", v), tags)
187 reserved_range = re.compile(r"#define.*0x10081.*")
188 normal_range = re.compile(r"#define.*0x1008.*")
191 expected_pattern = re.compile(
195 expected_comment_pattern = re.compile(
200 define = re.compile(r"^#define .*")
201 name_pattern = re.compile(r"#define (XF86XK_[^\s]*)")
202 space_check = re.compile(r"#define \w+(\s+)[^\s]+(\s+)")
203 hex_pattern = re.compile(r".*0x([a-f0-9]+).*", re.I)
204 comment_format = re.compile(r".*/\* ([^\s]+)?\s+(\w+)")
205 kver_format = re.compile(r"v[2-6]\.[0-9]+(\.[0-9]+)?")
225 if re.match(start_token, line):
230 if re.match(reserved_range, line):
232 match = re.match(name_pattern, line)
237 if re.match(end_token, line):
243 if not re.match(define, line):
244 match = re.match(expected_comment_pattern, line)
260 elif re.match(hex_pattern, line):
266 if re.match(normal_range, line):
269 match = re.match(name_pattern, line)
277 match = re.match(hex_pattern, line)
283 spaces = re.match(space_check, line)
289 comment = re.match(comment_format, line)
293 if kver and not re.match(kver_format, kver):
306 match = re.match(expected_pattern, line)
346 # what the format of the field is. Specifically, we're searching for
348 pattern = re.compile(r".*_EVDEVK\((0x[0-9A-Fa-f]{3})\).*")
370 if re.match(start_token, line):
375 if re.match(r"#undef _EVDEVK\n", line):
379 match = re.match(pattern, line)