The byte offset in text of a 1-based character position (what an ErrorResponse's P field
counts, in characters, not bytes). Past the end, the end.
- text: the statement.
- character: the position, counted from 1.
byte_of_character :: (text: string, character: s64) -> s64
The byte offset in text of a 1-based character position (what an ErrorResponse's P field
counts, in characters, not bytes). Past the end, the end.
Parameters
- text: string
- the statement.
- character: s64
- the position, counted from 1.
Returns
- s64