Matthieu Gautier
12a93c3e29
Fix use of strtok on windows.
...
On windows, strtok_r is called strto_s.
2019-08-19 17:35:22 +02:00
Matthieu Gautier
52299ef767
Fix computeAbsolutePath.
...
Correctly delete the duplicated string.
Use strtok_r to be thread safe.
2019-08-12 12:43:52 +02:00
Matthieu Gautier
c4963268ba
Fix regexTools.
...
The buildMatcher must not take a rvalue as it will keep a reference
to it.
2019-08-12 12:05:51 +02:00
Matthieu Gautier
e56335109c
Make appendToFirstOccurence take argument by reference.
2019-08-11 10:19:48 +02:00
Matthieu Gautier
cbe8e20118
Fix include in otherTools.h
2019-08-11 10:19:48 +02:00
Matthieu Gautier
e013d38cc6
Add startWith function in stringTools.h
2019-08-11 10:19:48 +02:00
Matthieu Gautier
6234457920
Fix include in stringTools.h
2019-08-11 10:19:48 +02:00
Matthieu Gautier
72223d69fe
Fix include in pathTools.h
2019-08-10 11:02:23 +02:00
Matthieu Gautier
ddeb862395
Add getMimeTypeForFile in pathTool.
2019-08-10 10:59:13 +02:00
Matthieu Gautier
61c28f0e3d
Make the regexTool thread safe.
2019-08-10 10:59:13 +02:00
Matthieu Gautier
4e746916a7
Remove unnecessary include.
...
And unistd.h is not available on windows.
2019-06-12 14:27:15 +02:00
Matthieu Gautier
e7e88617d5
Remove unused include unistd.h
...
We don't use it anymore and it is not present on Windows.
2019-04-15 10:50:26 +02:00
Matthieu Gautier
f8522fb26e
Remove getNetworkInterfaces and getBestPublicIp function.
...
They are not used at all and the windows version need some extra libs
that complexify the code.
Remove them for now. If it happens that they are needed, we will readd
them.
2019-04-04 17:00:45 +02:00
Matthieu Gautier
938e2a81c1
Rewrite makeTmpDirectory to not use Uuid methods on windows.
...
`UuidCreate`, `UuidToString` and `RpcStringFree` need special library
on windows. Lets not use them.
2019-04-04 16:11:36 +02:00
Matthieu Gautier
93af3aa2d1
Fix the language mapping.
...
The previous mapping was taken from an unknown (:/) source.
The new mapping is generated with a script taking
https://www.loc.gov/standards/iso639-2/php/code_list.php as source.
The source list is sanitized to keep only language for which we
(http://library.kiwix.org/ ) have content.
2019-03-05 17:53:37 +01:00
Matthieu Gautier
af7689e3e8
[API break] Move all the tools in the tools directory instead of common.
...
The `common` name is from the time where kiwix was only one repository
for all the project (android, desktop, server...).
Now we have split the repositories and kiwix-lib is the "common" repo,
the "common" directory is somehow nonsense.
2019-01-23 15:31:38 +01:00