This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
char_pos(byte_offset)
public
The character offset for the input string at the given byte_offset
# File lib/rdoc/markup/parser.rb, line 325
def char_pos byte_offset
if @have_byteslice then
@input.byteslice(0, byte_offset).length
elsif @have_encoding then
matched = @binary_input[0, byte_offset]
matched.force_encoding @input_encoding
matched.length
else
byte_offset
end
end