MCPcopy Create free account
hub / github.com/comaps/comaps / GetDefaultStr

Function GetDefaultStr

libs/kml/type_utils.hpp:94–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92int8_t constexpr kDefaultLangCode = 0;
93
94inline std::string GetDefaultStr(LocalizableString const & str)
95{
96 return (str.empty() || str.find(kDefaultLangCode) == str.end()) ? "" : str.at(kDefaultLangCode);
97}
98
99inline void SetDefaultStr(LocalizableString & localizableStr, std::string const & str)
100{

Callers 7

DataMethod · 0.85
GetFileNameForExportFunction · 0.85
SetUniqueNameMethod · 0.85
CheckBookmarksFunction · 0.85
UNIT_TESTFunction · 0.85
UNIT_CLASS_TESTFunction · 0.85
UNIT_TESTFunction · 0.85

Calls 4

atMethod · 0.80
emptyMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by 4

CheckBookmarksFunction · 0.68
UNIT_TESTFunction · 0.68
UNIT_CLASS_TESTFunction · 0.68
UNIT_TESTFunction · 0.68