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 parent
c01426efec
commit
a9e92cb686
4 files changed
+7
-7
No files matched your search
@@ -896,7 +896,7 @@ std::string StringLiteralType::toString(bool) const
|
||||
{
|
||||
size_t invalidSequence;
|
||||
|
||||
if (!dev::validate(m_value, invalidSequence))
|
||||
if (!dev::validateUTF8(m_value, invalidSequence))
|
||||
return "literal_string (contains invalid UTF-8 sequence at position " + dev::toString(invalidSequence) + ")";
|
||||
|
||||
return "literal_string \"" + m_value + "\"";
|
||||
@@ -909,7 +909,7 @@ TypePointer StringLiteralType::mobileType() const
|
||||
|
||||
bool StringLiteralType::isValidUTF8() const
|
||||
{
|
||||
return dev::validate(m_value);
|
||||
return dev::validateUTF8(m_value);
|
||||
}
|
||||
|
||||
shared_ptr<FixedBytesType> FixedBytesType::smallestTypeForLiteral(string const& _literal)
|
||||
|
||||
Reference in new issue
Block a user