def match(self, subsetLines, offsetOfSubset, fileName):
for (offset,l) in enumerate(subsetLines):<EOL><INDENT>for literal in self.literals:<EOL><INDENT>column = l.find(literal.Literal)<EOL>if column != -<NUM_LIT:1>:<EOL><INDENT>truePosition = offset + offsetOfSubset<EOL>_logger.debug('<STR_LIT>'.format(line=str(truePosition+ <NUM_LIT:1>), col=column))<EOL>_logger.debug('<STR_LIT>'.format(l))<EOL>self.failed = True<EOL>self.matchLocation = CheckFileParser.FileLocation(fileName, truePosition +<NUM_LIT:1>)<EOL>raise DirectiveException(self)<EOL><DEDENT><DEDENT><DEDENT>
Search through lines for match.
Raise an Exception if a match