Home
last modified time | relevance | path

Searched refs:seplen (Results 1 – 4 of 4) sorted by relevance

/redis-3.2.3/deps/hiredis/
H A Dsds.c795 sds *sdssplitlen(const char *s, int len, const char *sep, int seplen, int *count) { in sdssplitlen() argument
799 if (seplen < 1 || len < 0) return NULL; in sdssplitlen()
808 for (j = 0; j < (len-(seplen-1)); j++) { in sdssplitlen()
819 if ((seplen == 1 && *(s+j) == sep[0]) || (memcmp(s+j,sep,seplen) == 0)) { in sdssplitlen()
823 start = j+seplen; in sdssplitlen()
824 j = j+seplen-1; /* skip the separator */ in sdssplitlen()
1080 sds sdsjoinsds(sds *argv, int argc, const char *sep, size_t seplen) { in sdsjoinsds() argument
1086 if (j != argc-1) join = sdscatlen(join,sep,seplen); in sdsjoinsds()
H A Dsds.h243 sds *sdssplitlen(const char *s, int len, const char *sep, int seplen, int *count);
252 sds sdsjoinsds(sds *argv, int argc, const char *sep, size_t seplen);
/redis-3.2.3/src/
H A Dsds.c795 sds *sdssplitlen(const char *s, int len, const char *sep, int seplen, int *count) { in sdssplitlen() argument
799 if (seplen < 1 || len < 0) return NULL; in sdssplitlen()
808 for (j = 0; j < (len-(seplen-1)); j++) { in sdssplitlen()
819 if ((seplen == 1 && *(s+j) == sep[0]) || (memcmp(s+j,sep,seplen) == 0)) { in sdssplitlen()
823 start = j+seplen; in sdssplitlen()
824 j = j+seplen-1; /* skip the separator */ in sdssplitlen()
1080 sds sdsjoinsds(sds *argv, int argc, const char *sep, size_t seplen) { in sdsjoinsds() argument
1086 if (j != argc-1) join = sdscatlen(join,sep,seplen); in sdsjoinsds()
H A Dsds.h243 sds *sdssplitlen(const char *s, int len, const char *sep, int seplen, int *count);
252 sds sdsjoinsds(sds *argv, int argc, const char *sep, size_t seplen);