This implements the LCS algorithm. */
| 718 | * STRALGO <algorithm> ... arguments ... */ |
| 719 | void stralgoLCS(client *c); /* This implements the LCS algorithm. */ |
| 720 | void 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> |
nothing calls this directly
no test coverage detected