Get the index of the start or end of the line — from index of any character on the same line.
See Implementation
Get the index of the start or end of the line — from index of any character on the same line.