forked from lthn/blockchain
get rid of boost.locale under paindroid
This commit is contained in:
parent
0c6b813c05
commit
0c54ca7270
1 changed files with 5 additions and 1 deletions
|
|
@ -7,7 +7,9 @@
|
|||
|
||||
#include "include_base_utils.h"
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/locale.hpp>
|
||||
#ifndef ANDROID_BUILD
|
||||
#include <boost/locale.hpp>
|
||||
#endif
|
||||
using namespace epee;
|
||||
|
||||
#include "print_fixed_point_helper.h"
|
||||
|
|
@ -2677,6 +2679,7 @@ namespace currency
|
|||
return o << "<" << r.n << ":" << r.tx_id << ">";
|
||||
}
|
||||
//--------------------------------------------------------------------------------
|
||||
#ifndef ANDROID_BUILD
|
||||
const std::locale& utf8_get_conversion_locale()
|
||||
{
|
||||
static std::locale loc = boost::locale::generator().generate("en_US.UTF-8");
|
||||
|
|
@ -2696,6 +2699,7 @@ namespace currency
|
|||
return true;
|
||||
return utf8_to_lower(s).find(utf8_to_lower(match), 0) != std::string::npos;
|
||||
}
|
||||
#endif
|
||||
//--------------------------------------------------------------------------------
|
||||
bool operator ==(const currency::transaction& a, const currency::transaction& b) {
|
||||
return currency::get_transaction_hash(a) == currency::get_transaction_hash(b);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue