1#include <Foundation/FoundationInternal.h>
2PL_FOUNDATION_INTERNAL_HEADER
4#include <Foundation/System/EnvironmentVariableUtils.h>
10 const char* value = getenv(sName.
GetData(tmp));
11 return value !=
nullptr ? value : sDefault;
23bool plEnvironmentVariableUtils::IsVariableSetImpl(
plStringView sName)
26 return getenv(sName.
GetData(tmp)) !=
nullptr;
32 if (unsetenv(sName.
GetData(tmp)) == 0)
plStringBuilder is a class that is meant for creating and modifying strings.
Definition StringBuilder.h:35
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
const char * GetData(plStringBuilder &ref_sTempStorage) const
Returns the data as a zero-terminated string.
Definition StringView.cpp:15
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54