Go to the source code of this file.
Functions | |
static | this () |
Variables | |
module mango io | Writer |
import mango convert | Type |
import mango io | Exception |
import mango io | Buffer |
import mango io model | IWriter |
import mango io model mango io model | IBuffer |
import mango io model mango io model mango io model | IConduit |
import mango io | FileConst |
static NewlineWriter | CR |
|
Definition at line 709 of file Writer.d. References CR. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A class to handle newline output. One might reasonably 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. |
|
public newline adaptor Definition at line 707 of file Writer.d. Referenced by Writer::cr(), and this(). |