escape

Convert reserved chars to escaped ones. 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 will be expanded as necessary

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

Meta