This is just a wrapper to sdscmp() that is able to * handle shared.minstring and shared.maxstring as the equivalent of * -inf and +inf for strings */
| 628 | * handle shared.minstring and shared.maxstring as the equivalent of |
| 629 | * -inf and +inf for strings */ |
| 630 | int sdscmplex(sds a, sds b) { |
| 631 | if (a == b) return 0; |
| 632 | if (a == shared.minstring || b == shared.maxstring) return -1; |
| 633 | if (a == shared.maxstring || b == shared.minstring) return 1; |
| 634 | return sdscmp(a,b); |
| 635 | } |
| 636 | |
| 637 | int zslLexValueGteMin(sds value, zlexrangespec *spec) { |
| 638 | return spec->minex ? |
no test coverage detected