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

Function SetDefaultStr

libs/kml/type_utils.hpp:99–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99inline void SetDefaultStr(LocalizableString & localizableStr, std::string const & str)
100{
101 if (str.empty())
102 {
103 localizableStr.erase(kDefaultLangCode);
104 return;
105 }
106
107 localizableStr[kDefaultLangCode] = str;
108}
109
110bool IsEqual(m2::PointD const & lhs, m2::PointD const & rhs);
111bool IsEqual(geometry::PointWithAltitude const & lhs, geometry::PointWithAltitude const & rhs);

Calls 2

emptyMethod · 0.45
eraseMethod · 0.45

Tested by 3

UNIT_TESTFunction · 0.68
UNIT_CLASS_TESTFunction · 0.68
UNIT_CLASS_TESTFunction · 0.68