"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xlsxparse.cc" between
xapian-omega-1.4.18.tar.xz and xapian-omega-1.4.19.tar.xz

About: Xapian Omega is an application built on Xapian, consisting of indexers and a CGI search frontend.

xlsxparse.cc  (xapian-omega-1.4.18.tar.xz):xlsxparse.cc  (xapian-omega-1.4.19.tar.xz)
/** @file /** @file
* @brief Extract fields from XLSX sheet*.xml. * @brief Extract fields from XLSX sheet*.xml.
*/ */
/* Copyright (C) 2012,2013 Olly Betts /* Copyright (C) 2012,2013,2021 Olly Betts
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
skipping to change at line 92 skipping to change at line 92
unsigned long id = strtoul(v.c_str(), NULL, 10); unsigned long id = strtoul(v.c_str(), NULL, 10);
date_format.insert(id); date_format.insert(id);
} }
} }
} }
} else if (tag == "cellxfs") { } else if (tag == "cellxfs") {
mode = MODE_CELLXFS; mode = MODE_CELLXFS;
} else if (tag == "xf") { } else if (tag == "xf") {
if (mode == MODE_CELLXFS) { if (mode == MODE_CELLXFS) {
string v; string v;
if (get_parameter("applynumberformat", v)) { if (get_parameter("numfmtid", v)) {
if (v == "true" || v == "1") { unsigned long id = strtoul(v.c_str(), NULL, 10);
if (get_parameter("numfmtid", v)) { if ((id >= 14 && id <= 17) ||
unsigned long id = strtoul(v.c_str(), NULL, 10); date_format.find(id) != date_format.end()) {
if ((id >= 14 && id <= 17) || date_style.insert(style_index);
date_format.find(id) != date_format.end()) {
date_style.insert(style_index);
}
}
} }
} }
++style_index; ++style_index;
} }
} }
return true; return true;
} }
void void
XlsxParser::process_text(const string &text) XlsxParser::process_text(const string &text)
 End of changes. 2 change blocks. 
10 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)