35 #include "blocxx/BLOCXX_config.h"
42 namespace BLOCXX_NAMESPACE
49 const char *
const strArg,
56 const char* p = ::strchr(strArg,
'=');
59 key = String(strArg,
size_t(p-strArg));
64 inline bool isValidKey(
const String &key)
116 for(
size_t i = 0; envp[
i];
i++)
118 getKeyValue(envp[
i], key, value);
151 const String& notFoundRetVal)
const
154 return (it !=
m_envMap.
end()) ? it->second : notFoundRetVal;
171 size_t klen = it->first.length();
172 size_t vlen = it->second.length();
174 m_envp[
i] =
new char[klen + vlen + 2];
175 ::strcpy(
m_envp[i], it->first.c_str());
177 ::strcpy(m_envp[i]+klen+1, it->second.c_str());
239 getKeyValue(keyValue.
c_str(), key, value);
240 return setVar(key, value);