MCPcopy Create free account
hub / github.com/F-Stack/f-stack / stralgoCommand

Function stralgoCommand

app/redis-6.2.6/src/t_string.c:717–724  ·  view source on GitHub ↗

This implements the LCS algorithm. */

Source from the content-addressed store, hash-verified

715 * STRALGO <algorithm> ... arguments ... */
716void stralgoLCS(client *c); /* This implements the LCS algorithm. */
717void stralgoCommand(client *c) {
718 /* Select the algorithm. */
719 if (!strcasecmp(c->argv[1]->ptr,"lcs")) {
720 stralgoLCS(c);
721 } else {
722 addReplyErrorObject(c,shared.syntaxerr);
723 }
724}
725
726/* STRALGO <algo> [IDX] [LEN] [MINMATCHLEN <len>] [WITHMATCHLEN]
727 * STRINGS <string> <string> | KEYS <keya> <keyb>

Callers

nothing calls this directly

Calls 3

strcasecmpFunction · 0.85
stralgoLCSFunction · 0.85
addReplyErrorObjectFunction · 0.85

Tested by

no test coverage detected