MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / getMapFormatList

Method getMapFormatList

radiantcore/map/format/MapFormatManager.cpp:88–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88std::set<MapFormatPtr> MapFormatManager::getMapFormatList(const std::string& extension)
89{
90 std::set<MapFormatPtr> list;
91 std::string extLower = string::to_lower_copy(extension);
92
93 for (auto it = _mapFormats.find(extLower);
94 it != _mapFormats.upper_bound(extLower) && it != _mapFormats.end();
95 ++it)
96 {
97 list.insert(it->second);
98 }
99
100 return list;
101}
102
103// RegisterableModule implementation
104const std::string& MapFormatManager::getName() const

Callers 2

determineMapFormatFunction · 0.80

Calls 4

to_lower_copyFunction · 0.85
findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected