Lines Matching refs:line
35 """Context manager to read a text file line by line.
39 for line in lines:
40 process(line)
45 for line in input_file:
46 process(line)
48 except that if process(line) raises an exception, then the read_file_lines
49 snippet annotates the exception with the file name and line number.
293 def read_line(self, line):
294 """Parse a C header line and record the PSA identifier it defines if any.
299 m = re.match(self._define_directive_re, line)
345 for line in header_file:
346 m = re.search(self._continued_line_re, line)
349 line = line[:m.start(0)] + cont
350 m = re.search(self._continued_line_re, line)
351 line = re.sub(self._nonascii_re, rb'', line).decode('ascii')
352 self.read_line(line)
476 def parse_header_line(self, line: str) -> None:
477 """Parse a C header line, looking for "#define PSA_xxx"."""
478 m = re.match(self._header_line_re, line)
498 for line in lines:
499 line = re.sub(self._nonascii_re, rb'', line).decode('ascii')
500 self.parse_header_line(line)
525 """Parse a test case data line, looking for algorithm metadata tests."""
540 # Regex matching a *.data line containing a test function call and
547 for line in lines:
548 m = re.match(self._test_case_line_re, line)