You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
754 B
C
23 lines
754 B
C
9 years ago
|
#ifndef __RMUTIL_STRINGS_H__
|
||
|
#define __RMUTIL_STRINGS_H__
|
||
|
|
||
|
#include <redismodule.h>
|
||
|
|
||
|
/*
|
||
|
* Create a new RedisModuleString object from a printf-style format and arguments.
|
||
|
* Note that RedisModuleString objects CANNOT be used as formatting arguments.
|
||
|
*/
|
||
|
RedisModuleString *RMUtils_CreateFormattedString(RedisModuleCtx *ctx, const char *fmt, ...);
|
||
|
|
||
|
/* Return 1 if the two strings are equal. Case *sensitive* */
|
||
|
int RMUtils_StringEquals(RedisModuleString *s1, RedisModuleString *s2);
|
||
|
|
||
|
/* Converts a redis string to lowercase in place without reallocating anything */
|
||
|
void RMUtils_StringToLower(RedisModuleString *s);
|
||
|
|
||
|
/* Converts a redis string to uppercase in place without reallocating anything */
|
||
|
void RMUtils_StringToUpper(RedisModuleString *s);
|
||
|
|
||
|
|
||
|
#endif
|