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. TC[] escape(T[] src, TC[] dst)
  2. void escape(T[] src, void delegate(TC[]) emit)
    void
    escape
    (
    T
    TC
    )
    (
    T[] src
    ,
    scope void delegate
    (
    TC[]
    )
    emit
    )

Meta