io.port
- Output args to writer.
- Output args to io.port.dout.
- Input datas from reader with specified format.
- Input datas from io.port.din.
- Configure text I/O port with following translations:
- Unicode transcoding. If original device element is ubyte, treats as UTF-8 device.
- New-line conversion, replace '\r', '\n', '\r\n' to '\n' for input, and vice versa.
- Buffering. For output, line buffering is done.
- Implementation of text port.
- Provides character input range if original device is source.
- for efficient character input range iteration.
- returns line range.
Example:
foreach (ln; stdin.textPort().lines) {}
- Provides character output range if original device is sink.
- Generates line range over text port.
- Provides line input range.