Detect the line ending `CR`/`LF`/`CRLF` and switch to simplified scanning code
Detect the line ending
CR/LF/CRLFand switch to simplified scanning code