tango.text.xml.DocEntity

License:

BSD style: see license.txt

Version:

Aug 2008: Initial release

Authors:

Kris
T[] fromEntity(T)(const(T)[] src, T[] dst = null)
Convert XML entity patterns to normal characters
        & => ;
        " => "
        etc.
        
void fromEntity(T)(const(T)[] src, scope void delegate(const(T)[]) emit)
Convert XML entity patterns to normal characters
1
2
3
&  ;
&quot  "
etc
This variant does not require an interim workspace, and instead emits directly via the provided delegate
T[] toEntity(T)(const(T)[] src, T[] dst = null)
Convert reserved chars to entities. For example: " => "
A slice of the provided output buffer is returned. The output buffer should be sufficiently large to accomodate the converted output, or it will be allocated from the heap instead
void toEntity(T)(const(T)[] src, scope void delegate(const(T)[]) emit)
Convert reserved chars to entities. For example: " => "
This variant does not require an interim workspace, and instead emits directly via the provided delegate