isHexString

fnbool isHexString(String)(String hex) if (isSomeString!String) @safe pure nothrow @nogc

Validates a hex string.

Checks whether all characters following an optional "0x" suffix are valid hexadecimal digits.

Parameters

hexhexdecimal encoded byte array

Returns

true = if valid