tango.text.xml.DocEntity

License:

BSD style: see license.txt

Version:

Aug 2008: Initial release

Authors:

Kris
T[] fromEntity(T)(T[] src, T[] dst = null) #
Convert XML entity patterns to normal characters
1
2
3
& => ;
&quot => "
etc
void fromEntity(T)(T[] src, void delegate(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)(T[] src, T[] dst = null) #
Convert reserved chars to entities. For example: " => "
Either a slice of the provided output buffer is returned, or the original content, depending on whether there were reserved chars present or not. The output buffer should be sufficiently large to accomodate the converted output, or it will be allocated from the heap instead
void toEntity(T)(T[] src, void delegate(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