def find_args(self, text, start=None):
if start is None:<EOL><INDENT>start = <NUM_LIT:0><EOL><DEDENT>first_occurance = text.find(self.__begin, start)<EOL>if first_occurance == -<NUM_LIT:1>:<EOL><INDENT>return self.NOT_FOUND<EOL><DEDENT>previous_found, found = first_occurance + <NUM_LIT:1>, <NUM_LIT:0><EOL>while True:<EOL><INDENT>found = self.__find_args_separator(text, previous_found)<EOL>if found == -<NUM_LIT:1>:<EOL><INDENT>return self.NOT_FOUND<EOL><DEDENT>elif text[found] == self.__end:<EOL><INDENT>return first_occurance, found<EOL><DEDENT>else:<EOL><INDENT>previous_found = found + <NUM_LIT:1><EOL><DEDENT><DEDENT>
implementation details