CfParser.substituteEnvVar

string substituteEnvVar(string raw, Location loc) @safe

Substitutes a single environment variable reference.

Parses ${VAR}, ${VAR:-default}, or ${VAR:?message} and returns the substituted value.

Parameters

rawThe raw token value including ${...}
locSource location for error reporting

Returns

The substituted value.