Home
last modified time | relevance | path

Searched refs:needleLength (Results 1 – 3 of 3) sorted by relevance

/third_party/node/deps/undici/src/node_modules/@fastify/busboy/deps/streamsearch/
Dsbmh.js41 const needleLength = needle.length
43 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-var
65 this._occ[needle[i]] = needleLength - 1 - i
90 const needleLength = needle.length
91 const lastNeedleChar = needle[needleLength - 1]
113 while (pos < 0 && pos <= len - needleLength) {
[all …]
/third_party/typescript/src/services/
Dutilities.ts3366 const needleLength = needle.length; constant
3367 if (needleLength + startIndex > haystack.length) {
3370 for (let i = 0; i < needleLength; i++) {
/third_party/node/deps/corepack/dist/lib/
Dcorepack.cjs5943 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 …]