MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / AsNameMap

Method AsNameMap

IntelPresentMon/CommonUtilities/win/ProcessMapBuilder.cpp:75–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 ProcessMapBuilder::NameMap ProcessMapBuilder::AsNameMap(bool lowercase) const
76 {
77 NameMap nameMap;
78 for (const auto& e : map) {
79 if (lowercase) {
80 nameMap.emplace(std::make_pair(
81 e.second.name
82 | vi::transform([](auto c){return(wchar_t)std::towlower(c);})
83 | rn::to<std::basic_string>(),
84 e.second
85 ));
86 }
87 else {
88 nameMap.emplace(std::make_pair(e.second.name, e.second));
89 }
90 }
91 return nameMap;
92 }
93
94 std::wstring ProcessMapBuilder::ToString() const
95 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected