Make the string Tools functions available in android.

This commit is contained in:
Matthieu Gautier 2019-01-09 18:29:20 +01:00
parent 92c9a47a0d
commit be498c3b16
2 changed files with 0 additions and 8 deletions

View File

@ -33,8 +33,6 @@
namespace kiwix namespace kiwix
{ {
#ifndef __ANDROID__
std::string beautifyInteger(uint64_t number); std::string beautifyInteger(uint64_t number);
std::string beautifyFileSize(uint64_t number); std::string beautifyFileSize(uint64_t number);
void printStringInHexadecimal(const char* s); void printStringInHexadecimal(const char* s);
@ -44,8 +42,6 @@ void stringReplacement(std::string& str,
const std::string& newStr); const std::string& newStr);
std::string encodeDiples(const std::string& str); std::string encodeDiples(const std::string& str);
#endif
std::string removeAccents(const std::string& text); std::string removeAccents(const std::string& text);
void loadICUExternalTables(); void loadICUExternalTables();

View File

@ -57,8 +57,6 @@ std::string kiwix::removeAccents(const std::string& text)
return unaccentedText; return unaccentedText;
} }
#ifndef __ANDROID__
/* Prepare integer for display */ /* Prepare integer for display */
std::string kiwix::beautifyInteger(uint64_t number) std::string kiwix::beautifyInteger(uint64_t number)
{ {
@ -138,8 +136,6 @@ std::string kiwix::encodeDiples(const std::string& str)
return result; return result;
} }
#endif
/* urlEncode() based on javascript encodeURI() & /* urlEncode() based on javascript encodeURI() &
encodeURIComponent(). Mostly code from rstudio/httpuv (GPLv3) */ encodeURIComponent(). Mostly code from rstudio/httpuv (GPLv3) */