MCPcopy Create free account
hub / github.com/Kitware/CMake / ComparePathSuffix

Function ComparePathSuffix

Source/cmPackageInfoReader.cxx:139–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139bool ComparePathSuffix(std::string const& path, std::string const& suffix)
140{
141 std::string::size_type const ps = path.size();
142 std::string::size_type const ss = suffix.size();
143
144 if (ss > ps) {
145 return false;
146 }
147
148 return cmSystemTools::ComparePath(path.substr(ps - ss), suffix);
149}
150
151std::string DeterminePrefix(std::string const& filepath,
152 Json::Value const& data)

Callers 1

DeterminePrefixFunction · 0.85

Calls 2

sizeMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…