INNER CODE UNIT · Python

__str__

Squirrel-Engine/Squirrel-Engine · googletest/googlemock/scripts/pump.py:114

  def __str__(self):
    if self == Eof():
      return 'EOF'
    else:
      return '%s(%s)' % (self.line + 1, self.column)

  def __add__(self, offset):
    return Cursor(self.line, self.column + offset)

  def __sub__(self, offset):
    return Cursor(self.line, self.column - offset)

  def Clone(self):
    """Returns a copy of self."""

    return Cursor(self.line, self.column)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…