Lines Matching refs:type

266 function write_date(type, fmt, val, ss0) {  argument
268 switch(type) {
343 function write_num_pct(type, fmt, val){ argument
345 return write_num(type, sfmt, val * Math.pow(10,2*mul)) + fill("%",mul);
347 function write_num_cm(type, fmt, val){ argument
350 return write_num(type, fmt.substr(0,idx), val / Math.pow(10,3*(fmt.length-idx)));
401 function write_num_flt(type, fmt, val) {
402 if(type.charCodeAt(0) === 40 && !fmt.match(closeparen)) {
407 if(fmt.charCodeAt(fmt.length - 1) === 44) return write_num_cm(type, fmt, val);
408 if(fmt.indexOf('%') !== -1) return write_num_pct(type, fmt, val);
410 if(fmt.charCodeAt(0) === 36) return "$"+write_num_flt(type,fmt.substr(fmt[1]==' '?2:1),val);
430 …return val < 0 ? "-" + write_num_flt(type, fmt, -val) : commaify(""+(Math.floor(val))) + "." + pad…
432 … if((r = fmt.match(/^#,#*,#0/)) !== null) return write_num_flt(type,fmt.replace(/^#,#*,/,""),val);
434 o = _strrev(write_num_flt(type, fmt.replace(/[\\-]/g,""), val));
439 o = write_num_flt(type, "##########", val);
473 …return val < 0 ? "-" + write_num_flt(type, fmt, -val) : commaify(flr(val)).replace(/^\d,\d{3}$/,"0…
481 function write_num_cm2(type, fmt, val){
484 return write_num(type, fmt.substr(0,idx), val / Math.pow(10,3*(fmt.length-idx)));
486 function write_num_pct2(type, fmt, val){
488 return write_num(type, sfmt, val * Math.pow(10,2*mul)) + fill("%",mul);
510 function write_num_int(type, fmt, val) {
511 if(type.charCodeAt(0) === 40 && !fmt.match(closeparen)) {
516 if(fmt.charCodeAt(fmt.length - 1) === 44) return write_num_cm2(type, fmt, val);
517 if(fmt.indexOf('%') !== -1) return write_num_pct2(type, fmt, val);
519 if(fmt.charCodeAt(0) === 36) return "$"+write_num_int(type,fmt.substr(fmt[1]==' '?2:1),val);
539 …return val < 0 ? "-" + write_num_int(type, fmt, -val) : commaify((""+val)) + "." + fill('0',r[1].l…
541 … if((r = fmt.match(/^#,#*,#0/)) !== null) return write_num_int(type,fmt.replace(/^#,#*,/,""),val);
543 o = _strrev(write_num_int(type, fmt.replace(/[\\-]/g,""), val));
548 o = write_num_int(type, "##########", val);
581 …return val < 0 ? "-" + write_num_int(type, fmt, -val) : commaify(""+val).replace(/^\d,\d{3}$/,"0$&…
589 return function write_num(type, fmt, val) {
590 return (val|0) === val ? write_num_int(type, fmt, val) : write_num_flt(type, fmt, val);
1049 if(FI[i].type === 0 /* unknown */) continue;
1061 if(FI[i].type !== 2 /* stream */) FP[i] += "/";
1158 type: blob.read_shift(1),
1176 if(o.type === 5) { /* root */
1209 switch(options !== undefined && options.type !== undefined ? options.type : "base64") {
1730 function write_record(ba, type, payload, length) { argument
1731 var t = evert_RE[type], l;
2711 var type = toks[0].substring(4), text = toks[1]; variable
2713 switch(type) {
2733 … if(typeof console !== 'undefined') console.warn('Unexpected', x, type, toks);
2778 function parse_lpstr(blob, type, pad) { argument
2785 function parse_lpwstr(blob, type, pad) { argument
2879 function parse_TypedPropertyValue(blob, type, _opts) { argument
2882 if(type !== VT_VARIANT)
2883 …if(t !== type && VT_CUSTOM.indexOf(type)===-1) throw new Error('Expected type ' + type + ' saw ' +…
2884 switch(type === VT_VARIANT ? t : type) {
2898 default: throw new Error("TypedPropertyValue unrecognized type " + type + " " + t);
5098 default: throw new Error("Unrecognized ExtProp type: " + extType + " " + cb);
9169 switch(opts.type||"base64") {
11269 function add_rels(rels, rId, f, type, relobj) { argument
11273 relobj.Type = type;
11360 switch((o||{}).type || "base64") {
11365 default: throw new Error("Unrecognized type " + o.type);
11372 if(!o.type) o.type = (has_buf && Buffer.isBuffer(data)) ? "buffer" : "base64";
11373 switch(o.type) {
11378 default: throw new Error("Unrecognized type " + o.type);
11386 if(!o.type) o.type = (has_buf && Buffer.isBuffer(data)) ? "buffer" : "base64";
11387 if(o.type == "file") { isfile = true; o.type = "buffer"; d = _fs.readFileSync(data); }
11390 if(isfile) o.type = "file";
11392 case 0x09: return parse_xlscfb(s2a(o.type === 'base64' ? Base64.decode(data) : data), o);
11395 if(isfile) o.type = "file";
11402 var o = opts||{}; o.type = 'file';
11408 switch(o.type) {
11409 case "base64": return z.generate({type:"base64"});
11410 case "binary": return z.generate({type:"string"});
11411 case "buffer": return z.generate({type:"nodebuffer"});
11412 case "file": return _fs.writeFileSync(o.file, z.generate({type:"nodebuffer"}));
11413 default: throw new Error("Unrecognized type " + o.type);
11426 var o = opts||{}; o.type = 'file';