mirror of https://github.com/kiwix/libkiwix.git
Make the string Tools functions available in android.
This commit is contained in:
parent
92c9a47a0d
commit
be498c3b16
|
@ -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();
|
||||||
|
|
||||||
|
|
|
@ -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) */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue