smjg.libs.util.console.ConsoleOutput Class Reference

The smjg.libs.util.console.ConsoleOutput class used to write out text to the standard output and error streams. More...

List of all members.

Public Member Functions

void write (dchar c)
 Writes out a single Unicode character.
void write (string c)
 Writes out a string.
void writeLine (string c)
 Writes out a string followed by a newline.
void write (string str)
 Writes out a string.
void writeLine (string str)
 Writes out a string followed by a newline.
void writef (...)
 Performs formatted output on the stream.
void writefln (...)
 Performs formatted output on the stream.
void writefx (TypeInfo[] arguments, void *argptr, bool newline=false)
 Performs formatted output on the stream.
void flush ()
 Makes sure all pending output has actually been output.


Detailed Description

The smjg.libs.util.console.ConsoleOutput class used to write out text to the standard output and error streams.

This class buffers any incomplete UTF-8 characters that are passed into it. This makes it suited to applications that transmit UTF-8 text one byte at a time, or in chunks whose boundaries may not coincide with character boundaries.


Member Function Documentation

void smjg.libs.util.console.ConsoleOutput.write ( dchar  c  ) 

Writes out a single Unicode character.

Parameters:
c character to output.
Precondition:
There must be no partial UTF-8 characters remaining in the buffer.

void smjg.libs.util.console.ConsoleOutput.write ( string  c  ) 

Writes out a string.

Parameters:
str the string to output.

void smjg.libs.util.console.ConsoleOutput.writeLine ( string  c  ) 

Writes out a string followed by a newline.

Parameters:
str the string to output.
Precondition:
For this to work correctly, c must not end partway through a UTF-8 character.

void smjg.libs.util.console.ConsoleOutput.write ( string  str  ) 

Writes out a string.

Parameters:
str the string to output.

void smjg.libs.util.console.ConsoleOutput.writeLine ( string  str  ) 

Writes out a string followed by a newline.

Parameters:
str the string to output.
Precondition:
For this to work correctly, c must not end partway through a UTF-8 character.

void smjg.libs.util.console.ConsoleOutput.writef (   ...  ) 

Performs formatted output on the stream.

void smjg.libs.util.console.ConsoleOutput.writefln (   ...  ) 

Performs formatted output on the stream.

void smjg.libs.util.console.ConsoleOutput.writefx ( TypeInfo[]  arguments,
void *  argptr,
bool  newline = false 
)

Performs formatted output on the stream.

void smjg.libs.util.console.ConsoleOutput.flush (  ) 

Makes sure all pending output has actually been output.


The documentation for this class was generated from the following file:
Generated on Sun Sep 13 19:50:35 2009 for Stewart's Utility Library by  doxygen 1.5.4