MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getEnv

Function getEnv

valdi_core/src/valdi_core/cpp/Localization/LocaleResolverLinux.cpp:9–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace Valdi {
8
9static StringBox getEnv(const char* name) {
10 const char* v = std::getenv(name);
11 if (v == nullptr) {
12 return StringBox();
13 }
14 return StringBox::fromCString(v);
15}
16
17std::vector<StringBox> LocaleResolver::getPreferredLocales() {
18 // 1. LC_ALL has absolute priority and is a single locale

Callers 15

getPreferredLocalesMethod · 0.70
getMethodMethod · 0.50
getStaticMethodMethod · 0.50
newObjectMethod · 0.50
getClassMethod · 0.50
operator()Method · 0.50
getUnsafeEnvMethod · 0.50
callMethod · 0.50
callMethod · 0.50
createViewFactoryMethod · 0.50
callActionMethod · 0.50
ViewManager.cppFile · 0.50

Calls 1

StringBoxClass · 0.50

Tested by

no test coverage detected