MCPcopy Create free account
hub / github.com/antirez/ds4 / agent_syntax_color

Function agent_syntax_color

ds4_agent.c:2043–2052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2041 p++;
2042 }
2043 return NULL;
2044}
2045
2046static bool agent_bytes_starts_with(const char *p, const char *end,
2047 const char *prefix) {
2048 size_t n = strlen(prefix);
2049 return (size_t)(end - p) >= n && memcmp(p, prefix, n) == 0;
2050}
2051
2052static bool agent_bytes_partial_prefix_at(const char *p, const char *end,
2053 const char *prefix) {
2054 return bytes_is_partial_prefix(p, (size_t)(end - p), prefix);
2055}

Callers 1

renderer_syntax_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected