MCPcopy Create free account
hub / github.com/git/git / strcspn_escaped

Function strcspn_escaped

pathspec.c:148–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148static size_t strcspn_escaped(const char *s, const char *stop)
149{
150 const char *i;
151
152 for (i = s; *i; i++) {
153 /* skip the escaped character */
154 if (i[0] == '\\' && i[1]) {
155 i++;
156 continue;
157 }
158
159 if (strchr(stop, *i))
160 break;
161 }
162 return i - s;
163}
164
165static inline int invalid_value_char(const char ch)
166{

Callers 1

parse_long_magicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected