Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

IStringEncoder Struct Reference

List of all members.

Public Member Functions

void char8 (void *src, uint count)
void char16 (void *src, uint count)
void char32 (void *src, uint count)

Detailed Description

Use instances of IStringEncoder to convert between character 'sizes' and to apply the various character encodings. These may throw an exception if they don't support the requested type. For example, an exception would/should be thrown where a ASCII-based IStringEncoder is requested to write a dchar[] instead of a char[].

An appropriate IStringEncoder should be attached to each IWriter, and thus be available for subsequent use. A raw binary implementation is attached by default (no encoding).

Note that the 'count' argument is the number of bytes provided in the 'src' buffer. The decoders are expected to convert exactly that amount, or throw an exception.

Definition at line 90 of file IWriter.d.


Member Function Documentation

void char8 void *  src,
uint  count
 

Referenced by AbstractWriter::setStringEncoder(), testDisplay(), and testTextWriter().

void char16 void *  src,
uint  count
 

Referenced by AbstractWriter::setStringEncoder(), testDisplay(), and testTextWriter().

void char32 void *  src,
uint  count
 

Referenced by AbstractWriter::setStringEncoder(), testDisplay(), and testTextWriter().


The documentation for this struct was generated from the following file:
Generated on Sun Nov 7 19:07:07 2004 for Mango by doxygen 1.3.6