MCPcopy Create free account
hub / github.com/catboost/catboost / GetEnv

Function GetEnv

util/system/env.cpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56TString GetEnv(const TString& key, const TString& def) {
57 TMaybe<TString> value = TryGetEnv(key);
58 if (value.Defined()) {
59 return *std::move(value);
60 }
61 return def;
62}
63
64void SetEnv(const TString& key, const TString& value) {
65 bool isOk = false;

Callers 15

GetUsernameFunction · 0.70
Y_UNIT_TESTFunction · 0.70
dot_product.cppFile · 0.50
GetAddressOfFunction · 0.50
TUserPollerMethod · 0.50
GetCurrentJobIdMethod · 0.50
FindExactMethod · 0.50
FindMatchMethod · 0.50
TParNetworkSettingsMethod · 0.50
TCompressionHolderMethod · 0.50
CalcIsTTYMethod · 0.50
RunMainMethod · 0.50

Calls 3

TryGetEnvFunction · 0.85
moveFunction · 0.50
DefinedMethod · 0.45

Tested by 1

TPortManagerImplMethod · 0.40