forked from sheetjs/sheetjs
SheetJS
56b10f3616
- test script normalized - proper handling of empty sheet ranges - xlsb sheetStubs and calcchain parsing - jshint passes - updated SSF to 0.6.2
18 lines
460 B
JavaScript
18 lines
460 B
JavaScript
/* 18.6 Calculation Chain */
|
|
function parse_cc_xml(data, opts) {
|
|
var d = [];
|
|
var l = 0, i = 1;
|
|
(data.match(/<[^>]*>/g)||[]).forEach(function(x) {
|
|
var y = parsexmltag(x);
|
|
switch(y[0]) {
|
|
case '<?xml': break;
|
|
/* 18.6.2 calcChain CT_CalcChain 1 */
|
|
case '<calcChain': case '<calcChain>': case '</calcChain>': break;
|
|
/* 18.6.1 c CT_CalcCell 1 */
|
|
case '<c': delete y[0]; if(y.i) i = y.i; else y.i = i; d.push(y); break;
|
|
}
|
|
});
|
|
return d;
|
|
}
|
|
|