ByteOffsetToRunePosition converts a byte offset in sql to a 1-based line:column where column is measured in Unicode code points (runes), matching storepb.Position semantics.
(sql string, byteOffset int)
| 45 | // ByteOffsetToRunePosition converts a byte offset in sql to a 1-based line:column |
| 46 | // where column is measured in Unicode code points (runes), matching storepb.Position semantics. |
| 47 | func ByteOffsetToRunePosition(sql string, byteOffset int) *storepb.Position { |
| 48 | return base.NewByteOffsetPositionMapper(sql).Position(byteOffset) |
| 49 | } |