Lines Matching refs:length

94     if ("string" === a && s.length > 0) return function(i){
95 if ((i = String(i)).length > 100) return;
202 return e.toString().substring(2, e.toString().length - 2).replace(/\.\*\?$/, "*")
214 const r = ("string" == typeof e ? e : "").split(/[\s,]+/), u = r.length;
217 if ("*" === e[e.length-1]) return !0;
219 for (n = 0, r = t.skips.length; n < r; n++) if (t.skips[n].test(e)) return !1;
220 for (n = 0, r = t.names.length; n < r; n++) if (t.names[n].test(e)) return !0;
228 for (let t = 0; t < e.length; t++) n = (n << 5) - n + e.charCodeAt(t), n |= 0;
229 return t.colors[Math.abs(n)%t.colors.length]
239 const n = e.startsWith("-") ? "" : 1 === e.length ? "-" : "--", r = t.indexOf(n + e), u = t.indexOf("--");
280 return n("no-color") || n("no-colors") || n("color=false") ? u = !1 : (n("color") || n("colors") || n("color=true") || n("color=always")) && (u = !0), "FORCE_COLOR" in r && (u = 0 === r.FORCE_COLOR.length || 0 !== parseInt(r.FORCE_COLOR, 10)), K = {
293 for (let r = 0; r < n.length; r++) e.inspectOpts[n[r]] = t.inspectOpts[n[r]]
412 for (var u = Object.keys(e), o = new Array(u.length), i = 0; i < u.length; i++) {
436 for (var n = Object.keys(e), r = new Array(n.length), u = 0; u < n.length; u++) {
459 return e instanceof Buffer ? Buffer.from(e) : new e.constructor(e.buffer.slice(), e.byteOffset, e.length)
470 oe("New configuration to be validated: ", e), le(e, ce(ae(e)), "must be an object."), oe(`Calling pre-processing listeners (${ie.length})`), ie.forEach((t => t(e))), oe("Configuration pre-processing finished."), oe(`Calling configuration listeners (${se.length})`), se.forEach((t => t(e))), oe("Configuration finished.")
473 se.push(e), oe(`Added listener, now ${se.length} listeners`)
476 ie.push(e), oe(`Added pre-processing listener, now ${ie.length} listeners`)
487 for (var n = e.toString(); n.length < t; ) n = "0" + n;
626 e < r.length && (n = r.slice(r.length - e).join("."))
697 r.length > e && (n = r.slice(-e).join(Ee.sep))
735 if (e) if ("-" === e.charAt(0)) for (n = parseInt(e.slice(1), 10); t.length < n; ) t += " "; else for (n = parseInt(e, 10); t.length < n; ) t = ` ${t}`;
747 s = s.slice(r.index + r[0].length)
838 for (let o = Le(n), { length:i } = o, s = 0; s < i; s++) {
845 for (let { length:e } = u, t = 0; t < e; t++) {
862 for (; s < o.length; ) c = !0, i[s] = Me(o[s++], a, n);
974 it.length = 0, ({
1067 (0 === e.length || n.data.findIndex((e => r.test(e))) < 0) && (Ot("Not excluded, sending to appender"), t(n))
1074 if ("function" != typeof arguments[arguments.length-1]) return new Promise(((t, n) => {
1075 arguments[arguments.length] = (e, r) => {
1078 }, arguments.length++, e.apply(this, arguments)
1084 const t = arguments[arguments.length-1];
1270 for (var o = Object.keys(r), i = 0, s = o.length; i < s; i++) {
1292 for (var u = Object.keys(r), o = 0, i = u.length; o < i; o++) {
1349 qt(Vt[Ht]), l.equal(Vt[Ht].length, 0)
1487 for (var e = Date.now(), t = 0; t < Vt[Ht].length; ++t) Vt[Ht][t].length > 2 && (Vt[Ht][t][3] = e, Vt[Ht][t][4] = e);
1492 if (clearTimeout(Zt), Zt = void 0, 0 !== Vt[Ht].length) {
1523 return "function" == typeof r[r.length-1] ? n.write(e, t, ...r) : new Promise(((u, o) => {
1534 return (e = rn.normalize(rn.resolve(e)).split(rn.sep)).length > 0 ? e[0] : null
1926 let o, i = u.length;
2367 let i = [(e, t) => e.endsWith(".gz") ? (io("it is gzipped"), t.isCompressed = !0, e.slice(0, -3)) : e, t ? t => t.startsWith(e.name) && t.endsWith(e.ext) ? (io("it starts and ends with the right things"), t.slice(e.name.length + 1, -1 * e.ext.length)) : o : t => t.startsWith(e.base) ? (io("it starts with the right things"), t.slice(e.base.length + 1)) : o, n ? (e, t) => {
2369 let o = r[r.length-1];
2372 void 0 !== o && o.match(/^\d+$/) ? (i = e.slice(0, -1 * (o.length + 1)), io(`dateStr is ${i}`), n && !i && (i = o, o = "0")) : o = "0";
2387 if (Do(`constructor: creating RollingFileWriteStream. path=${e}`), "string" != typeof e || 0 === e.length) throw new Error(`Invalid filename: ${e}`);
2447 this.state.currentSize += e.length, n(t)
2474 for (let t = (this.state.currentDate ? e.filter((e => e.date === this.state.currentDate)) : e).length; t >= 0; t--) {
2523 if (Do(`_clean: numToKeep = ${this.options.numToKeep}, existingFiles = ${e.length}`), Do("_clean: existing files are: ", e), this._tooManyFiles(e.length)) {
2524 const n = e.slice(0, e.length - this.options.numToKeep).map((e => ho.format({
2576 if ("string" != typeof e || 0 === e.length) throw new Error(`Invalid filename: ${e}`);
2681 return parseInt(t.slice(`${Go.basename(e)}.`.length), 10) || 0
2704 Ho("in write"), this.shouldRoll() && (this.currentSize = 0, this.roll(this.filename)), Ho("writing the chunk to the file"), n.currentSize += e.length, Vo.appendFileSync(n.filename, e)
2713 if ("string" != typeof e || 0 === e.length) throw new Error(`Invalid filename: ${e}`);
2764 qo("shutdown called"), r.length && o ? (qo("buffer has items, waiting 100ms to empty"), o -= 1, setTimeout((() => {
2811 Qo.throwExceptionIf(e, Qo.not(t.length), "must define at least one appender."), t.forEach((t => {
2828 }), i(e, o, u),!e.categories[u] && o.appenders && o.appenders.length && o.level && (e.categories[u] = o), t.appenders = t.appenders || [], t.level = t.level || o.level, o.appenders.forEach((e => {
2844 n.throwExceptionIf(e, n.not(t.length), "must define at least one category."), t.forEach((t => {
2846 n.throwExceptionIf(e, [n.not(o.appenders), n.not(o.level)], `category "${t}" is not valid (must be an object with properties "appenders" and "level")`), n.throwExceptionIf(e, n.not(Array.isArray(o.appenders)), `category "${t}" is not valid (appenders must be an array of appender names)`), n.throwExceptionIf(e, n.not(o.appenders.length), `category "${t}" is not valid (appenders must contain at least one appender name)`), Object.prototype.hasOwnProperty.call(o, "enableCallStack") && n.throwExceptionIf(e, "boolean" != typeof o.enableCallStack, `category "${t}" is not valid (enableCallStack must be boolean type)`), o.appenders.forEach((r => {
2895 if (!n.length) return null;
2897 if (r && 6 === r.length) {
2952 n ? this.isLevelEnabled(n) && this._log(n, t) : yi.validIdentifier(e) && t.length > 0 ? (this.log(hi.WARN, "log4js:logger.log: valid log-level not found as first parameter given:", e), this.log(hi.INFO, `[${e}]`, ...t)) : this.log(hi.INFO, e, ...t)
3015 for (let n = 0; n < t.length; n++) e = e.replace(t[n].token, t[n].replacement);
3026 bi.length = 0
3032 _i(`received logEvent, number of events now ${bi.length + 1}`), _i("log event was ", e), bi.push(e)
3045 const u = t.format || ':remote-addr - - ":method :url HTTP/:http-version" :status :content-length ":referrer" ":user-agent"';
3097 token: ":content-length",
3098 replacement: t.getHeader("content-length") || t.__headers && t.__headers["Content-Length"] || "-"
3104 for (let e = 0; e < t.length; ++e) for (let n = e + 1; n < t.length; ++n) t[e].token == t[n].token && t.splice(n--, 1);
3191 n.length > 0 && (n = n.filter((e => e.NAME !== t.NAME))), n.push(t), e.hvigorTrace.CUSTOM_TASKS = n
3194 n.length > 0 && (n = n.filter((e => e.PLUGIN_ID !== t.PLUGIN_ID))), n.push({
3288 return "\n" === e ? (Cs++, Fs = 0) : e ? Fs += e.length : Fs++, e && (ys += e.length), e
3298 if (2 === n.length) throw new Error(`${n[0].trim()}${is.default.EOL}\t at ${e}:${n[1].trim()}`)
3714 const t = ms[ms.length-1];
3723 const e = ms[ms.length-1];
3731 const e = ms[ms.length-1];
3753 return `\\x${`00${t}`.substring(t.length)}`
3780 if ("function" != typeof t[t.length-1]) return new Promise(((n, r) => {
3787 const n = t[t.length-1];
3808 return "function" == typeof r[r.length-1] ? n.write(e, t, ...r) : new Promise(((u, o) => {
3815 return "function" == typeof r[r.length-1] ? n.readv(e, t, ...r) : new Promise(((u, o) => {
3822 return "function" == typeof r[r.length-1] ? n.writev(e, t, ...r) : new Promise(((u, o) => {
4665 2 === t.length && (r[t[0]] = t[t.length-1])
4668 if (e && e[0].length < o.length) {
4669 const t = o.substring(e[0].length).split("=");
4670 2 === t.length && (r[t[0]] = t[t.length-1])
4681 if (1 === u.length && "@ohos/hvigor-ohos-plugin" === u[0]) return t > "2.5.0";
4704 return void 0 === t ? 0 : Object.getOwnPropertyNames(t).length
4744 if (!t || 0 === t.length) return;