BSD style: see
license.txt
Aug 2008: Initial release
Kris
- T[] fromEntity(T)(T[] src, T[] dst = null) ¶#
-
Convert XML entity patterns to normal characters
1
2
3
| & => ;
" => "
etc
|
- void fromEntity(T)(T[] src, void delegate(T[]) emit) ¶#
-
Convert XML entity patterns to normal characters
1
2
3
| & => ;
" => "
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