Expand description
Shared span-to-Location conversion helpers used by format modules.
Functionsยง
- char_
count - UTF-8 character count in
text[start_byte..end_byte]. - is_
single_ line - Whether
bytescontain no newline (single-line document). - line_
column - 1-based line and UTF-8 character column at
byte_offsetintext. - line_
column_ from_ line - 1-based line and UTF-8 character column at
byte_offsetintext.