Lines Matching refs:x

64 var _getchar = function _gc1(x/*:number*/)/*:string*/ { return String.fromCharCode(x); };  argument
65 var _getansi = function _ga1(x/*:number*/)/*:string*/ { return String.fromCharCode(x); }; argument
74 _getchar = function _gc2(x/*:number*/)/*:string*/ { argument
75 if(current_codepage === 1200) return String.fromCharCode(x);
76 return $cptable.utils.decode(current_codepage, [x&255,x>>8])[0];
78 _getansi = function _ga2(x/*:number*/)/*:string*/ { argument
79 return $cptable.utils.decode(current_ansi, [x])[0];
166 var x = Buffer_from([65,0]);
167 if(!x) return false;
168 var o = x.toString("utf16le");
189 return s.split("").map(function(x/*:string*/)/*:number*/{ return x.charCodeAt(0) & 0xff; }); argument
288 function _strrev(x/*:string*/)/*:string*/ { var o = "", i = x.length-1; while(i>=0) o += x.charAt(i… argument
441 function SSF_frac(x/*:number*/, D/*:number*/, mixed/*:?boolean*/)/*:Array<number>*/ { argument
442 var sgn = x < 0 ? -1 : 1;
443 var B = x * sgn;
756 …(_strrev(fmt.replace(/\\/g,"")).replace(/[0#]/g,function(x){return ri<o.length?o.charAt(ri++):x===… argument
799 case "#,###": var x = commaify(pad0r(aval,0)); return x !== "0" ? sign + x : "";
876 …(_strrev(fmt.replace(/\\/g,"")).replace(/[0#]/g,function(x){return ri<o.length?o.charAt(ri++):x===… argument
917 case "#,###": var x = commaify(""+aval); return x !== "0" ? sign + x : "";
2000 data.sort(function(x,y) { return namecmp(x[0], y[0]); });
2193 var UCFullPaths/*:Array<string>*/ = cfb.FullPaths.map(function(x) { return x.toUpperCase(); });
2194 …CPaths/*:Array<string>*/ = UCFullPaths.map(function(x) { var y = x.split("/"); return y[y.length -…
2955 "mso": "application/x-mso",
3645 function strip_ns(x/*:string*/)/*:string*/ { return x.replace(nsregex2, "<$1"); } argument
3660 var encregex = /&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig, coderegex = /_x([\da-fA-F]{4})_/ig;
3663 …$$, $1) { return encodings[$$]||String.fromCharCode(parseInt($1,$$.indexOf("x")>-1?16:10))||$$; })…
3683 …y]; }).replace(/\n/g, "<br/>").replace(htmlcharegex,function(s) { return "&#x" + ("000"+s.charCode…
3688 …n(y) { return rencoding[y]; }).replace(htmlcharegex,function(s) { return "&#x" + (s.charCodeAt(0).…
3788 ].map(function(x/*:[string, string]*/) { return [new RegExp('&' + x[0] + ';', "ig"), x[1]]; }); argument
3823 matches.forEach(function(x/*:string*/) { argument
3824 var v = x.replace(vtvregex,"").match(vtmregex);
3889 'x': 'urn:schemas-microsoft-com:office:excel', property in XLMLNS
3923x=[],w=10240; for(var i=0;i<bufs[0].length;++i) if(bufs[0][i]) for(var j=0,L=bufs[0][i].length;j<L…
3924 …(bufs[0][0])) ? Buffer.concat(bufs[0].map(function(x) { return Buffer.isBuffer(x) ? x : Buffer_fro… argument
4455 function write_UInt32LE(x/*:number*/, o) { argument
4457 o.write_shift(4, x);
4946 …ray<[number, number, number]>*/ { return arr.map(function(x) { return [(x>>16)&255,(x>>8)&255,x&25… argument
5319 (data.match(tagregex)||[]).forEach(function(x) { argument
5320 var y = parsexmltag(x);
5360 ['emf', 'image/x-emf'],
5361 ['wmf', 'image/x-wmf'],
5366 ].map(function(x) { argument
5367 return writextag('Default', null, {'Extension':x[0], 'ContentType': x[1]});
5467 (data.match(tagregex)||[]).forEach(function(x) { argument
5468 var y = parsexmltag(x);
5676 …var parts = (typeof TOP == "string") ? parseVector(TOP, opts).map(function (x) { return x.v; }) : … argument
5772 var x = m[i], y = parsexmltag(x);
5778 default: if (x.indexOf('<vt:') === 0) {
5779 var toks = x.split('>');
5803 if(opts.WTF && typeof console !== 'undefined') console.warn('Unexpected', x, type, toks);
5805 } else if(x.slice(0,2) === "</") {/* empty */
5806 } else if(opts.WTF) throw new Error(x);
6094 Props.sort(function(x,y) { return x[1] - y[1]; }); argument
6556 function parse_LongRGB(blob, length) { var x = parse_LongRGBA(blob, length); x[3] = 0; return x; }
7729 case 0xF5: break; // FoxPro 2.x with memo
8070 …var record=rstr.replace(/;;/g, "\u0000").split(";").map(function(x) { return x.replace(/\u0000/g, … argument
9254 …if(argc > out.length) { console.error("WK1 bad formula parse 0x" + cc.toString(16) + ":|" + out.jo…
9944 function parse_si(x, opts) { argument
9947 if(!x) return { t: "" };
9951 if(x.match(/^\s*<(?:\w+:)?t[^>]*>/)) {
9952 z.t = unescapexml(utf8read(x.slice(x.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||""), true);
9953 z.r = utf8read(x);
9957 else if((/*y = */x.match(sirregex))) {
9958 z.r = utf8read(x);
9959 …z.t = unescapexml(utf8read((x.replace(sirphregex, '').match(sitregex)||[]).join("").replace(tagreg…
10038 if(!pass || opts.WTF) throw new Error("Unexpected record 0x" + RT.toString(16));
10209 xml.replace(tagregex, function xml_agile(x) { argument
10210 var y/*:any*/ = parsexmltag(x);
10597 (t[0].match(tagregex)||[]).forEach(function(x) { argument
10598 var y = parsexmltag(x);
10672 (t[0].match(tagregex)||[]).forEach(function(x) { argument
10673 var y = parsexmltag(x);
10738 (t[0].match(tagregex)||[]).forEach(function(x) { argument
10739 var y = parsexmltag(x);
10825 if(!icv) icv = XLSIcv[1]; //throw new Error(x); // note: 206 is valid
10899 (t[0].match(tagregex)||[]).forEach(function(x) { argument
10900 var y = parsexmltag(x), i = 0;
11283 …e.length-1] != 0x0025 /* BrtACBegin */)) throw new Error("Unexpected record 0x" + RT.toString(16));
11426 (t[0].match(tagregex)||[]).forEach(function(x) { argument
11427 var y = parsexmltag(x);
11867 throw new Error("Unexpected record 0x" + RT.toString(16));
11903 data.replace(tagregex, function(x) { argument
11904 var y = parsexmltag(x);
11972 return x;
11986 (data.match(tagregex)||[]).forEach(function(x) { argument
11987 var y = parsexmltag(x);
12026 else if(!pass || opts.WTF) throw new Error("Unexpected record 0x" + RT.toString(16));
12079 else if(!pass || opts.WTF) throw new Error("Unexpected record 0x" + RT.toString(16));
12109 …writextag("xml", null, { 'xmlns:v': XLMLNS.v, 'xmlns:o': XLMLNS.o, 'xmlns:x': XLMLNS.x, 'xmlns:mv'…
12121 _comments.forEach(function(x) { ++_shapeid; o.push(write_vml_comment(x, _shapeid)); }); argument
12126 function write_vml_comment(x, _shapeid)/*:string*/ { argument
12127 var c = decode_cell(x[0]);
12139 …ute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10" + (x[1].hidden ? ";visibi…
12147 '<x:ClientData ObjectType="Note">',
12148 '<x:MoveWithCells/>',
12149 '<x:SizeWithCells/>',
12151 writetag('x:Anchor', [c.c+1, 0, c.r+1, 0, c.c+3, 20, c.r+5, 20].join(",")),
12152 writetag('x:AutoFill', "False"),
12153 writetag('x:Row', String(c.r)),
12154 writetag('x:Column', String(c.c)),
12155 x[1].hidden ? '' : '<x:Visible/>',
12156 '</x:ClientData>',
12205 if(authtag && authtag[1]) authtag[1].split(/<\/\w*:?author>/).forEach(function(x) { argument
12206 if(x === "" || x.trim() === "") return;
12207 var a = x.match(/<(?:\w+:)?author[^>]*>(.*)/);
12211 if(cmnttag && cmnttag[1]) cmnttag[1].split(/<\/\w*:?comment>/).forEach(function(x) { argument
12212 if(x === "" || x.trim() === "") return;
12213 var cm = x.match(/<(?:\w+:)?comment[^>]*>/);
12219 var textMatch = x.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/);
12235 data.forEach(function(x) { x[1].forEach(function(w) { var a = escapexml(w.a); argument
12281 data.replace(tagregex, function xml_tcmnt(x, idx) { argument
12282 var y/*:any*/ = parsexmltag(x);
12294 case '<text>': case '<text': tidx = idx + x.length; break;
12311 return x;
12342 data.replace(tagregex, function xml_tcmnt(x) {
12343 var y/*:any*/ = parsexmltag(x);
12363 return x;
12370 'xmlns:x': XMLNS_main[0]
12442 else if(!pass || opts.WTF) throw new Error("Unexpected record 0x" + RT.toString(16));
13223 var x = f[i], r/*:Array<string>*/ = [];
13224 for(var j = 0; j < x.length; ++j) {
13225 var y = x[j];
15557 …var ri = 0, x = "", cells/*:Array<string>*/ = [], cref/*:?Array<string>*/ = [], idx=0, i=0, cc=0, …
15568 x = marr[mt].trim();
15569 var xlen = x.length;
15574 outa: for(ri = 0; ri < xlen; ++ri) switch(/*x.charCodeAt(ri)*/x[ri]) {
15576 if(/*x.charCodeAt(ri-1) != 47*/x[ri-1] != "/") { ++ri; break outa; }
15579 tag = parsexmltag(x.slice(rstarti,ri), true);
15592 tag = parsexmltag(x.slice(rstarti,ri), true);
15607 cells = x.slice(ri).split(cellregex);
15611 x = cells[ri].trim();
15612 if(x.length === 0) continue;
15613 cref = x.match(rregex); idx = ri; i=0; cc=0;
15614 x = "<c " + (x.slice(0,1)=="<"?">":"") + x;
15624 for(i = 0; i != x.length; ++i) if(x.charCodeAt(i) === 62) break; ++i;
15625 tag = parsexmltag(x.slice(0,i), true);
15627 d = x.slice(i);
16431 supbooks.SheetNames = wb.SheetNames || wb.Sheets.map(function(x) { return x.name; }); argument
16679 else if(!pass || opts.WTF) throw new Error("Unexpected record 0x" + RT.toString(16));
17055 else if(!pass || opts.WTF) throw new Error("Unexpected record 0x" + RT.toString(16));
17114 //window{Height,Width}, {x,y}Window
17243 data.replace(tagregex, function xml_wb(x, idx) { argument
17244 var y/*:any*/ = parsexmltag(x);
17250 if(x.match(wbnsregex)) xmlns = "xmlns" + x.match(/<(\w+):/)[1];
17325 dnstart = idx + x.length;
17387 return x;
17412 WBPropsDef.forEach(function(x) { argument
17414 if((wb.Workbook.WBProps[x[0]]/*:any*/) == null) return;
17415 if((wb.Workbook.WBProps[x[0]]/*:any*/) == x[1]) return;
17416 workbookPr[x[0]] = (wb.Workbook.WBProps[x[0]]/*:any*/);
17585 var x = new_buf(4);
17586 x.write_shift(4, 0xFFFFFFFF);
17587 arr.push(x);
17697 ….length-1] != 0x0023 /* BrtFRTBegin */)) throw new Error("Unexpected record 0x" + RT.toString(16));
18046 interiors.forEach(function(x) { argument
18047 if(!S.patternType && x.patternType) S.patternType = x.patternType;
18909 if(ws['!margins'].header) o.push(writextag("Header", null, {'x:Margin':ws['!margins'].header}));
18910 if(ws['!margins'].footer) o.push(writextag("Footer", null, {'x:Margin':ws['!margins'].footer}));
18912 'x:Bottom': ws['!margins'].bottom || "0.75",
18913 'x:Left': ws['!margins'].left || "0.7",
18914 'x:Right': ws['!margins'].right || "0.7",
18915 'x:Top': ws['!margins'].top || "0.75"
18990 ].forEach(function(x) { if(ws['!protect'][x[0]]) o.push("<"+x[1]+"/>"); }); argument
18994 return writextag("WorksheetOptions", o.join(""), {xmlns:XLMLNS.x});
19016 if(cell.l.Tooltip) attr["x:HRefScreenTip"] = escapexml(cell.l.Tooltip);
19110 …if(ws["!autofilter"]) o.push('<AutoFilter x:Range="' + a1_to_rc(fix_range(ws["!autofilter"].ref), …
19137 'xmlns:x': XLMLNS.x,
19212 …if(b.length < length) throw "XLS Record 0x" + RecordType.toString(16) + " Truncated: " + b.length …
19728 if(!R) console.error("Missing Info for XLS Record 0x" + RecordType.toString(16));
19732 ….sort(function(a,b) { return Number(a) - Number(b); }).map(function(x){return Directory[x].name;}); argument
23155 var len = u8a.reduce(function(acc, x) { argument
23156 return acc + x.length;
23166 function popcnt(x) { argument
23167 x -= x >> 1 & 1431655765;
23168 x = (x & 858993459) + (x >> 2 & 858993459);
23169 return (x + (x >> 4) & 252645135) * 16843009 >>> 24;
23263 return u8concat(nums.map(function(x) { argument
23264 return write_varint49(x);
23963 data[key] = tswpsa[3].map(function(x) { argument
23964 return u8str(x.data);
24024 data: ri.reduce(function(acc, x) { argument
24025 if (!acc[x.R])
24026 acc[x.R] = [];
24027 x.cells.forEach(function(cell, C) {
24028 if (acc[x.R][C])
24029 throw new Error("Duplicate cell r=".concat(x.R, " c=").concat(C));
24030 acc[x.R][C] = cell;
24326 indices.sort(function(x, y) { argument
24327 return x - y;
24329 var indices_varint = indices.filter(function(x) { argument
24330 return x > 1;
24331 }).map(function(x) { argument
24332 return [x, write_varint49(x)];
24376 var x = parse_iwa_file(decompress_iwa_file(entry.content));
24377 var ainfo = x.find(function(packet) {
24380 cb(ainfo, x);
24381 entry.content = compress_iwa_file(write_iwa_file(x));
24388 var x = parse_iwa_file(decompress_iwa_file(entry.content));
24389 var ainfo = x.find(function(packet) {
24409 numbers_iwa_doit(cfb, deps, newsheetref, function(_, x) { argument
24410 return x.push(sheet);
24459 numbers_iwa_doit(cfb, deps, tiaref, function(_, x) { argument
24460 return x.push(tia);
24485 numbers_iwa_doit(cfb, deps, tmaref, function(_, x) { argument
24486 return x.push(tma);
24763 numbers_iwa_doit(cfb, deps, tmaref, function(docroot, x) { argument
24764 return write_numbers_tma(cfb, deps, ws, docroot, x, tmaref);
25125 function strip_front_slash(x/*:string*/)/*:string*/ { return x.charAt(0) == '/' ? x.slice(1) : x; } argument
25219 if(wb.Sheets) sheets = wb.Sheets.map(function pluck(x){ return x.name; }); argument
25662 var x = "";
25665 case 'base64': x = Base64_decode(f.slice(0,12)); break;
25666 case 'binary': x = f; break;
25670 …return [x.charCodeAt(0), x.charCodeAt(1), x.charCodeAt(2), x.charCodeAt(3), x.charCodeAt(4), x.cha…
25771 case 0x08: if(n[1] === 0xE7) throw new Error("Unsupported Multiplan 1.x file!"); break;
25773 if(n[1] === 0xEC) throw new Error("Unsupported Multiplan 2.x file!");
25774 if(n[1] === 0xED) throw new Error("Unsupported Multiplan 3.x file!");
26146 var y = "", x, val="";
26156 x = dense ? (sheet[R]||[])[C] : sheet[y];
26158 if(x === undefined) continue;
26159 else if(x.F != null) {
26160 y = x.F;
26161 if(!x.f) continue;
26162 val = x.f;
26165 if(x.f != null) val = x.f;
26166 else if(x.t == 'z') continue;
26167 else if(x.t == 'n' && x.v != null) val = "" + x.v;
26168 else if(x.t == 'b') val = x.v ? "TRUE" : "FALSE";
26169 else if(x.w !== undefined) val = "'" + x.w;
26170 else if(x.v === undefined) continue;
26171 else if(x.t == 's') val = "'" + x.v;
26172 else val = ""+x.v;