pyrser/parsing/stream.py
def incpos(self, length: int=1) -> int:
        """Increment the cursor to the next character."""
        if length < 0:
            raise ValueError("length must be positive")
        i = 0
        while (i < length):
            if self._cursor.index < self._len:
                if self.peek_char == '\n':
                    self._cursor.step_next_line()
                self._cursor.step_next_char()
            i += 1
        return self._cursor.index
def incpos(self, length: int=1) -> int:
        if length < 0:
            raise ValueError("length must be positive")
        i = 0
        while (i < length):
            if self._cursor.index < self._len:
                if self.peek_char == '\n':
                    self._cursor.step_next_line()
                self._cursor.step_next_char()
            i += 1
        return self._cursor.index
def incpos ( self , length : int = 1 ) -> int : if length < 0 : raise ValueError ( "length must be positive" ) i = 0 while ( i < length ) : if self . _cursor . index < self . _len : if self . peek_char == '\n' : self . _cursor . step_next_line ( ) self . _cursor . step_next_char ( ) i += 1 return self . _cursor . index
Increment the cursor to the next character.
Increment the cursor to the next character .