Lines Matching refs:out

237     var out={D:date, T:time, u:86400*(v-date)-time,y:0,m:0,d:0,H:0,M:0,S:0,q:0};  class in make_ssf.parse_date_code
238 if(Math.abs(out.u) < 1e-6) out.u = 0;
241 if(out.u > 0.999) {
242 out.u = 0;
257 out.y = dout[0]; out.m = dout[1]; out.d = dout[2];
258 out.S = time % 60; time = Math.floor(time / 60);
259 out.M = time % 60; time = Math.floor(time / 60);
260 out.H = time;
261 out.q = dow;
262 return out;
267 var o="", ss=0, tt=0, y = val.y, out, outl = 0;
274 case 1: case 2: out = y % 100; outl = 2; break;
275 default: out = y % 10000; outl = 4; break;
279 case 1: case 2: out = val.m; outl = fmt.length; break;
286 case 1: case 2: out = val.d; outl = fmt.length; break;
292 case 1: case 2: out = 1+(val.H+11)%12; outl = fmt.length; break;
297 case 1: case 2: out = val.H; outl = fmt.length; break;
302 case 1: case 2: out = val.M; outl = fmt.length; break;
324 case '[h]': case '[hh]': out = val.D*24+val.H; break;
325 case '[m]': case '[mm]': out = (val.D*24+val.H)*60+val.M; break;
326 … case '[s]': case '[ss]': out = ((val.D*24+val.H)*60+val.M)*60+Math.round(val.S+val.u); break;
330 out = y; outl = 1;
332 if(outl > 0) return pad0(out, outl); else return "";
593 var out = [];
601 out[out.length] = fmt.substr(j,i-j);
604 out[out.length] = fmt.substr(j);
606 return out;
611 var out = [], o = "", i = 0, c = "", lst='t', q, dt, j, cc;
618 out[out.length] = {t:'G', v:'General'}; i+=7; break; class
621 out[out.length] = {t:'t', v:o}; ++i; break; class
623 out[out.length] = {t:t, v:w}; ++i; break; class
624 case '_': out[out.length] = {t:'t', v:" "}; i+=2; break;
626 out[out.length] = {t:'T', v:v}; ++i; break;
630 out[out.length] = {t:'X', v:fmt.substr(i,2)}; lst = c; i+=2; break; class
642 out[out.length] = {t:c, v:o}; lst = c; break; class
650 out[out.length] = q; lst = c; break;
657 out[out.length] = {t:'Z', v:o.toLowerCase()}; class
664 out[out.length] = {t:'s', v:o}; break; class
669 out[out.length] = {t:'n', v:o}; break; class
672 q={t:c, v:o}; out[out.length] = q; lst = c; break;
674 case '(': case ')': out[out.length] = {t:(flen===1?'t':c), v:c}; ++i; break;
677 out[out.length] = {t:'D', v:o}; break; class
678 case ' ': out[out.length] = {t:c, v:c}; ++i; break;
681 out[out.length] = {t:'t', v:c}; ++i; break; class
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;
725 while(out[jj] != null && (
726 (c=out[jj].t) === "?" || c === "D" ||
727 …(c === " " || c === "t") && out[jj+1] != null && (out[jj+1].t === '?' || out[jj+1].t === "t" && ou…
728 out[i].t === '(' && (c === ' ' || c === 'n' || c === ')') ||
729 …c === 't' && (out[jj].v === '/' || '$€'.indexOf(out[jj].v) > -1 || out[jj].v === ' ' && out[jj+1] …
731 out[i].v += out[jj].v;
732 out[jj] = undefined; ++jj;
734 nstr += out[i].v;
736 case 'G': out[i].t = 't'; out[i].v = general_fmt(v,opts); break;
744 var decpt = out.length;
745 …for(i=0; i < out.length; ++i) if(out[i] != null && out[i].v.indexOf(".") > -1) { decpt = i; break;…
746 var lasti=out.length;
747 if(decpt === out.length && ostr.indexOf("E") === -1) {
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';
756 if(jj>=0 && lasti<out.length) out[lasti].v = ostr.substr(0,jj+1) + out[lasti].v;
758 else if(decpt !== out.length && ostr.indexOf("E") === -1) {
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';
771 if(jj>=0 && lasti<out.length) out[lasti].v = ostr.substr(0,jj+1) + out[lasti].v;
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';
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;
1406 var out = "", i = 0, c = 0, d = 0, e = 0, f = 0, w = 0;
1409 if (c < 128) { out += String.fromCharCode(c); continue; }
1411 if (c>191 && c<224) { out += String.fromCharCode(((c & 31) << 6) | (d & 63)); continue; }
1413 …if (c < 240) { out += String.fromCharCode(((c & 15) << 12) | ((d & 63) << 6) | (e & 63)); continue…
1416 out += String.fromCharCode(0xD800 + ((w>>>10)&1023));
1417 out += String.fromCharCode(0xDC00 + (w&1023));
1419 return out;
1425 var out = new Buffer(2*data.length), w, i, j = 1, k = 0, ww=0, c;
1435 if(ww !== 0) { out[k++] = ww&255; out[k++] = ww>>>8; ww = 0; }
1436 out[k++] = w%256; out[k++] = w>>>8;
1438 out.length = k;
1439 return out.toString('ucs2');
1785 i = j = 0; out = Buffer(data.length);
1790 out[c] = (data[c] ^ S[(S[i]+S[j])&255]);
1792 return out;
1937 var out = {};
1939 out.fValidRGB = d & 1;
1940 out.xColorType = d >>> 1;
1941 out.index = data.read_shift(1);
1942 out.nTintAndShade = data.read_shift(2, 'i');
1943 out.bRed = data.read_shift(1);
1944 out.bGreen = data.read_shift(1);
1945 out.bBlue = data.read_shift(1);
1946 out.bAlpha = data.read_shift(1);
1953 var out = { class in parse_FontFlags
1961 return out;
2825 var out = [];
2826 for(var i = 0; i != cElements / 2; ++i) out.push(parse_VtHeadingPair(blob));
2827 return out;
9158 var out = {}; variable
9159 if(!opts.bookSheets && !opts.bookProps) out.Sheets = sheets;
9160 out.SheetNames = sheetnames;
9161 out.SSF = SSF.get_table();
9162 out.Props = Props;
9163 out.Custprops = Custprops;
9164 return out;
9257 var out = {};
9301 else out[last_cell] = line;
9409 case 'Protect': out["!protect"] = val; break; /* for sheet or book */
9420 out["!range"] = range;
9423 out["!ref"] = encode_range(range);
9426 if(mergecells.length > 0) out["!merges"] = mergecells;
9427 if(objects.length > 0) out["!objects"] = objects;
9429 if(cur_sheet === "") Preamble = out; else Sheets[cur_sheet] = out;
9430 out = {};
9439 out = {};
9536 if(out[encode_cell({c:rngC,r:rngR})])
9537 out[encode_cell({c:rngC,r:rngR})].l = val[1];
9542 if(out[encode_cell({c:rngC,r:rngR})])
9543 out[encode_cell({c:rngC,r:rngR})].l.tooltip = val[1];
9549 cc = out[encode_cell(val[0])];
11203 var out = {};
11207 if(opts.bookProps) { out.Props = props; out.Custprops = custprops; }
11208 if(typeof sheets !== 'undefined') out.SheetNames = sheets;
11209 if(opts.bookSheets ? out.SheetNames : opts.bookProps) return out;
11246 out = { class in parse_zip
11260 out.keys = entries;
11261 out.files = zip.files;
11264 if(dir.vba.length > 0) out.vbaraw = getzipdata(zip,dir.vba[0],true);
11265 …else if(dir.defaults.bin === 'application/vnd.ms-office.vbaProject') out.vbaraw = getzipdata(zip,'…
11267 return out;
11523 var out = new Array(r.e.r-r.s.r-offset+1); variable
11562 if(isempty === false || header === 1) out[outi++] = row;
11564 out.length = outi;
11565 return out;
11571 var out = "", txt = "", qreg = /"/g;
11591 out += row + RS;
11593 return out;