MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / UnsignedRange_IsValid

Function UnsignedRange_IsValid

src/util/range/unsigned_range.c:40–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40bool UnsignedRange_IsValid
41(
42 const UnsignedRange *range
43) {
44 if(!range->valid) return false;
45 if(range->include_min && range->include_max) {
46 // X >= y AND X <= z
47 return (range->min <= range->max);
48 } else {
49 // X >= y AND X < z
50 // X > y AND X <= z
51 // X > y AND X < z
52 return (range->min < range->max);
53 }
54}
55
56bool UnsignedRange_ContainsValue
57(

Callers 4

_ConstructIteratorFunction · 0.85

Calls

no outgoing calls

Tested by 2