| /redis-3.2.3/tests/unit/ |
| H A D | bitops.tcl | 68 r set str $str 69 assert {[r bitcount str] == [count_bits $str]} 76 r set str $str 112 r del str 118 r del str 189 r set str $str 218 r del str 223 r del str 248 r del str 268 r del str [all …]
|
| /redis-3.2.3/tests/unit/type/ |
| H A D | list-2.tcl | 22 set str [randomInt 9223372036854775807] 23 r rpush mylist $str 24 lappend mylist $str 38 set str [randomInt 9223372036854775807] 39 r rpush mylist $str 40 lappend mylist $str
|
| H A D | hash.tcl | 302 r hset smallhash str " 11" 303 r hset bighash str " 11" 304 catch {r hincrby smallhash str 1} smallerr 305 catch {r hincrby smallhash str 1} bigerr 312 r hset smallhash str "11 " 313 r hset bighash str "11 " 315 catch {r hincrby smallhash str 1} bigerr 374 r hset smallhash str " 11" 375 r hset bighash str " 11" 384 r hset smallhash str "11 " [all …]
|
| H A D | string.tcl | 212 set str "" 220 set head [string range $str 0 $bitnum-1] 221 set tail [string range $str $bitnum+1 end] 222 set str [string map {" " 0} [format $fmt $head $bitval $tail]] 225 assert_equal [binary format B* $str] [r get mykey]
|
| /redis-3.2.3/src/ |
| H A D | redis-check-aof.c | 109 char *str; in process() local 116 if (!readString(fp,&str)) break; in process() 118 if (strcasecmp(str, "multi") == 0) { in process() 123 } else if (strcasecmp(str, "exec") == 0) { in process() 130 free(str); in process() 135 if (str) free(str); in process()
|
| H A D | redis-cli.c | 558 out = sdscat(out,r->str); in cliFormatReplyTTY() 567 out = sdscatrepr(out,r->str,r->len); in cliFormatReplyTTY() 672 out = sdscatlen(out,r->str,r->len); in cliFormatReplyRaw() 683 if (strstr(r->str,"<endsession>") == r->str) { in cliFormatReplyRaw() 721 out = sdscatrepr(out,r->str,strlen(r->str)); in cliFormatReplyCSV() 724 out = sdscatrepr(out,r->str,r->len); in cliFormatReplyCSV() 730 out = sdscatrepr(out,r->str,r->len); in cliFormatReplyCSV() 782 (!strncmp(reply->str,"MOVED",5) || !strcmp(reply->str,"ASK"))) in cliReadReply() 784 char *p = reply->str, *s; in cliReadReply() 2020 types[i] = toIntType(keys->element[i]->str, reply->str); in getKeyTypes() [all …]
|
| H A D | t_string.c | 247 char *str, llbuf[32]; in getrangeCommand() local 258 str = llbuf; in getrangeCommand() 261 str = o->ptr; in getrangeCommand() 262 strlen = sdslen(str); in getrangeCommand() 281 addReplyBulkCBuffer(c,(char*)str+start,end-start+1); in getrangeCommand()
|
| /redis-3.2.3/deps/hiredis/examples/ |
| H A D | example.c | 28 printf("PING: %s\n", reply->str); in main() 33 printf("SET: %s\n", reply->str); in main() 38 printf("SET (binary API): %s\n", reply->str); in main() 43 printf("GET foo: %s\n", reply->str); in main() 69 printf("%u) %s\n", j, reply->element[j]->str); in main()
|
| H A D | example-libev.c | 13 printf("argv[%s]: %s\n", (char*)privdata, reply->str); in getCallback()
|
| H A D | example-libevent.c | 13 printf("argv[%s]: %s\n", (char*)privdata, reply->str); in getCallback()
|
| H A D | example-libuv.c | 13 printf("argv[%s]: %s\n", (char*)privdata, reply->str); in getCallback()
|
| H A D | example-ae.c | 16 printf("argv[%s]: %s\n", (char*)privdata, reply->str); in getCallback()
|
| /redis-3.2.3/deps/lua/src/ |
| H A D | lstring.c | 50 static TString *newlstr (lua_State *L, const char *str, size_t l, in newlstr() argument 62 memcpy(ts+1, str, l*sizeof(char)); in newlstr() 75 TString *luaS_newlstr (lua_State *L, const char *str, size_t l) { in luaS_newlstr() argument 81 h = h ^ ((h<<5)+(h>>2)+cast(unsigned char, str[l1-1])); in luaS_newlstr() 86 if (ts->tsv.len == l && (memcmp(str, getstr(ts), l) == 0)) { in luaS_newlstr() 92 return newlstr(L, str, l, h); /* not found */ in luaS_newlstr()
|
| H A D | fpconv.c | 174 int fpconv_g_fmt(char *str, double num, int precision) in fpconv_g_fmt() argument 185 return snprintf(str, FPCONV_G_FMT_BUFSIZE, fmt, num); in fpconv_g_fmt() 193 *str++ = (*b == locale_decimal_point ? '.' : *b); in fpconv_g_fmt()
|
| H A D | strbuf.c | 182 void strbuf_append_string(strbuf_t *s, const char *str) in strbuf_append_string() argument 188 for (i = 0; str[i]; i++) { in strbuf_append_string() 194 s->buf[s->length] = str[i]; in strbuf_append_string()
|
| H A D | lobject.c | 104 static void pushstr (lua_State *L, const char *str) { in pushstr() argument 105 setsvalue2s(L, L->top, luaS_new(L, str)); in pushstr()
|
| H A D | lstring.h | 28 LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
|
| /redis-3.2.3/tests/ |
| H A D | instances.tcl | 202 set str {} 203 append str "@[RI $id tcp_port]: " 204 append str "[RI $id role] " 206 append str "[RI $id master_host]:[RI $id master_port]" 208 set str 219 set str {} 220 append str "@[SI $id tcp_port]: " 221 append str "[join [S $id sentinel get-master-addr-by-name mymaster]]" 222 set str
|
| /redis-3.2.3/deps/hiredis/ |
| H A D | test.c | 355 strcasecmp(reply->str,"pong") == 0) in test_blocking_connection() 361 strcasecmp(reply->str,"ok") == 0) in test_blocking_connection() 369 strcmp(reply->str,"hello world") == 0); in test_blocking_connection() 377 memcmp(reply->str,"hello\x00world",11) == 0) in test_blocking_connection() 400 !memcmp(reply->element[0]->str,"bar",3) && in test_blocking_connection() 401 !memcmp(reply->element[1]->str,"foo",3)) in test_blocking_connection() 415 !memcmp(reply->element[0]->element[0]->str,"bar",3) && in test_blocking_connection() 416 !memcmp(reply->element[0]->element[1]->str,"foo",3) && in test_blocking_connection() 418 strcasecmp(reply->element[1]->str,"pong") == 0); in test_blocking_connection() 438 p = strstr(reply->str,field); in test_blocking_io_errors() [all …]
|
| H A D | hiredis.c | 90 if (r->str != NULL) in freeReplyObject() 91 free(r->str); in freeReplyObject() 116 memcpy(buf,str,len); in createStringObject() 118 r->str = buf; in createStringObject() 186 static void __redisReaderSetError(redisReader *r, int type, const char *str) { in __redisReaderSetError() argument 206 len = strlen(str); in __redisReaderSetError() 208 memcpy(r->errstr,str,len); in __redisReaderSetError() 973 void __redisSetError(redisContext *c, int type, const char *str) { in __redisSetError() argument 977 if (str != NULL) { in __redisSetError() 978 len = strlen(str); in __redisSetError() [all …]
|
| H A D | async.c | 366 stype = reply->element[0]->str; in __redisGetSubscribeCallback() 376 sname = sdsnewlen(reply->element[1]->str,reply->element[1]->len); in __redisGetSubscribeCallback() 445 snprintf(c->errstr,sizeof(c->errstr),"%s",((redisReply*)reply)->str); in redisProcessCallbacks() 554 static char *nextArgument(char *start, char **str, size_t *len) { in nextArgument() argument 564 *str = p+2; in nextArgument()
|
| /redis-3.2.3/deps/jemalloc/src/ |
| H A D | util.c | 310 malloc_vsnprintf(char *str, size_t size, const char *format, va_list ap) in malloc_vsnprintf() argument 318 str[i] = (c); \ in malloc_vsnprintf() 324 memcpy(&str[i], s, cpylen); \ in malloc_vsnprintf() 577 str[i] = '\0'; in malloc_vsnprintf() 579 str[size - 1] = '\0'; in malloc_vsnprintf() 591 malloc_snprintf(char *str, size_t size, const char *format, ...) in malloc_snprintf() argument 597 ret = malloc_vsnprintf(str, size, format, ap); in malloc_snprintf()
|
| /redis-3.2.3/tests/support/ |
| H A D | util.tcl | 342 proc colorstr {color str} { argument 360 return "\033\[$b;${colorcode};49m$str\033\[0m" 363 return $str
|
| /redis-3.2.3/deps/jemalloc/include/jemalloc/internal/ |
| H A D | util.h | 151 int malloc_vsnprintf(char *str, size_t size, const char *format, 153 int malloc_snprintf(char *str, size_t size, const char *format, ...)
|
| /redis-3.2.3/tests/integration/ |
| H A D | aof.tcl | 5 proc append_to_aof {str} { argument 7 puts -nonewline $fp $str
|