22 return strlen((
const char *) src) ;
40 static inline unsigned int
43 return (hashval / 31) % maxnum ;
static unsigned int CNHashValueToIndex(uint64_t hashval, unsigned int maxnum)
Get index value from hash value.
Definition: CNStrUtil.h:41
uint64_t CNCalcHashValueForString(size_t len, const unsigned char *str)
Calculate hash value for string.
static size_t CNLengthOfUTF8String(const unsigned char *src)
Get length of UTF8String.
Definition: CNStrUtil.h:20