Logo Search packages:      
Sourcecode: yapps2 version File versions  Download package

def runtime::Scanner::get_column_number (   self  ) 

Get the column number of the current position in the input text.

Definition at line 95 of file runtime.py.

00095                                :
        """Get the column number of the current position in the input text."""
        s = self.get_input_scanned()
        i = s.rfind('\n') # may be -1, but that's okay in this case
        return len(s) - (i+1)
    
    def get_input_scanned(self):


Generated by  Doxygen 1.6.0   Back to index