diff options
author | Pieter Wuille <pieter@wuille.net> | 2022-04-04 11:20:10 -0400 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-04-27 14:12:55 +0200 |
commit | 963bc9b576f0a62caffede2ce32830aef3473995 (patch) | |
tree | 3308682301b66cd72aa3adec33558652ff50bace /src/util/strencodings.h | |
parent | 40062997f223d88d4f92aaae4622a31476686163 (diff) |
Make IsHexNumber 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 67baaaeca0..678f42cb06 100644 --- a/src/util/strencodings.h +++ b/src/util/strencodings.h @@ -63,7 +63,7 @@ bool IsHex(std::string_view str); /** * Return true if the string is a hex number, optionally prefixed with "0x" */ -bool IsHexNumber(const std::string& str); +bool IsHexNumber(std::string_view str); std::vector<unsigned char> DecodeBase64(const char* p, bool* pf_invalid = nullptr); std::string DecodeBase64(const std::string& str, bool* pf_invalid = nullptr); std::string EncodeBase64(Span<const unsigned char> input); |