mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rename dev::validate to dev::validateUTF8
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ namespace dev
|
||||
{
|
||||
|
||||
|
||||
bool validate(std::string const& _input, size_t& _invalidPosition)
|
||||
bool validateUTF8(std::string const& _input, size_t& _invalidPosition)
|
||||
{
|
||||
const size_t length = _input.length();
|
||||
bool valid = true;
|
||||
|
||||
+3
-3
@@ -30,12 +30,12 @@ namespace dev
|
||||
|
||||
/// Validate an input for UTF8 encoding
|
||||
/// @returns false if it is invalid and the first invalid position in invalidPosition
|
||||
bool validate(std::string const& _input, size_t& _invalidPosition);
|
||||
bool validateUTF8(std::string const& _input, size_t& _invalidPosition);
|
||||
|
||||
inline bool validate(std::string const& _input)
|
||||
inline bool validateUTF8(std::string const& _input)
|
||||
{
|
||||
size_t invalidPos;
|
||||
return validate(_input, invalidPos);
|
||||
return validateUTF8(_input, invalidPos);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user