mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Include cleanup.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Exceptions.h"
|
||||
#include <libdevcore/Exceptions.h>
|
||||
|
||||
namespace dev
|
||||
{
|
||||
|
||||
@@ -19,7 +19,11 @@
|
||||
* @date 2014
|
||||
*/
|
||||
|
||||
#include "CommonIO.h"
|
||||
#include <libdevcore/CommonIO.h>
|
||||
#include <libdevcore/Assertions.h>
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
#include <fstream>
|
||||
@@ -29,8 +33,6 @@
|
||||
#include <unistd.h>
|
||||
#include <termios.h>
|
||||
#endif
|
||||
#include <boost/filesystem.hpp>
|
||||
#include "Assertions.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace dev;
|
||||
|
||||
@@ -23,10 +23,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <libdevcore/Common.h>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include "Common.h"
|
||||
|
||||
namespace dev
|
||||
{
|
||||
|
||||
+2
-2
@@ -19,9 +19,9 @@
|
||||
* @date 2018
|
||||
*/
|
||||
|
||||
#include "JSON.h"
|
||||
#include <libdevcore/JSON.h>
|
||||
|
||||
#include "CommonIO.h"
|
||||
#include <libdevcore/CommonIO.h>
|
||||
|
||||
#include <sstream>
|
||||
#include <map>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
* String routines
|
||||
*/
|
||||
|
||||
#include "StringUtils.h"
|
||||
#include <libdevcore/StringUtils.h>
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
+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