mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Include cleanup.
This commit is contained in:
1 parent
20ae3ad555
commit
f2cee9ec0c
18 files changed
+37
-36
No files matched your search
+3
-5
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user