MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / stralgoCommand

Function stralgoCommand

src/t_string.cpp:720–727  ·  view source on GitHub ↗

This implements the LCS algorithm. */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

szFromObjFunction · 0.85
stralgoLCSFunction · 0.85
addReplyErrorObjectFunction · 0.85

Tested by

no test coverage detected