core.internal.parseoptions

parse configuration options

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

fnstring[] rt_args() extern(C) @nogc nothrow @system
fnbool initConfigOptions(CFG)(ref CFG cfg, string cfgname) @nogc nothrowinitialize members of struct CFG from rt_config options
fnbool parseOptions(CFG)(ref CFG cfg, string opt) @nogc nothrowinitialize members of struct CFG from a string of sub-options.
fnbool 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

varbool rt_envvars_enabled
varbool rt_cmdline_enabled
varstring[] rt_options