MCPcopy Create free account
hub / github.com/Tracktion/choc / contains

Function contains

choc/text/choc_StringUtilities.h:429–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429inline bool contains (std::string_view t, std::string_view s) { return t.find (s) != std::string::npos; }
430inline bool startsWith (std::string_view t, char s) { return ! t.empty() && t.front() == s; }
431inline bool endsWith (std::string_view t, char s) { return ! t.empty() && t.back() == s; }
432

Callers 8

throwIfNotFoundMethod · 0.85
CHOC_TESTFunction · 0.85
testWebviewFunction · 0.85
testFileWatcherFunction · 0.85
choc_tests.hFile · 0.85

Calls 1

findMethod · 0.80

Tested by 3

CHOC_TESTFunction · 0.68
testWebviewFunction · 0.68
testFileWatcherFunction · 0.68