Home
last modified time | relevance | path

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

/f-stack/app/redis-5.0.5/deps/hiredis/
H A Dsds.c793 sds *sdssplitlen(const char *s, int len, const char *sep, int seplen, int *count) { in sdssplitlen() argument
797 if (seplen < 1 || len < 0) return NULL; in sdssplitlen()
806 for (j = 0; j < (len-(seplen-1)); j++) { in sdssplitlen()
817 if ((seplen == 1 && *(s+j) == sep[0]) || (memcmp(s+j,sep,seplen) == 0)) { in sdssplitlen()
821 start = j+seplen; in sdssplitlen()
822 j = j+seplen-1; /* skip the separator */ in sdssplitlen()
1078 sds sdsjoinsds(sds *argv, int argc, const char *sep, size_t seplen) { in sdsjoinsds() argument
1084 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);
/f-stack/app/redis-5.0.5/src/
H A Dsds.c816 sds *sdssplitlen(const char *s, ssize_t len, const char *sep, int seplen, int *count) { in sdssplitlen() argument
821 if (seplen < 1 || len < 0) return NULL; in sdssplitlen()
830 for (j = 0; j < (len-(seplen-1)); j++) { in sdssplitlen()
841 if ((seplen == 1 && *(s+j) == sep[0]) || (memcmp(s+j,sep,seplen) == 0)) { in sdssplitlen()
845 start = j+seplen; in sdssplitlen()
846 j = j+seplen-1; /* skip the separator */ in sdssplitlen()
1102 sds sdsjoinsds(sds *argv, int argc, const char *sep, size_t seplen) { in sdsjoinsds() argument
1108 if (j != argc-1) join = sdscatlen(join,sep,seplen); in sdsjoinsds()
H A Dsds.h244 sds *sdssplitlen(const char *s, ssize_t len, const char *sep, int seplen, int *count);
253 sds sdsjoinsds(sds *argv, int argc, const char *sep, size_t seplen);