class TP_HEXADECIMAL_DIGITS

(source code)

Description

Match hexadecimal character

note
	description: "Match hexadecimal character"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2022 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2023-02-09 16:19:45 GMT (Thursday 9th February 2023)"
	revision: "5"

class
	TP_HEXADECIMAL_DIGITS

inherit
	TP_DIGITS
		redefine
			Name_template, i_th_is_digit
		end

create
	make

feature {NONE} -- Implementation

	i_th_is_digit (i: INTEGER_32; text: READABLE_STRING_GENERAL): BOOLEAN
		do
			inspect text [i]
				when '0' .. '9', 'a' .. 'f', 'A' .. 'F' then
					Result := True
			else
			end
		end

feature {NONE} -- Constants

	Name_template: ZSTRING
		once
			Result := "%S hex-digits"
		end

end