MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / FindObjectNames

Method FindObjectNames

src/engine/ConsoleObjects.cpp:231–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 }
230
231 std::vector<std::string_view> FindObjectNames(char const* regex)
232 {
233 std::vector<std::string_view> matches;
234 if (auto rx = regex_from_char(regex))
235 {
236 for (auto& it : m_Dictionary)
237 if (std::regex_match(it.first, *rx))
238 matches.push_back(std::string_view(it.first));
239 }
240 return matches;
241 }
242
243 std::vector<Object*> FindObjects(char const* regex)
244 {

Callers 1

MatchObjectNamesFunction · 0.80

Calls 2

regex_from_charFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected