Lines Matching refs:len
30 unsigned int len;
37 return s1.len == s2.len && memcmp(s1.start, s2.start, s1.len) == 0;
43 return s1.len <= s2.len && memcmp(s1.start, s2.start, s1.len) == 0;
49 size_t len;
74 const char *string, size_t len, const char *file_name,
78 s->len = len;
90 if (unlikely(s->pos >= s->len))
98 return s->pos >= s->len;
110 const char *nl = memchr(s->s + s->pos, '\n', s->len - s->pos);
111 const size_t new_pos = nl ? (size_t) (nl - s->s) : s->len;
141 str(struct scanner *s, const char *string, size_t len)
143 if (s->len - s->pos < len)
145 if (memcmp(s->s + s->pos, string, len) != 0)
147 s->pos += len; s->column += len;