Lines Matching defs:query
257 COAP_SET_STR(&uri->query, len, p);
363 if (uri->query.length) {
366 if (uri->query.length > buflen)
367 coap_log_warn("URI query will be truncated (max buffer %zu)\n",
369 res = coap_split_query(uri->query.s, uri->query.length, buf, &buflen);
438 * Runs through the given path (or query) segment and checks if
467 * point to a (percent-encoded) path or query segment of a coap_uri_t
619 if (*s == '&') { /* start new query element */
628 /* write last query element */
664 result = (coap_uri_t *)coap_malloc_type(COAP_STRING, uri->query.length + uri->host.length +
688 if (uri->query.length) {
689 result->query.s = p = URI_DATA(result) + uri->host.length + uri->path.length;
690 result->query.length = uri->query.length;
692 memcpy(p, uri->query.s, uri->query.length);
722 coap_string_t *query = NULL;
743 query = coap_new_string(length);
744 if (query) {
745 query->length = length;
746 unsigned char *s = query->s;
749 if (s != query->s)
765 return query;