MCPcopy Create free account
hub / github.com/SatDump/SatDump / isStringPresent

Function isStringPresent

src-core/common/utils.cpp:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45bool isStringPresent(std::string searched, std::string keyword)
46{
47 std::transform(searched.begin(), searched.end(), searched.begin(), tolower);
48 std::transform(keyword.begin(), keyword.end(), keyword.begin(), tolower);
49
50 auto found_it = searched.find(keyword, 0);
51 return found_it != std::string::npos;
52}
53
54#include "logger.h"
55#include "satdump_vars.h"

Callers 5

drawMenuMethod · 0.85
loadExternalLayerFunction · 0.85
renderSelectionBoxMethod · 0.85
renderAutotrackConfigMethod · 0.85
renderSelectionMenuMethod · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected