The string.
Zero-based integer index; s.length addresses the position after the text.
Optionalpretty: false
If true, returns 1-based "row:col"; otherwise 0-based tuple.
[row, col] tuple or "row:col" string.
Calculates the row and column of a UTF-16 code-unit index for diagnostic locations.
The string.
Zero-based integer index; s.length addresses the position after the text.
If true, returns 1-based "row:col"; otherwise 0-based tuple.
[row, col] tuple or "row:col" string.
Calculates the row and column of a UTF-16 code-unit index for diagnostic locations.