1
0
Fork 0
forked from lthn/blockchain

get rid of boost.locale under paindroid

This commit is contained in:
cryptozoidberg 2020-02-20 03:07:03 +01:00
parent 0c6b813c05
commit 0c54ca7270
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -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);