Go to the documentation of this file.
24 : m_opaque_up(
clone(rhs.m_opaque_up)) {
104 auto split = llvm::StringRef(name_and_value).split(
'=');
105 m_opaque_up->insert_or_assign(split.first.str(), split.second.str());
113 for (
size_t i = 0; i < entries.
GetSize(); i++) {
void AppendString(const char *str)
const lldb::SBEnvironment & operator=(const lldb::SBEnvironment &rhs)
lldb_private::Environment & ref() const
const char * AsCString(const char *value_if_empty=nullptr) const
Get the string value as a C string.
void Clear()
Delete all the environment variables.
const char * Get(const char *name)
Return the value of a given environment variable.
const char * GetStringAtIndex(size_t idx)
std::unique_ptr< T > clone(const std::unique_ptr< T > &src)
SBStringList GetEntries()
Return all environment variables contained in this object.
string(SUBSTRING ${p} 10 -1 pStripped) if($
bool Unset(const char *name)
Unset an environment variable if exists.
const char * GetValueAtIndex(size_t index)
Return the value of the environment variable at a given index from the internal list of environment v...
std::unique_ptr< lldb_private::Environment > m_opaque_up
void PutEntry(const char *name_and_value)
Add or replace an existing environment variable.
A class that represents a running process on the host machine.
const char * GetNameAtIndex(size_t index)
Return the name of the environment variable at a given index from the internal list of environment va...
#define LLDB_INSTRUMENT_VA(...)
void SetEntries(const SBStringList &entries, bool append)
Update this object with the given environment variables.
bool Set(const char *name, const char *value, bool overwrite)
Set the value of a given environment variable.