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

Method GetPrefixIndex

Source/cmFindLibraryCommand.cxx:236–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234 void RegexFromList(std::string& out, cmList const& in,
235 cmSystemTools::DirCase dirCase);
236 size_type GetPrefixIndex(std::string const& prefix)
237 {
238 return std::find(this->Prefixes.begin(), this->Prefixes.end(), prefix) -
239 this->Prefixes.begin();
240 }
241 size_type GetSuffixIndex(std::string const& suffix)
242 {
243 return std::find(this->Suffixes.begin(), this->Suffixes.end(), suffix) -

Callers 1

CheckDirectoryForNameMethod · 0.95

Calls 3

findFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected