bool isEOL(int x) { switch (x) { case char.LF: case char.CR: case char.LS: case char.PS: case char.NULL: return true; default: return false; } }