Make IsHex use string_view

This commit is contained in:
Pieter Wuille
2022-04-04 11:12:04 -04:00
committed by MacroFake
parent c1d165a8c2
commit 40062997f2
2 changed files with 4 additions and 6 deletions

View File

@@ -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"
*/