MCPcopy Create free account
hub / github.com/chrxh/alien / contains

Function contains

source/Network/NetworkResourceService.cpp:31–42  ·  view source on GitHub ↗

returns true iff folderNames contains otherFolderNames

Source from the content-addressed store, hash-verified

29
30 //returns true iff folderNames contains otherFolderNames
31 bool contains(std::vector<std::string> const& folderNames, std::vector<std::string> const& otherFolderNames)
32 {
33 if (folderNames.size() < otherFolderNames.size()) {
34 return false;
35 }
36 for (size_t i = 0; i < otherFolderNames.size(); ++i) {
37 if (folderNames.at(i) != otherFolderNames.at(i)) {
38 return false;
39 }
40 }
41 return true;
42 }
43
44 std::string trimWhitespace(const std::string& input)
45 {

Callers 1

getMatchingRawTOsMethod · 0.70

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected