The string.
Zero-based character index (s.length returns position after last char).
Optionalpretty: falseIf true, returns 1-based "row:col"; otherwise 0-based tuple.
[row, col] tuple or "row:col" string.
Calculates the row and column of a character index in a string.
The string.
Zero-based character index (s.length returns position after last char).
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 character index in a string.