Lines Matching refs:i

16 …tion char_codes(data) { var o = []; for(var i = 0, len = data.length; i < len; ++i) o[i] = data.ch…
37 for(var i = 0; i < input.length; ) {
38 c1 = input.charCodeAt(i++);
39 c2 = input.charCodeAt(i++);
40 c3 = input.charCodeAt(i++);
56 for(var i = 0; i < input.length;) {
57 e1 = map.indexOf(input.charAt(i++));
58 e2 = map.indexOf(input.charAt(i++));
59 e3 = map.indexOf(input.charAt(i++));
60 e4 = map.indexOf(input.charAt(i++));
93 function _strrev(x) { var o = "", i = x.length-1; while(i>=0) o += x.charAt(i--); return o; }
101 …n pad0r(v,d){if(v>p2_32||v<-p2_32) return pad0r1(v,d); var i = Math.round(v); return pad0r2(i,d); }
102i) { return s.length >= 7 + i && (s.charCodeAt(i)|32) === 103 && (s.charCodeAt(i+1)|32) === 101 &&… argument
206 …for(var i = 0; i != o.length; ++i) if((o.charCodeAt(i) | 0x20) === 101) return o.replace(gnr4,".$1…
390 for(var i = 0; i != str.length; ++i) switch((cc=str.charCodeAt(i))) {
595 for(var i = 0, j = 0; i < fmt.length; ++i) switch((cc=fmt.charCodeAt(i))) {
599 ++i; break;
601 out[out.length] = fmt.substr(j,i-j);
602 j = i+1;
611 var out = [], o = "", i = 0, c = "", lst='t', q, dt, j, cc;
614 while(i < fmt.length) {
615 switch((c = fmt[i])) {
617 if(!isgeneral(fmt, i)) throw new Error('unrecognized character ' + c + ' in ' +fmt);
618 out[out.length] = {t:'G', v:'General'}; i+=7; break;
620 … for(o="";(cc=fmt.charCodeAt(++i)) !== 34 && i < fmt.length;) o += String.fromCharCode(cc);
621 out[out.length] = {t:'t', v:o}; ++i; break;
622 case '\\': var w = fmt[++i], t = (w === "(" || w === ")") ? w : 't';
623 out[out.length] = {t:t, v:w}; ++i; break;
624 case '_': out[out.length] = {t:'t', v:" "}; i+=2; break;
626 out[out.length] = {t:'T', v:v}; ++i; break;
628 if(fmt[i+1] === "1" || fmt[i+1] === "2") {
629 if(dt==null) { dt=parse_date_code(v, opts, fmt[i+1] === "2"); if(dt==null) return ""; }
630 out[out.length] = {t:'X', v:fmt.substr(i,2)}; lst = c; i+=2; break;
639 o = c; while(++i<fmt.length && fmt[i].toLowerCase() === c) o+=c;
646 …if(fmt.substr(i, 3) === "A/P") { if(dt!=null) q.v = dt.H >= 12 ? "P" : "A"; q.t = 'T'; hr='h';i+=3…
647 …else if(fmt.substr(i,5) === "AM/PM") { if(dt!=null) q.v = dt.H >= 12 ? "PM" : "AM"; q.t = 'T'; i+=…
648 else { q.t = "t"; ++i; }
653 while(fmt[i++] !== ']' && i < fmt.length) o += fmt[i];
663 o = c; while((c=fmt[++i]) === "0") o += c;
668 …o = c; while("0#?.,E+-%".indexOf(c=fmt[++i]) > -1 || c=='\\' && fmt[i+1] == "-" && "0#".indexOf(fm…
671 o = c; while(fmt[++i] === c) o+=c;
673 case '*': ++i; if(fmt[i] == ' ' || fmt[i] == '*') ++i; break; // **
674 case '(': case ')': out[out.length] = {t:(flen===1?'t':c), v:c}; ++i; break;
676 o = c; while("0123456789".indexOf(fmt[++i]) > -1) o+=fmt[i];
678 case ' ': out[out.length] = {t:c, v:c}; ++i; break;
681 out[out.length] = {t:'t', v:c}; ++i; break;
685 for(i=out.length-1, lst='t'; i >= 0; --i) {
686 switch(out[i].t) {
687 case 'h': case 'H': out[i].t = hr; lst='h'; if(bt < 1) bt = 1; break;
689 if((ssm=out[i].v.match(/\.0+$/))) ss0=Math.max(ss0,ssm[0].length-1);
692 case 'd': case 'y': case 'M': case 'e': lst=out[i].t; break;
693 case 'm': if(lst === 's') { out[i].t = 'M'; if(bt < 2) bt = 2; } break;
694 case 'X': if(out[i].v === "B2");
697 if(bt < 1 && out[i].v.match(/[Hh]/)) bt = 1;
698 if(bt < 2 && out[i].v.match(/[Mm]/)) bt = 2;
699 if(bt < 3 && out[i].v.match(/[Ss]/)) bt = 3;
716 for(i=0; i < out.length; ++i) {
717 switch(out[i].t) {
719 case 'X': out[i] = undefined; break;
721 out[i].v = write_date(out[i].t.charCodeAt(0), out[i].v, dt, ss0);
722 out[i].t = 't'; break;
724 jj = i+1;
728 out[i].t === '(' && (c === ' ' || c === 'n' || c === ')') ||
731 out[i].v += out[jj].v;
734 nstr += out[i].v;
735 i = jj-1; break;
736 case 'G': out[i].t = 't'; out[i].v = general_fmt(v,opts); break;
745 …for(i=0; i < out.length; ++i) if(out[i] != null && out[i].v.indexOf(".") > -1) { decpt = i; break;…
748 for(i=out.length-1; i>= 0;--i) {
749 if(out[i] == null || 'n?('.indexOf(out[i].t) === -1) continue;
750 …if(jj>=out[i].v.length-1) { jj -= out[i].v.length; out[i].v = ostr.substr(jj+1, out[i].v.length); }
751 else if(jj < 0) out[i].v = "";
752 else { out[i].v = ostr.substr(0, jj+1); jj = -1; }
753 out[i].t = 't';
754 lasti = i;
760 for(i=decpt; i>= 0; --i) {
761 if(out[i] == null || 'n?('.indexOf(out[i].t) === -1) continue;
762 j=out[i].v.indexOf(".")>-1&&i===decpt?out[i].v.indexOf(".")-1:out[i].v.length-1;
763 vv = out[i].v.substr(j+1);
765 if(jj>=0 && (out[i].v[j] === "0" || out[i].v[j] === "#")) vv = ostr[jj--] + vv;
767 out[i].v = vv;
768 out[i].t = 't';
769 lasti = i;
773 for(i=decpt; i<out.length; ++i) {
774 if(out[i] == null || 'n?('.indexOf(out[i].t) === -1 && i !== decpt ) continue;
775 j=out[i].v.indexOf(".")>-1&&i===decpt?out[i].v.indexOf(".")+1:0;
776 vv = out[i].v.substr(0,j);
777 for(; j<out[i].v.length; ++j) {
780 out[i].v = vv;
781 out[i].t = 't';
782 lasti = i;
786 for(i=0; i<out.length; ++i) if(out[i] != null && 'n(?'.indexOf(out[i].t)>-1) {
787 myv = (flen >1 && v < 0 && i>0 && out[i-1].v === "-" ? -v:v);
788 out[i].v = write_num(out[i].t, out[i].v, myv);
789 out[i].t = 't';
792 for(i=0; i !== out.length; ++i) if(out[i] != null) retval += out[i].v;
850 …_table = function load_table(tbl) { for(var i=0; i!=0x0188; ++i) if(tbl[i] !== undefined) SSF.load…
1020 for(var i=1; i < nsectors; ++i) sectors[i-1] = file.slice(i*ssz,(i+1)*ssz);
1027 var i = 0, L = 0, R = 0, C = 0, j = 0, pl = Paths.length;
1030 for(; i < pl; ++i) { dad[i]=q[i]=i; FP[i]=Paths[i]; }
1033 i = q[j];
1034 L = FI[i].L; R = FI[i].R; C = FI[i].C;
1035 if(dad[i] === i) {
1036 if(L !== -1 /*NOSTREAM*/ && dad[L] !== L) dad[i] = dad[L];
1037 if(R !== -1 && dad[R] !== R) dad[i] = dad[R];
1039 if(C !== -1 /*NOSTREAM*/) dad[C] = i;
1040 if(L !== -1) { dad[L] = dad[i]; q.push(L); }
1041 if(R !== -1) { dad[R] = dad[i]; q.push(R); }
1043 for(i=1; i !== pl; ++i) if(dad[i] === i) {
1044 if(R !== -1 /*NOSTREAM*/ && dad[R] !== R) dad[i] = dad[R];
1045 else if(L !== -1 && dad[L] !== L) dad[i] = dad[L];
1048 for(i=1; i < pl; ++i) {
1049 if(FI[i].type === 0 /* unknown */) continue;
1050 j = dad[i];
1051 if(j === 0) FP[i] = FP[0] + "/" + FP[i];
1053 FP[i] = FP[j] + "/" + FP[i];
1056 dad[i] = 0;
1060 for(i=1; i < pl; ++i) {
1061 if(FI[i].type !== 2 /* stream */) FP[i] += "/";
1062 FPD[FP[i]] = FI[i];
1069 var UCPaths = new Array(Paths.length), i;
1070 …for(i = 0; i < FullPaths.length; ++i) UCFullPaths[i] = FullPaths[i].toUpperCase().replace(chr0,'')…
1071 …for(i = 0; i < Paths.length; ++i) UCPaths[i] = Paths[i].toUpperCase().replace(chr0,'').replace(chr…
1091 for(var i = 0; i < m; ++i) {
1092 if((q = __readInt32LE(sector,i*4)) === ENDOFCHAIN) break;
1123 var modulus = ssz - 1, i, j, k, jj;
1124 for(i=0; i < sl; ++i) {
1126 k = (i + dir_start); if(k >= sl) k-=sl;
1148 var i = 0, namelen = 0, name, o, ctime, mtime;
1149 for(; i < sector.length; i+= 128) {
1150 blob = sector.slice(i, i+128);
1262 for(var i = 0; i !== K.length; ++i) o[obj[K[i]][key]] = K[i];
1268 for(var i = 0; i !== K.length; ++i) o[obj[K[i]]] = K[i];
1274 for(var i = 0; i !== K.length; ++i) o[obj[K[i]]] = parseInt(K[i],10);
1280 for(var i = 0; i !== K.length; ++i) {
1281 if(o[obj[K[i]]] == null) o[obj[K[i]]] = [];
1282 o[obj[K[i]]].push(K[i]);
1296 for(var i = 0; i != arr.length; ++i) o += String.fromCharCode(arr[i]);
1352 var m = tag.match(attregexg), j=0, w="", v="", i=0, q="", cc="";
1353 if(m) for(i = 0; i != m.length; ++i) {
1354 cc = m[i];
1406 var out = "", i = 0, c = 0, d = 0, e = 0, f = 0, w = 0;
1407 while (i < orig.length) {
1408 c = orig.charCodeAt(i++);
1410 d = orig.charCodeAt(i++);
1412 e = orig.charCodeAt(i++);
1414 f = orig.charCodeAt(i++);
1425 var out = new Buffer(2*data.length), w, i, j = 1, k = 0, ww=0, c;
1426 for(i = 0; i < data.length; i+=j) {
1428 if((c=data.charCodeAt(i)) < 128) w = c;
1429 else if(c < 224) { w = (c&31)*64+(data.charCodeAt(i+1)&63); j=2; }
1430 … else if(c < 240) { w=(c&15)*4096+(data.charCodeAt(i+1)&63)*64+(data.charCodeAt(i+2)&63); j=3; }
1432 …w = (c & 7)*262144+(data.charCodeAt(i+1)&63)*4096+(data.charCodeAt(i+2)&63)*64+(data.charCodeAt(i+…
1519 var bits = -7, d = isLE ? -1 : 1, i = isLE ? (nl - 1) : 0, s = buf[idx + i];
1521 i += d;
1523 for (; bits > 0; e = e * 256 + buf[idx + i], i += d, bits -= 8);
1525 for (; bits > 0; m = m * 256 + buf[idx + i], i += d, bits -= 8);
1533 …function toBuffer_(bufs) { var x = []; for(var i = 0; i < bufs[0].length; ++i) { x.push.apply(x, b…
1535 …unction utf16le_(b,s,e) { var ss=[]; for(var i=s; i<e; i+=2) ss.push(String.fromCharCode(__readUIn…
1539 …___utf8 = function(b,s,e) { var ss=[]; for(var i=s; i<e; i++) ss.push(String.fromCharCode(__readUI…
1541 __lpstr = ___lpstr = function lpstr_(b,i) { var len = __readUInt32LE(b,i); return len > 0 ? __utf8(…
1543 …_lpwstr = ___lpwstr = function lpwstr_(b,i) { var len = 2*__readUInt32LE(b,i); return len > 0 ? __…
1551 …ction lpstr_b(b,i) { if(!Buffer.isBuffer(b)) return ___lpstr(b, i); var len = b.readUInt32LE(i); r… argument
1552 …nction lpwstr_b(b,i) { if(!Buffer.isBuffer(b)) return ___lpwstr(b, i); var len = 2*b.readUInt32LE( argument
1556 …__double = function double_(b,i) { if(Buffer.isBuffer(b)) return b.readDoubleLE(i); return ___doub… argument
1564 …__lpstr = function(b,i) { var len = __readUInt32LE(b,i); return len > 0 ? cptable.utils.decode(cur…
1565 …__lpwstr = function(b,i) { var len = 2*__readUInt32LE(b,i); return len > 0 ? cptable.utils.decode(…
1578 var o="", oI, oR, oo=[], w, vv, i, loc;
1583 … else for(i = 0; i != size; ++i) { o+=String.fromCharCode(__readUInt16LE(this, loc)); loc+=2; }
1604 for(i = 0; i != size; ++i) {
1608 vv = ReadShift.call(this, size-i, w ? 'dbcs-cont' : 'sbcs-cont');
1616 for(i = 0; i != size; ++i) {
1620 vv = ReadShift.call(this, size-i, w ? 'dbcs-cont' : 'sbcs-cont');
1642 var size, i;
1644 for(i = 0; i != val.length; ++i) this.writeUInt16LE(val.charCodeAt(i), this.l + 2 * i);
1741 for(var i = 0; i != 4; ++i) {
1779 var c = 0, i = 0, j = 0, t = 0;
1780 for(i = 0; i != 256; ++i) S[i] = i;
1781 for(i = 0; i != 256; ++i) {
1782 j = (j + S[i] + (key[i%key.length]).charCodeAt(0))&255;
1783 t = S[i]; S[i] = S[j]; S[j] = t;
1785 i = j = 0; out = Buffer(data.length);
1787 i = (i + 1)&255;
1788 j = (j + S[i])%256;
1789 t = S[i]; S[i] = S[j]; S[j] = t;
1790 out[c] = (data[c] ^ S[(S[i]+S[j])&255]);
1819 for(var i = 0; i != dwSizeStrRun; ++i) rgsStrRun.push(parse_StrRun(data));
2568 for(var i = 0; i < CORE_PROPS.length; ++i) {
2569 var f = CORE_PROPS[i];
2571 r[i] = new RegExp("<" + g + "[^>]*>(.*)<\/" + g + ">");
2579 for(var i = 0; i < CORE_PROPS.length; ++i) {
2580 var f = CORE_PROPS[i], cur = data.match(CORE_PROPS_REGEX[i]);
2611 …for(var i = 0; i != CORE_PROPS.length; ++i) { var f = CORE_PROPS[i]; cp_doit(f[0], cp[f[1]], null,…
2651 for(var i = 0; i !== v.length; ++i) {
2652 switch(v[i].v) {
2653 case "Worksheets": widx = j; p.Worksheets = +(v[++i].v); break;
2654 case "Named Ranges": ++i; break; // TODO: Handle Named Ranges
2699 if(m) for(var i = 0; i != m.length; ++i) {
2700 var x = m[i], y = parsexmltag(x);
2806 for(var i = 0; i != length; ++i) ret[i] = blob.read_shift(0, 'lpstr');
2826 for(var i = 0; i != cElements / 2; ++i) out.push(parse_VtHeadingPair(blob));
2918 var Props = [], i = 0;
2921 for(i = 0; i != NumProps; ++i) {
2924 Props[i] = [PropID, Offset + start_addr];
2927 for(i = 0; i != NumProps; ++i) {
2928 if(blob.l !== Props[i][1]) {
2930 if(i>0 && PIDSI) switch(PIDSI[Props[i-1][0]].t) {
2931 … case 0x02 /*VT_I2*/: if(blob.l +2 === Props[i][1]) { blob.l+=2; fail = false; } break;
2932 … case 0x50 /*VT_STRING*/: if(blob.l <= Props[i][1]) { blob.l=Props[i][1]; fail = false; } break;
2933 …case 0x100C /*VT_VECTOR|VT_VARIANT*/: if(blob.l <= Props[i][1]) { blob.l=Props[i][1]; fail = false…
2935 if(!PIDSI && blob.l <= Props[i][1]) { fail=false; blob.l = Props[i][1]; }
2936 …(fail) throw new Error("Read Error: Expected address " + Props[i][1] + ' at ' + blob.l + ' :' + i);
2939 var piddsi = PIDSI[Props[i][0]];
2971 if(Props[i][0] === 0x1) {
2980 } else if(Props[i][0] === 0) {
2981 if(CodePage === 0) { Dictionary = i; blob.l = Props[i+1][1]; continue; }
2984 var name = DictObj[Props[i][0]];
7331 … for(var i = 0; i != merges.length; ++i) o += '<mergeCell ref="' + encode_range(merges[i]) + '"/>';
7336 for(var i = 0; i != data.length; ++i) {
7337 var val = parsexmltag(data[i], true);
7376 for(var i = 0; i != cols.length; ++i) {
7377 if(!(col = cols[i])) continue;
7378 var p = {min:i+1,max:i+1};
7434 var ri = 0, x = "", cells = [], cref = [], idx = 0, i=0, cc=0, d="", p;
7457 cref = x.match(rregex); idx = ri; i=0; cc=0;
7461 for(i=0; i != d.length; ++i) {
7462 if((cc=d.charCodeAt(i)-64) < 1 || cc > 26) break;
7468 for(i = 0; i != x.length; ++i) if(x.charCodeAt(i) === 62) break; ++i;
7469 tag = parsexmltag(x.substr(0,i), true);
7471 d = x.substr(i);
8087 for(var i=0; i != defaults.length; ++i) { var z = defaults[i];
8093 for(var i = 0; i != defaults.length; ++i) { var z = defaults[i];
8240 for(var i = 0; i != wb.SheetNames.length; ++i)
8241 …gth] = (writextag('sheet',null,{name:wb.SheetNames[i].substr(0,31), sheetId:""+(i+1), "r:id":"rId"…
8363 for(var i = 0; i != 4; ++i) o.write_shift(4, 0);
8486 var m = tag.match(attregexg2), y, j, w, i;
8487 if(m) for(i = 0; i != m.length; ++i) {
8488 y = m[i].match(attregex2);
8502 var m = tag.match(attregexg2), y, j, w, i;
8503 if(m) for(i = 0; i != m.length; ++i) {
8504 y = m[i].match(attregex2);
8720 for(var i = 0; i < +csty.Span; ++i) cstys[cstys.length] = csty;
11091 for(var i = 0; i != defaults.length; ++i) {
11092 var d = defaults[i];
11216 var i=0;
11234 for(i = 0; i != props.Worksheets; ++i) {
11235 if(wbrels) path = 'xl/' + (wbrels[i][1]).replace(/[\/]?xl\//, "");
11237 path = 'xl/worksheets/sheet'+(i+1-nmode)+"." + wbext;
11241 safe_parse_ws(zip, path, relsPath, props.SheetNames[i], sheetRels, sheets, opts);
11444 …ol(colstr) { var c = unfix_col(colstr), d = 0, i = 0; for(; i !== c.length; ++i) d = 26*d + c.char…
11463 var idx = 0, i = 0, cc = 0;
11465 for(idx = 0; i < len; ++i) {
11466 if((cc=range.charCodeAt(i)-64) < 1 || cc > 26) break;
11471 for(idx = 0; i < len; ++i) {
11472 if((cc=range.charCodeAt(i)-48) < 0 || cc > 9) break;
11477 if(i === len || range.charCodeAt(++i) === 58) { o.e.c=o.s.c; o.e.r=o.s.r; return o; }
11479 for(idx = 0; i != len; ++i) {
11480 if((cc=range.charCodeAt(i)-64) < 1 || cc > 26) break;
11485 for(idx = 0; i != len; ++i) {
11486 if((cc=range.charCodeAt(i)-48) < 0 || cc > 9) break;
11578 var i = 0, cc = 0, val;
11587 …for(i = 0, cc = 0; i !== txt.length; ++i) if((cc = txt.charCodeAt(i)) === fs || cc === rs || cc ==…
11602 var i = 0; variable
11615 cmds[i++] = y + "=" + val;
11618 cmds.length = i;