Function isHex [src]

Returns whether the character is a hexadecimal digit: A-F, a-f, or 0-9.

Prototype

pub fn isHex(c: u8) bool

Parameters

c: u8

Source

pub fn isHex(c: u8) bool { return switch (c) { '0'...'9', 'A'...'F', 'a'...'f' => true, else => false, }; }