Function normalizeEOLs

Normalize end of line style - convert to '\n'

T normalizeEOLs(T) (
  T s
)
if (isSomeString!T);

Example

assert("hello\nworld" == normalizeEOLs("hello\r\nworld"));
assert("hello\nworld" == normalizeEOLs("hello\rworld"));
assert("hello\n\nworld" == normalizeEOLs("hello\n\rworld"));
assert("hello\nworld\n" == normalizeEOLs("hello\nworld\r"));