aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-11-29 06:07:55 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-11-29 06:28:21 +0800
commita9e92cb68601a19d5e0969e4f3336be612edc72e (patch)
tree14e4e07c271bd2fc697e481a854a0b068a0fa85d /libdevcore
parentc01426efecb82375c7c732f8c385b38cb9259168 (diff)
downloaddexon-solidity-a9e92cb68601a19d5e0969e4f3336be612edc72e.tar
dexon-solidity-a9e92cb68601a19d5e0969e4f3336be612edc72e.tar.gz
dexon-solidity-a9e92cb68601a19d5e0969e4f3336be612edc72e.tar.bz2
dexon-solidity-a9e92cb68601a19d5e0969e4f3336be612edc72e.tar.lz
dexon-solidity-a9e92cb68601a19d5e0969e4f3336be612edc72e.tar.xz
dexon-solidity-a9e92cb68601a19d5e0969e4f3336be612edc72e.tar.zst
dexon-solidity-a9e92cb68601a19d5e0969e4f3336be612edc72e.zip
Rename dev::validate to dev::validateUTF8
Diffstat (limited to 'libdevcore')
-rw-r--r--libdevcore/UTF8.cpp2
-rw-r--r--libdevcore/UTF8.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/libdevcore/UTF8.cpp b/libdevcore/UTF8.cpp
index d742fe66..1c7ed17c 100644
--- a/libdevcore/UTF8.cpp
+++ b/libdevcore/UTF8.cpp
@@ -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;
diff --git a/libdevcore/UTF8.h b/libdevcore/UTF8.h
index b82fd1c6..753914e3 100644
--- a/libdevcore/UTF8.h
+++ b/libdevcore/UTF8.h
@@ -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);
}
}