UNPKG

@tanishiking/aho-corasick

Version:

TypeScript implementation of the Aho-Corasick algorithm for efficient string matching

18 lines (17 loc) 518 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Interval = void 0; var Interval = /** @class */ (function () { function Interval(start, end) { this.start = start; this.end = end; } Interval.prototype.equals = function (other) { return this.start === other.start && this.end === other.end; }; Interval.prototype.size = function () { return this.end - this.start + 1; }; return Interval; }()); exports.Interval = Interval;