Merge pull request #194 from kiwix/common2tools

[API break] Move all the tools in the tools directory instead of common.
This commit is contained in:
Matthieu Gautier 2019-01-23 16:55:09 +01:00 committed by GitHub
commit aab88c9022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 42 additions and 43 deletions

View File

@ -24,7 +24,6 @@
#include <zim/article.h>
#include <exception>
#include <string>
#include "common.h"
using namespace std;

View File

@ -15,12 +15,12 @@ headers = [
install_headers(headers, subdir:'kiwix')
install_headers(
'common/base64.h',
'common/networkTools.h',
'common/otherTools.h',
'common/pathTools.h',
'common/regexTools.h',
'common/stringTools.h',
subdir:'kiwix/common'
'tools/base64.h',
'tools/networkTools.h',
'tools/otherTools.h',
'tools/pathTools.h',
'tools/regexTools.h',
'tools/stringTools.h',
subdir:'kiwix/tools'
)

View File

@ -26,9 +26,9 @@
#include <pugixml.hpp>
#include "common/base64.h"
#include "common/pathTools.h"
#include "common/regexTools.h"
#include "tools/base64.h"
#include "tools/pathTools.h"
#include "tools/regexTools.h"
#include "library.h"
#include "reader.h"

View File

@ -31,8 +31,8 @@
#include <string>
#include "common.h"
#include "entry.h"
#include "common/pathTools.h"
#include "common/stringTools.h"
#include "tools/pathTools.h"
#include "tools/stringTools.h"
using namespace std;

View File

@ -29,8 +29,8 @@
#include <string>
#include <vector>
#include <vector>
#include "common/pathTools.h"
#include "common/stringTools.h"
#include "tools/pathTools.h"
#include "tools/stringTools.h"
#include "kiwix_config.h"
using namespace std;

View File

@ -24,7 +24,7 @@
#include <android/log.h>
#include "org_kiwix_kiwixlib_JNIKiwixReader.h"
#include "common/base64.h"
#include "tools/base64.h"
#include "reader.h"
#include "utils.h"

View File

@ -5,8 +5,8 @@
#include <sstream>
#include <thread>
#include <chrono>
#include <common/otherTools.h>
#include <common/pathTools.h>
#include <tools/otherTools.h>
#include <tools/pathTools.h>
#include <downloader.h> // For AriaError
#ifdef _WIN32

View File

@ -20,9 +20,9 @@
#include "book.h"
#include "reader.h"
#include "common/base64.h"
#include "common/regexTools.h"
#include "common/networkTools.h"
#include "tools/base64.h"
#include "tools/regexTools.h"
#include "tools/networkTools.h"
#include <pugixml.hpp>

View File

@ -18,7 +18,7 @@
*/
#include "downloader.h"
#include "common/pathTools.h"
#include "tools/pathTools.h"
#include <algorithm>
#include <thread>
@ -28,7 +28,7 @@
#include "aria2.h"
#include "xmlrpc.h"
#include "common/otherTools.h"
#include "tools/otherTools.h"
#include <pugixml.hpp>
namespace kiwix

View File

@ -21,9 +21,9 @@
#include "book.h"
#include "libxml_dumper.h"
#include "common/base64.h"
#include "common/regexTools.h"
#include "common/pathTools.h"
#include "tools/base64.h"
#include "tools/regexTools.h"
#include "tools/pathTools.h"
#include <pugixml.hpp>
#include <algorithm>

View File

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

View File

@ -11,12 +11,12 @@ kiwix_sources = [
'searcher.cpp',
'subprocess.cpp',
'aria2.cpp',
'common/base64.cpp',
'common/pathTools.cpp',
'common/regexTools.cpp',
'common/stringTools.cpp',
'common/networkTools.cpp',
'common/otherTools.cpp',
'tools/base64.cpp',
'tools/pathTools.cpp',
'tools/regexTools.cpp',
'tools/stringTools.cpp',
'tools/networkTools.cpp',
'tools/otherTools.cpp',
]
kiwix_sources += lib_resources

View File

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

View File

@ -24,7 +24,7 @@
René Nyffenegger rene.nyffenegger@adp-gmbh.ch
*/
#include <common/base64.h>
#include <tools/base64.h>
#include <iostream>
static const std::string base64_chars =

View File

@ -17,7 +17,7 @@
* MA 02110-1301, USA.
*/
#include <common/networkTools.h>
#include <tools/networkTools.h>
#ifdef _WIN32
#include <winsock2.h>

View File

@ -17,7 +17,7 @@
* MA 02110-1301, USA.
*/
#include <common/otherTools.h>
#include <tools/otherTools.h>
#include <map>
static std::map<std::string, std::string> codeisomapping {

View File

@ -17,7 +17,7 @@
* MA 02110-1301, USA.
*/
#include <common/pathTools.h>
#include <tools/pathTools.h>
#ifdef __APPLE__
#include <limits.h>

View File

@ -17,7 +17,7 @@
* MA 02110-1301, USA.
*/
#include <common/regexTools.h>
#include <tools/regexTools.h>
std::map<std::string, icu::RegexMatcher*> regexCache;

View File

@ -17,7 +17,7 @@
* MA 02110-1301, USA.
*/
#include <common/stringTools.h>
#include <tools/stringTools.h>
#include <unicode/normlzr.h>
#include <unicode/rep.h>

View File

@ -3,7 +3,7 @@
#ifndef KIWIX_XMLRPC_H_
#define KIWIX_XMLRPC_H_
#include <common/otherTools.h>
#include <tools/otherTools.h>
namespace kiwix {