MCPcopy Create free account
hub / github.com/WinMerge/winmerge / GetPropertyIndexFromKey

Function GetPropertyIndexFromKey

Src/PropertySystem.cpp:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37};
38
39static int GetPropertyIndexFromKey(const PROPERTYKEY& key)
40{
41 for (size_t i = 0; i < std::size(g_HashProperties); ++i)
42 {
43 if (key == *g_HashProperties[i].pKey)
44 return static_cast<int>(i);
45 }
46 return -1;
47}
48
49static const PROPERTYKEY *GetPropertyKeyFromName(const String& canonicalName)
50{

Callers 3

CalculateHashValueFunction · 0.85
GetPropertyValuesMethod · 0.85
HasHashPropertiesMethod · 0.85

Calls 1

sizeClass · 0.50

Tested by

no test coverage detected