core :: FlatText :: fetch_char_at
Char
at index
in self
WARNING: Use at your own risks as no bound-checking is done
# Gets a `Char` at `index` in `self`
#
# WARNING: Use at your own risks as no bound-checking is done
fun fetch_char_at(index: Int): Char do
var i = char_to_byte_index(index)
var items = _items
var b = items[i]
if b & 0x80 == 0x00 then return b.code_point
return items.char_at(i)
end
lib/core/text/flat.nit:375,2--384,4
redef fun fetch_char_at(i) do return _items[i + _first_byte].code_point
lib/core/text/flat.nit:732,2--72