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

Method matchWithFilter

source/Network/NetworkResourceRawTO.cpp:60–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60bool _NetworkResourceRawTO::matchWithFilter(std::string const& filter) const
61{
62 auto match = false;
63 if (StringHelper::containsCaseInsensitive(timestamp, filter)) {
64 match = true;
65 }
66 if (StringHelper::containsCaseInsensitive(userName, filter)) {
67 match = true;
68 }
69 if (StringHelper::containsCaseInsensitive(resourceName, filter)) {
70 match = true;
71 }
72 if (StringHelper::containsCaseInsensitive(std::to_string(numDownloads), filter)) {
73 match = true;
74 }
75 if (StringHelper::containsCaseInsensitive(std::to_string(width), filter)) {
76 match = true;
77 }
78 if (StringHelper::containsCaseInsensitive(std::to_string(height), filter)) {
79 match = true;
80 }
81 if (StringHelper::containsCaseInsensitive(std::to_string(particles), filter)) {
82 match = true;
83 }
84 if (StringHelper::containsCaseInsensitive(std::to_string(contentSize), filter)) {
85 match = true;
86 }
87 if (StringHelper::containsCaseInsensitive(description, filter)) {
88 match = true;
89 }
90 if (StringHelper::containsCaseInsensitive(version, filter)) {
91 match = true;
92 }
93 return match;
94}
95
96int _NetworkResourceRawTO::getTotalLikes() const
97{

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected