Aug 2008: Initial release
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
|
& ;
" "
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