long LineEndPosition (long line, Bool visible = TRUE)
Returns the last position of the given line. If the line ends with invisible items (such as a carriage return) and visible is TRUE, they are skipped over.