+inline static bool IsEndOfLine(const char *p)
+{
+ // in addition to Unix EOL convention we also (but not instead) understand
+ // the DOS one under Windows
+ return
+#ifdef OS_WIN
+ ((*p == '\r') && (*(p + 1) == '\n')) ||
+#endif
+ (*p == '\n');
+}
+