A class to handle newline output. One might reasonable expect to emit a char[] for newlines; FileConst.NewlineString for example. Turns out that it's much more efficient to intercept line-breaks when they're implemented in a more formal manner (such as this).
For example, ColumnWriter() and TextWriter() both must intercept newline output so they can adjust formatting appropriately. It is much more efficient for such writers to intercept the IWritable put() method instead of scanning each char[] for the various \n combinations.
Please use the INewlineWriter interface for emitting newlines.
Definition at line 661 of file Writer.d. |