throwIfWindowsNewline

throwIfWindowsLineNewline throws an exception if the 'line' argument ends with a Windows/DOS line ending. This is used by TSV Utilities tools to detect Window/DOS line endings and terminate processing with an error message to the user.

The 'nlWasRemoved' template parameter can be used if a Unix newline character was already removed. In this case the CR character from a Windows CRLF remains and can be detected. This is useful when reading files in binary mode, stripping Unix newlines.

void
throwIfWindowsNewline
(
NewlineWasRemoved nlWasRemoved = Yes.newlineWasRemoved
)
(
const char[] line
,
const char[] filename
,
size_t lineNum
)

Meta