Lines Matching defs:offset
162 const RNode *match_complete(size_t *offset, const RNode *node,
164 *offset = 0;
186 *offset = n;
195 size_t offset, const char *first, const char *last) {
199 if (node->len == offset) {
209 if (offset > 0) {
210 auto n = std::min(node->len - offset, static_cast<size_t>(last - first));
211 if (memcmp(node->s + offset, first, n) != 0) {
218 if (node->len == offset + n) {
233 if (node->index != -1 && offset + n + 1 == node->len &&
249 assert(node->len == offset + n);
316 size_t offset;
318 node = match_complete(&offset, &root_, std::begin(host), std::end(host));
324 node = match_partial(&pattern_is_wildcard, node, offset, std::begin(path),
335 size_t offset;
337 node = match_complete(&offset, &root_, std::begin(s), std::end(s));
342 if (node->len != offset) {