Returns true if each character in str is a hex character, and has an even number of hex digits.

Synopsis

Declared in <util/strencodings.h>

bool
IsHex(std::string_view str);

Return Value

true if str is a valid, even‐length hex string, false otherwise.

Parameters

Name

Description

str

The string to check.

Created with MrDocs