expandMacro

Expands macro variables contained within a str

  1. T expandMacro(T str, Func mapFunc)
    T
    expandMacro
    (
    bool keepUnmatched
    T
    Func
    )
    (
    in T str
    ,
    Func mapFunc
    )
    if (
    isSomeString!T &&
    isCallable!Func
    &&
    is(ReturnType!Func : bool)
    &&
    ParameterTypeTuple!Func.length >= 1
    &&
    is(T : ParameterTypeTuple!Func[0])
    &&
    (ParameterStorageClassTuple!Func[0] & ParameterStorageClass.ref_) == ParameterStorageClass.ref_
    )
  2. T expandMacro(T str, Func mapFunc)
  3. T expandMacro(T str, MAP map)

Meta