mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
Fix for Android
- No std::to_string. We have to implement it with a ostringstream - No pthread_cancel. So we use pthread_kill to send a signal to the thread.
This commit is contained in:
@ -64,6 +64,12 @@ std::string lcFirst(const std::string& word);
|
||||
std::string toTitle(const std::string& word);
|
||||
|
||||
std::string normalize(const std::string& word);
|
||||
template<typename T>
|
||||
std::string to_string(T value)
|
||||
{
|
||||
std::ostringstream oss;
|
||||
oss << value;
|
||||
return oss.str();
|
||||
}
|
||||
|
||||
} //namespace kiwix
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user