X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/bfe85f7ca97259256e8089349e1a462b6c7dbd00..6468a6faad92e087d5054b60b86bf33d718e86ba:/src/sds.h diff --git a/src/sds.h b/src/sds.h index ea43f868..6e5684ee 100644 --- a/src/sds.h +++ b/src/sds.h @@ -76,6 +76,7 @@ sds sdscatprintf(sds s, const char *fmt, ...); sds sdstrim(sds s, const char *cset); sds sdsrange(sds s, int start, int end); void sdsupdatelen(sds s); +void sdsclear(sds s); int sdscmp(sds s1, sds s2); sds *sdssplitlen(char *s, int len, char *sep, int seplen, int *count); void sdsfreesplitres(sds *tokens, int count); @@ -85,5 +86,6 @@ sds sdsfromlonglong(long long value); sds sdscatrepr(sds s, char *p, size_t len); sds *sdssplitargs(char *line, int *argc); void sdssplitargs_free(sds *argv, int argc); +sds sdsmapchars(sds s, char *from, char *to, size_t setlen); #endif