Lines Matching refs:klen
1136 … mcp_backend_t *be = mcplib_pool_proxy_call_helper(rqu->obj, MCP_PARSER_KEY(rq->pr), rq->pr.klen); in mcp_run_rcontext_handle()
1493 static inline const char *_mcp_router_shortsep(const char *key, const int klen, const char needle, … in _mcp_router_shortsep() argument
1497 end = memchr(key, needle, klen); in _mcp_router_shortsep()
1511 static inline const char *_mcp_router_longsep(const char *key, const int klen, const char *needle, … in _mcp_router_longsep() argument
1516 end = memchr(key, needle[0], klen); in _mcp_router_longsep()
1523 const char *last = key + (klen - nlen); in _mcp_router_longsep()
1537 static inline const char *_mcp_router_anchorsm(const char *key, const int klen, const char *needle,… in _mcp_router_anchorsm() argument
1544 return _mcp_router_shortsep(key+1, klen-1, needle[1], len); in _mcp_router_anchorsm()
1547 static inline const char *_mcp_router_anchorbig(const char *key, const int klen, const struct mcp_r… in _mcp_router_anchorbig() argument
1551 if (slen+2 > klen || memcmp(key, conf->start, slen) != 0) { in _mcp_router_anchorbig()
1556 return _mcp_router_longsep(key+slen, klen-slen, conf->stop, len); in _mcp_router_anchorbig()
1568 if (pr->klen == 0) { in mcp_funcgen_route()
1582 lookup = _mcp_router_shortsep(key, pr->klen, fr->conf.sep, &lookuplen); in mcp_funcgen_route()
1585 lookup = _mcp_router_longsep(key, pr->klen, fr->conf.lsep, &lookuplen); in mcp_funcgen_route()
1588 lookup = _mcp_router_anchorsm(key, pr->klen, fr->conf.anchorsm, &lookuplen); in mcp_funcgen_route()
1591 lookup = _mcp_router_anchorbig(key, pr->klen, &fr->conf.big, &lookuplen); in mcp_funcgen_route()