Source: John Cowan
Subject: Hexadecimal Digit Value Table
Date: August 19, 2003
The Unicode Standard provides the Hex_Digit property, which specifies
which characters are hexadecimal digits: 0-9, A-F, a-f, and their
fullwidth equivalents. (The ASCII_Hex_Digit property specifies the
intersection of the Hex_Digit property and the Basic Latin block.)
However, there is no table mapping the hexadecimal digit characters to
their values, analogous to the Numeric_Value property. The following
table removes this real, if trivial, gap.
# This file is a supplement to the UnicodeData file.
# It provides a mapping from hexadecimal digit characters to their
# values when used as digits in a hexadecimal (base 16) number.
# Code points not listed in this file are not hexadecimal digits.
#
# ==============================================================================
# Format
# ==============================================================================
# The entries in this file are in the following machine-readable format:
#
# ; ; #
# The value is expressed as a base 10 numeral.
0030;0; # DIGIT ZERO
0031;1; # DIGIT ONE
0032;2; # DIGIT TWO
0033;3; # DIGIT THREE
0034;4; # DIGIT FOUR
0035;5; # DIGIT FIVE
0036;6; # DIGIT SIX
0037;7; # DIGIT SEVEN
0038;8; # DIGIT EIGHT
0039;9; # DIGIT NINE
0041;10; # LATIN CAPITAL LETTER A
0042;11; # LATIN CAPITAL LETTER B
0043;12; # LATIN CAPITAL LETTER C
0044;13; # LATIN CAPITAL LETTER D
0045;14; # LATIN CAPITAL LETTER E
0046;15; # LATIN CAPITAL LETTER F
0061;10; # LATIN SMALL LETTER A
0062;11; # LATIN SMALL LETTER B
0063;12; # LATIN SMALL LETTER C
0064;13; # LATIN SMALL LETTER D
0065;14; # LATIN SMALL LETTER E
0066;15; # LATIN SMALL LETTER F
FF10;0; # FULLWIDTH DIGIT ZERO
FF11;1; # FULLWIDTH DIGIT ONE
FF12;2; # FULLWIDTH DIGIT TWO
FF13;3; # FULLWIDTH DIGIT THREE
FF14;4; # FULLWIDTH DIGIT FOUR
FF15;5; # FULLWIDTH DIGIT FIVE
FF16;6; # FULLWIDTH DIGIT SIX
FF17;7; # FULLWIDTH DIGIT SEVEN
FF18;8; # FULLWIDTH DIGIT EIGHT
FF19;9; # FULLWIDTH DIGIT NINE
FF21;10; # FULLWIDTH LATIN CAPITAL LETTER A
FF22;11; # FULLWIDTH LATIN CAPITAL LETTER B
FF23;12; # FULLWIDTH LATIN CAPITAL LETTER C
FF24;13; # FULLWIDTH LATIN CAPITAL LETTER D
FF25;14; # FULLWIDTH LATIN CAPITAL LETTER E
FF26;15; # FULLWIDTH LATIN CAPITAL LETTER F
FF41;10; # FULLWIDTH LATIN SMALL LETTER A
FF42;11; # FULLWIDTH LATIN SMALL LETTER B
FF43;12; # FULLWIDTH LATIN SMALL LETTER C
FF44;13; # FULLWIDTH LATIN SMALL LETTER D
FF45;14; # FULLWIDTH LATIN SMALL LETTER E
FF46;15; # FULLWIDTH LATIN SMALL LETTER F