class RDoc::Markup::Parser::MyStringScanner

def [](i)

def [](i)
  @s[i]
end

def eos?

def eos?
  @s.eos?
end

def initialize(input)

def initialize(input)
  @line = @column = 0
  @s = StringScanner.new input
end

def matched

def matched
  @s.matched
end

def newline!

def newline!
  @column = 0
  @line += 1
end

def pos

def pos
  [@column, @line]
end

def scan(re)

def scan(re)
  ret = @s.scan(re)
  @column += ret.length if ret
  ret
end

def unscan(s)

def unscan(s)
  @s.pos -= s.bytesize
  @column -= s.length
end