Make IsHexNumber use string_view

This commit is contained in:
Pieter Wuille
2022-04-04 11:20:10 -04:00
committed by MacroFake
parent 40062997f2
commit 963bc9b576
2 changed files with 5 additions and 8 deletions

View File

@@ -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);