Lines Matching refs:length

108   if (text->length < pattern->length)  in match()
113 size_t remaining_length = text->length; in match()
128 if ((match_prefix || pattern->length == token_length) && in match()
129 memcmp(token, pattern->s, pattern->length) == 0) in match()
135 return (match_prefix || pattern->length == text->length) && in match()
136 memcmp(text->s, pattern->s, pattern->length) == 0; in match()
193 while (resource_param.length < COAP_OPT_LENGTH(query_filter)
194 && resource_param.s[resource_param.length] != '=')
195 resource_param.length++;
197 if (resource_param.length < COAP_OPT_LENGTH(query_filter)) {
199 if (resource_param.length == 4 &&
204 if (resource_param.length == rt_attributes->length &&
205 memcmp(resource_param.s, rt_attributes->s, rt_attributes->length) == 0) {
213 COAP_OPT_VALUE(query_filter) + resource_param.length + 1;
215 assert((resource_param.length + 1) <= COAP_OPT_LENGTH(query_filter));
216 query_pattern.length =
217 COAP_OPT_LENGTH(query_filter) - (resource_param.length + 1);
221 query_pattern.length--;
224 if (query_pattern.length &&
225 query_pattern.s[query_pattern.length-1] == '*') {
226 query_pattern.length--;
236 if (resource_param.length) { /* there is a query filter */
244 attr = coap_find_attr(r, resource_param.s, resource_param.length);
247 unquoted_val.length = attr->value.length - 2;
301 r->uri.length = len;
303 coap_hash_path(r->uri.s, r->uri.length, r->key);
331 attr->name.length = nlen;
332 attr->value.length = val ? vlen : 0;
357 if (attr->name.length == nlen &&
490 resource->uri.s, resource->uri.length, *len);
499 attr->name.s, attr->name.length, *len);
505 attr->value.s, attr->value.length, *len);
532 && (!token || (token->length == s->token_length
533 && memcmp(token->s, s->token, token->length) == 0)))
567 if (token && token->length) {
568 s->token_length = token->length;
646 token.length = obs->token_length;
714 token->length == obs->token_length &&
715 memcmp(token->s, obs->token, token->length) == 0) {