escape

Convert reserved chars to escaped ones. For example: \ => \\

This variant does not require an interim workspace, and instead emits directly via the provided delegate

  1. T[] escape(const(T)[] src, T[] dst)
  2. void escape(const(T)[] src, void delegate(const(T)[]) emit)
    void
    escape
    (
    T
    )
    (
    const(T)[] src
    ,
    scope void delegate
    (
    const(T)[]
    )
    emit
    )

Meta