This entire condition can be simplified to `src[i] == '\r' || src[i] == '\n'`