method

translate_offset

translate_offset(str, byte_offset)
public

Used to translate an offset from bytes to characters, for instance one received from a regular expression match