Lines Matching defs:EnvVarWrapper
128 struct EnvVarWrapper { struct
130 EnvVarWrapper(std::string const& name) noexcept : name(name) { in EnvVarWrapper() argument
135 …EnvVarWrapper(std::string const& name, std::string const& value) noexcept : name(name), cur_value(… in EnvVarWrapper() function
139 ~EnvVarWrapper() noexcept { in ~EnvVarWrapper() argument
148 EnvVarWrapper& operator=(const EnvVarWrapper&) = delete; argument
150 void set_new_value(std::string const& value) { in set_new_value()
154 void add_to_list(std::string const& list_item) { in add_to_list()
162 void add_to_list(std::wstring const& list_item) { in add_to_list()
170 void remove_value() const { remove_env_var(); } in remove_value()
171 const char* get() const { return name.c_str(); } in get()
172 const char* value() const { return cur_value.c_str(); } in value()
176 std::string cur_value;
177 std::string initial_value;
183 const char OS_ENV_VAR_LIST_SEPARATOR = ';';
186 const char OS_ENV_VAR_LIST_SEPARATOR = ':';