MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / starts_with_segment

Function starts_with_segment

internal/cbm/service_patterns.c:553–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551}
552
553static bool starts_with_segment(const char *path, const char *segment) {
554 if (!path || path[0] != '/' || !segment) {
555 return false;
556 }
557 size_t seg_len = strlen(segment);
558 const char *p = path + 1;
559 return strncmp(p, segment, seg_len) == 0 && (p[seg_len] == '\0' || p[seg_len] == '/');
560}
561
562static bool contains_segment(const char *path, const char *segment) {
563 if (!path || !segment) {

Callers 2

has_http_route_markerFunction · 0.85
has_filesystem_rootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected