core.internal.parseoptions
parse configuration options
Copyright
Copyright Digital Mars 2017
struct MemVal
Types 4
aliasrt_configCallBack = string delegate(string) @nogc nothrow
aliasfn_configOption = string function(string opt, scope rt_configCallBack dg, bool reverse) @nogc nothrow
aliasrt_configOption = externDFunc!("rt.config.rt_configOption", fn_configOption)
structMemVal
UDA for field treated as memory value
Functions 4
fn
bool initConfigOptions(CFG)(ref CFG cfg, string cfgname) @nogc nothrowinitialize members of struct CFG from rt_config optionsfn
bool parseOptions(CFG)(ref CFG cfg, string opt) @nogc nothrowinitialize members of struct CFG from a string of sub-options.fn
bool rt_parseOption(T)(const(char)[] optname, ref inout(char)[] str, ref T res, const(char)[] errName) @nogc nothrowParses an individual option `optname` value from a provided string `str`. The option type is given by the type `T` of the field `res` to which the parsed value will be written too. In case of an er...Variables 3
var
bool rt_envvars_enabledvar
bool rt_cmdline_enabledvar
string[] rt_options