27 return nowide::getenv( name , default_ ) ;
32 return G::Path( nowide::getenv( name , default_.
str() ) ) ;
37 return Environment( {} ) ;
42 nowide::putenv( name , value ) ;
Holds a set of environment variables and also provides static methods to wrap getenv() and putenv().
static void put(const std::string &name, const std::string &value)
Sets the environment variable value.
static std::string get(const std::string &name, const std::string &default_)
Returns the environment variable value or the given default.
static G::Path getPath(const std::string &name, const G::Path &={})
Returns the environment variable value as a G::Path object.
static Environment minimal(bool sbin=false)
Returns a minimal, safe set of environment variables.
A Path object represents a file system path.
std::string str() const
Returns the path string.
Contains inline functions that convert to and from UTF-8 strings in order to call wide-character "W()...