Lines Matching refs:line
102 for line in inf:
103 match = YMD_MATCHER.match(line)
112 match = YMD_LINE_MATCHER.match(line)
141 for line in input_file:
142 if APACHE_MATCHER.match(line):
144 if BOOST_MATCHER.match(line):
146 if MIT_MATCHER.match(line):
148 if BSD_MATCHER.match(line):
150 if MPL_MATCHER.match(line):
152 if UNLICENSE_MATCHER.match(line):
154 if ZERO_BSD_MATCHER.match(line):
156 if ZLIB_MATCHER.match(line):
296 def found_line(file_name, line): argument
299 return line in input_file
320 def toml2json(line): argument
322 if line.startswith("\"\"\""):
325 line = line[1:-1].replace("\\\\", "\n").replace("\\b", "")
326 line = line.replace("\\t", " ").replace("\\n", " ").replace("\\f", " ")
327 line = line.replace("\\r", "").replace("\\\"", "\"").replace("\n", "\\")
329 line = line.replace("’", "'")
331 return json.dumps(line.strip()).replace("'", "\\'")
341 for line in toml:
342 if not name and NAME_MATCHER.match(line):
343 name = NAME_MATCHER.match(line).group(1)
344 elif not version and VERSION_MATCHER.match(line):
345 version = VERSION_MATCHER.match(line).group(1)
346 elif not description and DESCRIPTION_MATCHER.match(line):
347 description = toml2json(DESCRIPTION_MATCHER.match(line).group(1))
348 elif not cargo_license and LICENSE_MATCHER.match(line):
349 cargo_license = LICENSE_MATCHER.match(line).group(1)