class Prism::Source

def character_offset(byte_offset)

Return the character offset for the given byte offset.
def character_offset(byte_offset)
  source.byteslice(0, byte_offset).length
end