Simple class to track offsets Supports only simple cases (no support for overlapping offsets)
More...
Simple class to track offsets Supports only simple cases (no support for overlapping offsets)
◆ append()
CirrusSearch\Parser\QueryStringRegex\OffsetTracker::append |
( |
| $start, |
|
|
| $end ) |
- Parameters
-
int | $start | start offset (inclusive) |
int | $end | end offset (exclusive) |
◆ appendNodes()
CirrusSearch\Parser\QueryStringRegex\OffsetTracker::appendNodes |
( |
array | $nodes | ) |
|
Append an array of ParsedNode into the tracker.
The array must not contain any overlapping node.
- Parameters
-
\CirrusSearch\Parser\AST\ParsedNode[] | $nodes | |
◆ getMinimalUnconsumedOffset()
CirrusSearch\Parser\QueryStringRegex\OffsetTracker::getMinimalUnconsumedOffset |
( |
| $offset = 0 | ) |
|
return this first unconsumed offset in this tracker greater than $offset
- Parameters
-
- Returns
- int
◆ getOffsets()
CirrusSearch\Parser\QueryStringRegex\OffsetTracker::getOffsets |
( |
| ) |
|
◆ overlap()
CirrusSearch\Parser\QueryStringRegex\OffsetTracker::overlap |
( |
| $start, |
|
|
| $end ) |
The documentation for this class was generated from the following file:
- includes/Parser/QueryStringRegex/OffsetTracker.php