MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / LoadStringOrDefault

Method LoadStringOrDefault

src/Utilities/GeneralUtils.cpp:38–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38const wchar_t* GeneralUtils::LoadStringOrDefault(const char* key, const wchar_t* defaultValue)
39{
40 if (GeneralUtils::IsValidString(key))
41 return StringTable::LoadString(key);
42 else
43 return defaultValue;
44}
45
46const wchar_t* GeneralUtils::LoadStringUnlessMissing(const char* key, const wchar_t* defaultValue)
47{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected