MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RM_StringCompare

Function RM_StringCompare

app/redis-6.2.6/src/module.c:1401–1403  ·  view source on GitHub ↗

Compare two string objects, returning -1, 0 or 1 respectively if * a < b, a == b, a > b. Strings are compared byte by byte as two * binary blobs without any encoding care / collation attempt. */

Source from the content-addressed store, hash-verified

1399 * a < b, a == b, a > b. Strings are compared byte by byte as two
1400 * binary blobs without any encoding care / collation attempt. */
1401int RM_StringCompare(RedisModuleString *a, RedisModuleString *b) {
1402 return compareStringObjects(a,b);
1403}
1404
1405/* Return the (possibly modified in encoding) input 'str' object if
1406 * the string is unshared, otherwise NULL is returned. */

Callers

nothing calls this directly

Calls 1

compareStringObjectsFunction · 0.85

Tested by

no test coverage detected