Constructor
new LazyGroup(ranges)
Create a new LazyGroup
Name | Type | Description |
---|---|---|
ranges | Array.<Range> | | initial value for #ranges; can be a |
Members
lazy :boolean
Whether ranges have been converted to RangeGroup already
- boolean
ranges :Array.<Range>|RangeGroup
Ranges, possibly not converted to a group yet
- Array.<Range> |
RangeGroup
readonly :boolean
Indicates value came from unicode property lookup, so shouldn't be modified
- boolean
Methods
binaryOp(op, other)
Perform binary set operation
Name | Type | Description |
---|---|---|
op | string | operation to perform; one of |
other | LazyGroup | other operand of the operation |
complement()
Compute complement/inverse of the group
copy(other)
Copy the values (shallow) from other to this
Name | Type | Description |
---|---|---|
other | LazyGroup |
get(writable) → {RangeGroup}
Greedily evaluate the RangeGroup
and return it
Name | Type | Default | Description |
---|---|---|---|
writable | boolean | false | whether we need the range group to be writable; will make a copy if necessary |
- Type:
- RangeGroup
isEmpty() → {boolean}
Check if range group is empty
- Type:
- boolean
size() → {number}
Get size of range group
- Type:
- number
(static) batch(op, groups) → {LazyGroup}
Perform batch set operation; the operation will have left-to-right operator precedence
Name | Type | Description |
---|---|---|
op | string | operation to perform; one of |
groups | Array.<LazyGroup> | groups to operate on |
output of operation; it is the same as groups[0]
, modified in-place
- Type:
- LazyGroup