MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / contains

Function contains

src/OpenLoco/src/Ui/Windows/ObjectSelectionWindow.cpp:391–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389 }
390
391 static bool contains(const std::string_view& a, const std::string_view& b)
392 {
393 return std::search(a.begin(), a.end(), b.begin(), b.end(), [](char a, char b) {
394 return tolower(a) == tolower(b);
395 })
396 != a.end();
397 }
398
399 static std::optional<VehicleType> getVehicleTypeFromObject(TabObjectEntry& entry)
400 {

Callers 1

applyFilterToObjectListFunction · 0.70

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected