diff options
author | Pieter Wuille <pieter@wuille.net> | 2022-04-04 11:12:04 -0400 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-04-27 14:12:55 +0200 |
commit | 40062997f223d88d4f92aaae4622a31476686163 (patch) | |
tree | fbe4db177806a7ef0deb210a59cb74e7de29e1eb /src/util/strencodings.h | |
parent | c1d165a8c2678c31aced5e1d46231d9996b0774a (diff) | |
download | bitcoin-40062997f223d88d4f92aaae4622a31476686163.tar.xz |
Make IsHex use string_view
Diffstat (limited to 'src/util/strencodings.h')
-rw-r--r-- | src/util/strencodings.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/strencodings.h b/src/util/strencodings.h index 0e72466fc3..67baaaeca0 100644 --- a/src/util/strencodings.h +++ b/src/util/strencodings.h @@ -59,7 +59,7 @@ std::vector<unsigned char> ParseHex(std::string_view str); signed char HexDigit(char c); /* Returns true if each character in str is a hex character, and has an even * number of hex digits.*/ -bool IsHex(const std::string& str); +bool IsHex(std::string_view str); /** * Return true if the string is a hex number, optionally prefixed with "0x" */ |