Include cleanup.

This commit is contained in:
chriseth committed 2019-03-28 14:32:48 +01:00
1 parent 20ae3ad555
commit f2cee9ec0c
18 files changed
+37 -36

No files matched your search

+3 -5
View File
@@ -21,12 +21,10 @@
* UTF-8 related helpers
*/
#include "UTF8.h"
#include <libdevcore/UTF8.h>
namespace dev
{
namespace
{
@@ -77,6 +75,8 @@ bool isWellFormed(unsigned char byte1, unsigned char byte2)
return false;
}
}
bool validateUTF8(unsigned char const* _input, size_t _length, size_t& _invalidPosition)
{
bool valid = true;
@@ -133,8 +133,6 @@ bool validateUTF8(unsigned char const* _input, size_t _length, size_t& _invalidP
return false;
}
}
bool validateUTF8(std::string const& _input, size_t& _invalidPosition)
{
return validateUTF8(reinterpret_cast<unsigned char const*>(_input.c_str()), _input.length(), _invalidPosition);