diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-26 23:23:32 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-29 06:27:55 +0800 |
commit | c01426efecb82375c7c732f8c385b38cb9259168 (patch) | |
tree | f8e576715c19d5ee8b673b39653b8beb9428798e /libdevcore | |
parent | dadb4818ba230de02061ffd31ed71a0dec154885 (diff) | |
download | dexon-solidity-c01426efecb82375c7c732f8c385b38cb9259168.tar dexon-solidity-c01426efecb82375c7c732f8c385b38cb9259168.tar.gz dexon-solidity-c01426efecb82375c7c732f8c385b38cb9259168.tar.bz2 dexon-solidity-c01426efecb82375c7c732f8c385b38cb9259168.tar.lz dexon-solidity-c01426efecb82375c7c732f8c385b38cb9259168.tar.xz dexon-solidity-c01426efecb82375c7c732f8c385b38cb9259168.tar.zst dexon-solidity-c01426efecb82375c7c732f8c385b38cb9259168.zip |
Make position optional in dev::validate
Diffstat (limited to 'libdevcore')
-rw-r--r-- | libdevcore/UTF8.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libdevcore/UTF8.h b/libdevcore/UTF8.h index 9bdc2b4f..b82fd1c6 100644 --- a/libdevcore/UTF8.h +++ b/libdevcore/UTF8.h @@ -32,4 +32,10 @@ namespace dev /// @returns false if it is invalid and the first invalid position in invalidPosition bool validate(std::string const& _input, size_t& _invalidPosition); +inline bool validate(std::string const& _input) +{ + size_t invalidPos; + return validate(_input, invalidPos); +} + } |