parameters: (self, regex)
docstring: Find the first line matching regex and return the match object
docstring_summary: Find the first line matching regex and return the match object
docstring_tokens: Find the first line matching regex and return the match object
function: def _match(self, regex):
          """Find the first line matching regex and return the match object"""
          cregex = re.compile(regex)
          for line in self.content.splitlines():
              match = cregex.match(line)
              if match:
                  return match
          raise Exception('No "{0}" line in {1}.cpp'.format(
              regex_to_error_msg(regex),
              self.name
          ))
function_tokens: def _match ( self , regex ) : cregex = re . compile ( regex ) for line in self . content . splitlines ( ) : match = cregex . match ( line ) if match : return match raise Exception ( 'No "{0}" line in {1}.cpp' . format ( regex_to_error_msg ( regex ) , self . name ) )