pub fn utf16_code_units(s: &str) -> u32
Count the UTF-16 code units in a string. Needed for LSP Position.character calculations, which use UTF-16 offsets.
Position.character