MCPcopy Create free account
hub / github.com/FastLED/FastLED / starts_with

Method starts_with

src/fl/stl/basic_string.cpp.hpp:720–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718// ======= STARTS_WITH / ENDS_WITH =======
719
720bool basic_string::starts_with(const char* prefix) const {
721 if (!prefix) return true;
722 fl::size prefix_len = fl::strlen(prefix);
723 if (prefix_len > mLength) return false;
724 return fl::strncmp(c_str(), prefix, prefix_len) == 0;
725}
726
727bool basic_string::ends_with(const char* suffix) const {
728 if (!suffix) return true;

Callers 15

ble_esp32.cpp.hppFile · 0.45
parseMethod · 0.45
should_visit_directoryFunction · 0.45
is_under_dirFunction · 0.45
is_under_project_subpathFunction · 0.45
is_external_sdk_headerFunction · 0.45
is_valid_include_pathFunction · 0.45
is_relative_include_pathFunction · 0.45
typo_include_suggestionFunction · 0.45

Calls 3

strlenFunction · 0.85
strncmpFunction · 0.85
c_strMethod · 0.45

Tested by 1