module

Hecr::LSP::Utf16

LSP positions count UTF-16 code units; Crystal indexes characters.

Instance methods

from_char_index(line : String, char_index : Int32) : Int32
Source
to_char_index(line : String, utf16 : Int32) : Int32
Source