Searched refs:needleLength (Results 1 – 3 of 3) sorted by relevance
41 const needleLength = needle.length43 if (needleLength === 0) {47 if (needleLength > 256) {55 .fill(needleLength) // Initialize occurrence table.60 this._lookbehind = Buffer.alloc(needleLength)64 for (var i = 0; i < needleLength - 1; ++i) { // eslint-disable-line no-var65 this._occ[needle[i]] = needleLength - 1 - i90 const needleLength = needle.length91 const lastNeedleChar = needle[needleLength - 1]113 while (pos < 0 && pos <= len - needleLength) {[all …]
3366 const needleLength = needle.length; constant3367 if (needleLength + startIndex > haystack.length) {3370 for (let i = 0; i < needleLength; i++) {
5943 const needleLength = needle.length;5944 if (needleLength === 0) {5947 if (needleLength > 256) {5952 this._occ = new Array(256).fill(needleLength);5956 this._lookbehind = Buffer.alloc(needleLength);5957 for (var i = 0; i < needleLength - 1; ++i) {5958 this._occ[needle[i]] = needleLength - 1 - i;5982 const needleLength = needle.length;5983 const lastNeedleChar = needle[needleLength - 1];5987 while (pos < 0 && pos <= len - needleLength) {[all …]