Fix include in stringTools.h

This commit is contained in:
Matthieu Gautier 2019-08-08 14:03:24 +02:00
parent 72223d69fe
commit 6234457920
6 changed files with 18 additions and 12 deletions

View File

@ -22,14 +22,9 @@
#include <unicode/unistr.h> #include <unicode/unistr.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string> #include <string>
#include <vector> #include <vector>
#include <sstream>
#include "pathTools.h"
namespace kiwix namespace kiwix
{ {

View File

@ -2,6 +2,7 @@
#include "aria2.h" #include "aria2.h"
#include "xmlrpc.h" #include "xmlrpc.h"
#include <iostream>
#include <sstream> #include <sstream>
#include <thread> #include <thread>
#include <chrono> #include <chrono>

View File

@ -20,9 +20,10 @@
#include "libxml_dumper.h" #include "libxml_dumper.h"
#include "book.h" #include "book.h"
#include <tools/base64.h> #include "tools/base64.h"
#include <tools/stringTools.h> #include "tools/stringTools.h"
#include <tools/otherTools.h> #include "tools/otherTools.h"
#include "tools/pathTools.h"
namespace kiwix namespace kiwix
{ {

View File

@ -20,7 +20,8 @@
#include "opds_dumper.h" #include "opds_dumper.h"
#include "book.h" #include "book.h"
#include <tools/otherTools.h> #include "tools/otherTools.h"
#include <iomanip>
namespace kiwix namespace kiwix
{ {

View File

@ -17,7 +17,7 @@
* MA 02110-1301, USA. * MA 02110-1301, USA.
*/ */
#include <tools/pathTools.h> #include "tools/pathTools.h"
#ifdef __APPLE__ #ifdef __APPLE__
#include <limits.h> #include <limits.h>
@ -36,6 +36,9 @@
#include <vector> #include <vector>
#include <sys/stat.h> #include <sys/stat.h>
#include <sstream> #include <sstream>
#include <fstream>
#include <iomanip>
#include <iostream>
#ifdef _WIN32 #ifdef _WIN32
const std::string SEPARATOR("\\"); const std::string SEPARATOR("\\");

View File

@ -19,6 +19,7 @@
#include <tools/stringTools.h> #include <tools/stringTools.h>
#include <tools/pathTools.h>
#include <unicode/normlzr.h> #include <unicode/normlzr.h>
#include <unicode/rep.h> #include <unicode/rep.h>
#include <unicode/translit.h> #include <unicode/translit.h>
@ -26,6 +27,10 @@
#include <unicode/uniset.h> #include <unicode/uniset.h>
#include <unicode/ustring.h> #include <unicode/ustring.h>
#include <iostream>
#include <iomanip>
/* tell ICU where to find its dat file (tables) */ /* tell ICU where to find its dat file (tables) */
void kiwix::loadICUExternalTables() void kiwix::loadICUExternalTables()
{ {
@ -36,7 +41,7 @@ void kiwix::loadICUExternalTables()
= computeAbsolutePath(executableDirectory, "icudt58l.dat"); = computeAbsolutePath(executableDirectory, "icudt58l.dat");
try { try {
u_setDataDirectory(datPath.c_str()); u_setDataDirectory(datPath.c_str());
} catch (exception& e) { } catch (std::exception& e) {
std::cerr << e.what() << std::endl; std::cerr << e.what() << std::endl;
} }
#endif #endif