Lines Matching refs:nf

16947 …var nf = unescapexml((data.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/) || ["","General"])[1]…
16951 return [col, nf, f];
17954 function safe_format_xlml(cell/*:Cell*/, nf, o) { argument
17958 else if(nf === "General") {
17965 else cell.w = xlml_format(nf||"General", cell.v);
17968 var z = XLMLFormatMap[nf]||nf||"General";
17988 var nf = "General", sid = cell.StyleID, S = {}; o = o || {};
17994 if(styles[sid].nf) nf = styles[sid].nf;
18013 if(!nf || nf == "General") nf = "yyyy-mm-dd";
18025 safe_format_xlml(cell, nf, o);
18239 stag.nf = unescapexml(xlml_parsexmltag(Rn[0]).Format || "General");
18240 if(XLMLFormatMap[stag.nf]) stag.nf = XLMLFormatMap[stag.nf];
18241 for(var ssfidx = 0; ssfidx != 0x188; ++ssfidx) if(table_fmt[ssfidx] == stag.nf) break;
18242 …39; ssfidx != 0x188; ++ssfidx) if(table_fmt[ssfidx] == null) { SSF__load(stag.nf, ssfidx); break; }
22666 function write_number_format_ods(nf/*:string*/, nfidx/*:string*/)/*:string*/ { argument
22668 nf = nf.replace(/"[$]"/g, "$");
22672 if(nf.indexOf(";") > -1) {
22673 console.error("Unsupported ODS Style Map exported. Using first branch of " + nf);
22674 nf = nf.slice(0, nf.indexOf(";"));
22677 if(nf == "@") { type = "text"; payload = "<number:text-content/>"; break j; }
22680 if(nf.indexOf(/\$/) > -1) { type = "currency"; }
22683 if(nf[i] == '"') {
22685 while(nf[++i] != '"' || nf[++i] == '"') c += nf[i]; --i;
22686 if(nf[i+1] == "*") {
22692 nf = nf.slice(i+1); i = 0;
22696 var t = nf.match(/# (\?+)\/(\?+)/);
22698 …if((t=nf.match(/# (\?+)\/(\d+)/))) { payload += writextag("number:fraction", null, {"number:min-in…
22701 …if((t=nf.match(/(\d+)(|\.\d+)%/))) { type = "percentage"; payload += writextag("number:number", nu…
22705 if(["y","m","d"].indexOf(nf[0]) > -1) {
22707 k: for(; i < nf.length; ++i) switch((c = nf[i].toLowerCase())) {
22710 l: for(var h = i+1; h < nf.length; ++h) switch(nf[h]) {
22716 while((nf[++i]||"").toLowerCase() == c[0]) c += c[0]; --i;
22730 while(nf[++i] != '"' || nf[++i] == '"') c += nf[i]; --i;
22734 default: console.error("unrecognized character " + c + " in ODF format " + nf);
22737 nf = nf.slice(i+1); i = 0;
22739 if(nf.match(/^\[?[hms]/)) {
22741 if(nf.match(/\[/)) {
22742 nf = nf.replace(/[\[\]]/g, "");
22745 for(; i < nf.length; ++i) switch((c = nf[i].toLowerCase())) {
22747 while((nf[++i]||"").toLowerCase() == c[0]) c += c[0]; --i;
22752 if(nf[i+1] == ".") do { c += nf[i+1]; ++i; } while(nf[i+1] == "0");
22757 while(nf[++i] != '"' || nf[++i] == '"') c += nf[i]; --i;
22762 …if(nf.slice(i, i+3).toLowerCase() == "a/p") { payload += '<number:am-pm/>'; i += 2; break; } // No…
22763 if(nf.slice(i, i+5).toLowerCase() == "am/pm") { payload += '<number:am-pm/>'; i += 4; break; }
22765 default: console.error("unrecognized character " + c + " in ODF format " + nf);
22771 if(nf.indexOf(/\$/) > -1) { type = "currency"; }
22774 …if(nf[0] == "$") { payload += '<number:currency-symbol number:language="en" number:country="US">$<…
22775 i = 0; if(nf[i] == '"') {
22776 while(nf[++i] != '"' || nf[++i] == '"') c += nf[i]; --i;
22777 if(nf[i+1] == "*") {
22783 nf = nf.slice(i+1); i = 0;
22787 var np = nf.match(/([#0][0#,]*)(\.[0#]*|)(E[+]?0*|)/i);
22788 if(!np || !np[0]) console.error("Could not find numeric part of " + nf);
22804 if(nf[i] == '"') {
22806 while(nf[++i] != '"' || nf[++i] == '"') c += nf[i]; --i;
22811 if(!payload) { console.error("Could not generate ODS number format for |" + nf + "|"); return ""; }
22992 keys(nfs).forEach(function(nf) { argument
22993 …tyle:name="ce' + nfs[nf].slice(1) + '" style:family="table-cell" style:parent-style-name="Default"…