Lines Matching defs:value
55 /// \return A mapping of (name, value) pairs describing the environment
65 const std::string value = oneenv.substr(pos + 1);
68 allenv[name] = value;
74 /// Gets the value of an environment variable.
78 /// \return The value of the environment variable if it is defined, or none
83 const char* value = std::getenv(name.c_str());
84 if (value == NULL) {
88 LD(F("Environment variable '%s' is '%s'") % name % value);
89 return utils::make_optional(std::string(value));
94 /// Gets the value of an environment variable with a default fallback.
97 /// \param default_value The value to return if the variable is not defined.
99 /// \return The value of the environment variable.
104 const char* value = std::getenv(name.c_str());
105 if (value == NULL) {
110 LD(F("Environment variable '%s' is '%s'") % name % value);
111 return value;
116 /// Sets the value of an environment variable.
119 /// \param val The value to set the environment variable to. May be empty.