toPosition
Converts an integer representing a character offset to a Position object, which includes line and column information within the given content.
Return
A Position object that represents the line and column corresponding to the given offset.
Parameters
content
The multi-line text content in which the position is calculated.