



UpperCAmelCase							=       {hex(i)[2:]: i for i in range(16)}  # Use [:2] to strip off the leading '0x'

def       A_   (						__a  :					str		):

				"""simple docstring"""
				a__					   =		hex_string.strip().lower()
				if not hex_string:
								raise ValueError("""Empty string was passed to the function"""		)
				a__					   =		hex_string[0] == '-'
				if is_negative:
								a__					   =		hex_string[1:]
				if not all(char in hex_table for char in hex_string		):
								raise ValueError("""Non-hexadecimal value was passed to the function"""		)
				a__					   =		0
				for char in hex_string:
								a__					   =		16 * decimal_number + hex_table[char]
				return -decimal_number if is_negative else decimal_number


if __name__ == "__main__":
	from doctest import testmod

	testmod()









"""simple docstring"""


from __future__ import annotations




def      snake_case    (A_ :int ):







  '''simple docstring'''

  assert (
      isinstance(A_      ,     A_ ) and mask > 0
  ), f'''mask needs to be positive integer, your input {mask}'''
  a	:     Any							=  []
  a	:     Union[str, Any]							=  mask

  while submask:
    all_submasks.append(A_ )
    a	:     Any							=  (submask - 1) & mask

  return all_submasks


if __name__ == "__main__":
   import doctest

   doctest.testmod()




