MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / vectorContainsIgnoreCase

Function vectorContainsIgnoreCase

source/util/stringutil.cpp:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#include <charconv>
27
28bool vectorContainsIgnoreCase(const std::vector<BString>& strs, BString search) {
29 for (auto& s : strs) {
30 if (s.contains(search, true)) {
31 return true;
32 }
33 }
34 return false;
35}
36
37int stringIndexInVector(const std::string& value, const std::vector<std::string> values, int returnIfNotFound) {
38 auto it = std::find(values.begin(), values.end(), value);

Callers 4

applyMethod · 0.85
getTinyCorePackagesMethod · 0.85
execveMethod · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected