MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / RM_StringCompare

Function RM_StringCompare

src/module.cpp:1428–1430  ·  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

1426 * a < b, a == b, a > b. Strings are compared byte by byte as two
1427 * binary blobs without any encoding care / collation attempt. */
1428int RM_StringCompare(RedisModuleString *a, RedisModuleString *b) {
1429 return compareStringObjects(a,b);
1430}
1431
1432/* Return the (possibly modified in encoding) input 'str' object if
1433 * the string is unshared, otherwise NULL is returned. */

Callers

nothing calls this directly

Calls 1

compareStringObjectsFunction · 0.85

Tested by

no test coverage detected