Lines Matching refs:len
28 size_t len; member
33 buf->len = 0; in linebuf_init()
37 if (buf->len + 1 >= sizeof(buf->bytes)) in linebuf_get()
39 buf->bytes[buf->len] = '\0'; in linebuf_get()
43 static bool linebuf_add(struct linebuf *buf, const char *s, size_t len) { in linebuf_add() argument
44 if (buf->len + len >= sizeof(buf->bytes)) in linebuf_add()
46 memcpy(buf->bytes + buf->len, s, len); in linebuf_add()
47 buf->len += len; in linebuf_add()
52 if (buf->len + 1 >= sizeof(buf->bytes)) in linebuf_add_char()
54 buf->bytes[buf->len++] = c; in linebuf_add_char()
59 assert(buf->len >= count); in linebuf_rem()
60 buf->len -= count; in linebuf_rem()
184 size_t len; in trie_fnmatch_f() local
190 len = strlen(prefix + p); in trie_fnmatch_f()
191 linebuf_add(buf, prefix + p, len); in trie_fnmatch_f()
210 linebuf_rem(buf, len); in trie_fnmatch_f()