make/data/characterdata/CharacterData01.java.template
author rgoel
Tue, 08 May 2018 11:49:42 +0530
changeset 50045 d9d55f64d136
parent 47216 71c04702a3d5
child 52633 f94ac11610b3
permissions -rw-r--r--
8191410: Unicode 10 Summary: upgrade to Unicode 10 Reviewed-by: naoto, rriggs, igerasim
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
50045
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
     2
 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2497
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2497
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2497
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2497
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2497
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package java.lang;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
/** The CharacterData class encapsulates the large tables once found in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 *  java.lang.Character. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
class CharacterData01 extends CharacterData {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
    /* The character properties are currently encoded into 32 bits in the following manner:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
        1 bit   mirrored property
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
        4 bits  directionality property
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
        9 bits  signed offset used for converting case
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
        1 bit   if 1, adding the signed offset converts the character to lowercase
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
        1 bit   if 1, subtracting the signed offset converts the character to uppercase
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
        1 bit   if 1, this character has a titlecase equivalent (possibly itself)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
        3 bits  0  may not be part of an identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
                1  ignorable control; may continue a Unicode identifier or Java identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
                2  may continue a Java identifier but not a Unicode identifier (unused)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
                3  may continue a Unicode identifier or Java identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
                4  is a Java whitespace character
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
                5  may start or continue a Java identifier;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
                   may continue but not start a Unicode identifier (underscores)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
                6  may start or continue a Java identifier but not a Unicode identifier ($)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
                7  may start or continue a Unicode identifier or Java identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
                Thus:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
                   5, 6, 7 may start a Java identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
                   1, 2, 3, 5, 6, 7 may continue a Java identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
                   7 may start a Unicode identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
                   1, 3, 5, 7 may continue a Unicode identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
                   1 is ignorable within an identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
                   4 is Java whitespace
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
        2 bits  0  this character has no numeric property
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
                1  adding the digit offset to the character code and then
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
                   masking with 0x1F will produce the desired numeric value
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
                2  this character has a "strange" numeric value
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
                3  a Java supradecimal digit: adding the digit offset to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
                   character code, then masking with 0x1F, then adding 10
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
                   will produce the desired numeric value
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
        5 bits  digit offset
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
        5 bits  character type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
        The encoding of character properties is subject to change at any time.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    int getProperties(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
        char offset = (char)ch;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
        int props = $$Lookup(offset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
        return props;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
9535
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    75
    int getPropertiesEx(int ch) {
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    76
        char offset = (char)ch;
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    77
        int props = $$LookupEx(offset);
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    78
        return props;
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    79
    }
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    80
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    int getType(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
        int props = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
        return (props & $$maskType);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
9535
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    86
    boolean isOtherLowercase(int ch) {
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    87
        int props = getPropertiesEx(ch);
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    88
        return (props & $$maskOtherLowercase) != 0;
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    89
    }
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    90
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    91
    boolean isOtherUppercase(int ch) {
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    92
        int props = getPropertiesEx(ch);
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    93
        return (props & $$maskOtherUppercase) != 0;
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    94
    }
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    95
 
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    96
    boolean isOtherAlphabetic(int ch) {
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    97
        int props = getPropertiesEx(ch);
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    98
        return (props & $$maskOtherAlphabetic) != 0;
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    99
    }
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
   100
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
   101
    boolean isIdeographic(int ch) {
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
   102
        int props = getPropertiesEx(ch);
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
   103
        return (props & $$maskIdeographic) != 0;
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
   104
    }
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
   105
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    boolean isJavaIdentifierStart(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        int props = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        return ((props & $$maskIdentifierInfo) >= $$lowJavaStart);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
    boolean isJavaIdentifierPart(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        int props = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        return ((props & $$nonzeroJavaPart) != 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    boolean isUnicodeIdentifierStart(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
        int props = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
        return ((props & $$maskIdentifierInfo) == $$valueUnicodeStart);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
    boolean isUnicodeIdentifierPart(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
        int props = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        return ((props & $$maskUnicodePart) != 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
    boolean isIdentifierIgnorable(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
        int props = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
        return ((props & $$maskIdentifierInfo) == $$valueIgnorable);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    int toLowerCase(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
        int mapChar = ch;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
        int val = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
        if ((val & $$maskLowerCase) != 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
            int offset = val << $$shiftCaseOffsetSign >> ($$shiftCaseOffsetSign+$$shiftCaseOffset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
            mapChar = ch + offset;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
        return  mapChar;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
    int toUpperCase(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
        int mapChar = ch;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
        int val = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
        if ((val & $$maskUpperCase) != 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
            int offset = val  << $$shiftCaseOffsetSign >> ($$shiftCaseOffsetSign+$$shiftCaseOffset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
            mapChar =  ch - offset;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
        return  mapChar;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    int toTitleCase(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
        int mapChar = ch;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
        int val = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
        if ((val & $$maskTitleCase) != 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
            // There is a titlecase equivalent.  Perform further checks:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
            if ((val & $$maskUpperCase) == 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
                // The character does not have an uppercase equivalent, so it must
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
                // already be uppercase; so add 1 to get the titlecase form.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
                mapChar = ch + 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
            else if ((val & $$maskLowerCase) == 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
                // The character does not have a lowercase equivalent, so it must
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
                // already be lowercase; so subtract 1 to get the titlecase form.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
                mapChar = ch - 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
            // else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
            // The character has both an uppercase equivalent and a lowercase
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
            // equivalent, so it must itself be a titlecase form; return it.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
            // return ch;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
            //}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
        else if ((val & $$maskUpperCase) != 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
            // This character has no titlecase equivalent but it does have an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
            // uppercase equivalent, so use that (subtract the signed case offset).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
            mapChar = toUpperCase(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
        return  mapChar;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
    int digit(int ch, int radix) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
        int value = -1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
        if (radix >= Character.MIN_RADIX && radix <= Character.MAX_RADIX) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
            int val = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
            int kind = val & $$maskType;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
            if (kind == Character.DECIMAL_DIGIT_NUMBER) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
                value = ch + ((val & $$maskDigitOffset) >> $$shiftDigitOffset) & $$maskDigit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
            else if ((val & $$maskNumericType) == $$valueJavaSupradecimal) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
                // Java supradecimal digit
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
                value = (ch + ((val & $$maskDigitOffset) >> $$shiftDigitOffset) & $$maskDigit) + 10;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
        return (value < radix) ? value : -1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
    int getNumericValue(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
        int val = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
        int retval = -1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
        switch (val & $$maskNumericType) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
        default: // cannot occur
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
        case ($$valueNotNumeric):         // not numeric
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
            retval = -1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
            break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
        case ($$valueDigit):              // simple numeric
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
            retval = ch + ((val & $$maskDigitOffset) >> $$shiftDigitOffset) & $$maskDigit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
            break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
        case ($$valueStrangeNumeric)      :       // "strange" numeric
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
            switch(ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
            case 0x10113: retval = 40; break;      // AEGEAN NUMBER FORTY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
            case 0x10114: retval = 50; break;      // AEGEAN NUMBER FIFTY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
            case 0x10115: retval = 60; break;      // AEGEAN NUMBER SIXTY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
            case 0x10116: retval = 70; break;      // AEGEAN NUMBER SEVENTY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
            case 0x10117: retval = 80; break;      // AEGEAN NUMBER EIGHTY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
            case 0x10118: retval = 90; break;      // AEGEAN NUMBER NINETY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
            case 0x10119: retval = 100; break;     // AEGEAN NUMBER ONE HUNDRED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
            case 0x1011A: retval = 200; break;     // AEGEAN NUMBER TWO HUNDRED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
            case 0x1011B: retval = 300; break;     // AEGEAN NUMBER THREE HUNDRED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
            case 0x1011C: retval = 400; break;     // AEGEAN NUMBER FOUR HUNDRED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
            case 0x1011D: retval = 500; break;     // AEGEAN NUMBER FIVE HUNDRED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
            case 0x1011E: retval = 600; break;     // AEGEAN NUMBER SIX HUNDRED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
            case 0x1011F: retval = 700; break;     // AEGEAN NUMBER SEVEN HUNDRED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
            case 0x10120: retval = 800; break;     // AEGEAN NUMBER EIGHT HUNDRED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
            case 0x10121: retval = 900; break;     // AEGEAN NUMBER NINE HUNDRED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
            case 0x10122: retval = 1000; break;    // AEGEAN NUMBER ONE THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
            case 0x10123: retval = 2000; break;    // AEGEAN NUMBER TWO THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
            case 0x10124: retval = 3000; break;    // AEGEAN NUMBER THREE THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
            case 0x10125: retval = 4000; break;    // AEGEAN NUMBER FOUR THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
            case 0x10126: retval = 5000; break;    // AEGEAN NUMBER FIVE THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
            case 0x10127: retval = 6000; break;    // AEGEAN NUMBER SIX THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
            case 0x10128: retval = 7000; break;    // AEGEAN NUMBER SEVEN THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
            case 0x10129: retval = 8000; break;    // AEGEAN NUMBER EIGHT THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
            case 0x1012A: retval = 9000; break;    // AEGEAN NUMBER NINE THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
            case 0x1012B: retval = 10000; break;   // AEGEAN NUMBER TEN THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
            case 0x1012C: retval = 20000; break;   // AEGEAN NUMBER TWENTY THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
            case 0x1012D: retval = 30000; break;   // AEGEAN NUMBER THIRTY THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
            case 0x1012E: retval = 40000; break;   // AEGEAN NUMBER FORTY THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
            case 0x1012F: retval = 50000; break;   // AEGEAN NUMBER FIFTY THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
            case 0x10130: retval = 60000; break;   // AEGEAN NUMBER SIXTY THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
            case 0x10131: retval = 70000; break;   // AEGEAN NUMBER SEVENTY THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
            case 0x10132: retval = 80000; break;   // AEGEAN NUMBER EIGHTY THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
            case 0x10133: retval = 90000; break;   // AEGEAN NUMBER NINETY THOUSAND
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   246
            case 0x10144: retval = 50; break;      // GREEK ACROPHONIC ATTIC FIFTY
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   247
            case 0x10145: retval = 500; break;     // GREEK ACROPHONIC ATTIC FIVE HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   248
            case 0x10146: retval = 5000; break;    // GREEK ACROPHONIC ATTIC FIVE THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   249
            case 0x10147: retval = 50000; break;   // GREEK ACROPHONIC ATTIC FIFTY THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   250
            case 0x1014A: retval = 50; break;      // GREEK ACROPHONIC ATTIC FIFTY TALENTS
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   251
            case 0x1014B: retval = 100; break;     // GREEK ACROPHONIC ATTIC ONE HUNDRED TALENTS
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   252
            case 0x1014C: retval = 500; break;     // GREEK ACROPHONIC ATTIC FIVE HUNDRED TALENTS
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   253
            case 0x1014D: retval = 1000; break;    // GREEK ACROPHONIC ATTIC ONE THOUSAND TALENTS
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   254
            case 0x1014E: retval = 5000; break;    // GREEK ACROPHONIC ATTIC FIVE THOUSAND TALENTS
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   255
            case 0x10151: retval = 50; break;      // GREEK ACROPHONIC ATTIC FIFTY STATERS
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   256
            case 0x10152: retval = 100; break;     // GREEK ACROPHONIC ATTIC ONE HUNDRED STATERS
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   257
            case 0x10153: retval = 500; break;     // GREEK ACROPHONIC ATTIC FIVE HUNDRED STATERS
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   258
            case 0x10154: retval = 1000; break;    // GREEK ACROPHONIC ATTIC ONE THOUSAND STATERS
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   259
            case 0x10155: retval = 10000; break;   // GREEK ACROPHONIC ATTIC TEN THOUSAND STATERS
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   260
            case 0x10156: retval = 50000; break;   // GREEK ACROPHONIC ATTIC FIFTY THOUSAND STATERS
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   261
            case 0x10166: retval = 50; break;      // GREEK ACROPHONIC TROEZENIAN FIFTY
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   262
            case 0x10167: retval = 50; break;      // GREEK ACROPHONIC TROEZENIAN FIFTY ALTERNATE FORM
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   263
            case 0x10168: retval = 50; break;      // GREEK ACROPHONIC HERMIONIAN FIFTY
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   264
            case 0x10169: retval = 50; break;      // GREEK ACROPHONIC THESPIAN FIFTY
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   265
            case 0x1016A: retval = 100; break;     // GREEK ACROPHONIC THESPIAN ONE HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   266
            case 0x1016B: retval = 300; break;     // GREEK ACROPHONIC THESPIAN THREE HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   267
            case 0x1016C: retval = 500; break;     // GREEK ACROPHONIC EPIDAUREAN FIVE HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   268
            case 0x1016D: retval = 500; break;     // GREEK ACROPHONIC TROEZENIAN FIVE HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   269
            case 0x1016E: retval = 500; break;     // GREEK ACROPHONIC THESPIAN FIVE HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   270
            case 0x1016F: retval = 500; break;     // GREEK ACROPHONIC CARYSTIAN FIVE HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   271
            case 0x10170: retval = 500; break;     // GREEK ACROPHONIC NAXIAN FIVE HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   272
            case 0x10171: retval = 1000; break;    // GREEK ACROPHONIC THESPIAN ONE THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   273
            case 0x10172: retval = 5000; break;    // GREEK ACROPHONIC THESPIAN FIVE THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   274
            case 0x10174: retval = 50; break;      // GREEK ACROPHONIC STRATIAN FIFTY MNAS
31680
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   275
            case 0x102ED: retval = 40; break;      // COPTIC EPACT NUMBER FORTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   276
            case 0x102EE: retval = 50; break;      // COPTIC EPACT NUMBER FIFTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   277
            case 0x102EF: retval = 60; break;      // COPTIC EPACT NUMBER SIXTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   278
            case 0x102F0: retval = 70; break;      // COPTIC EPACT NUMBER SEVENTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   279
            case 0x102F1: retval = 80; break;      // COPTIC EPACT NUMBER EIGHTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   280
            case 0x102F2: retval = 90; break;      // COPTIC EPACT NUMBER NINETY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   281
            case 0x102F3: retval = 100; break;     // COPTIC EPACT NUMBER ONE HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   282
            case 0x102F4: retval = 200; break;     // COPTIC EPACT NUMBER TWO HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   283
            case 0x102F5: retval = 300; break;     // COPTIC EPACT NUMBER THREE HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   284
            case 0x102F6: retval = 400; break;     // COPTIC EPACT NUMBER FOUR HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   285
            case 0x102F7: retval = 500; break;     // COPTIC EPACT NUMBER FIVE HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   286
            case 0x102F8: retval = 600; break;     // COPTIC EPACT NUMBER SIX HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   287
            case 0x102F9: retval = 700; break;     // COPTIC EPACT NUMBER SEVEN HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   288
            case 0x102FA: retval = 800; break;     // COPTIC EPACT NUMBER EIGHT HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   289
            case 0x102FB: retval = 900; break;     // COPTIC EPACT NUMBER NINE HUNDRED
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   290
            case 0x10323: retval = 50; break;      // OLD ITALIC NUMERAL FIFTY
31680
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   291
            case 0x10341: retval = 90; break;      // GOTHIC LETTER NINETY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   292
            case 0x1034A: retval = 900; break;     // GOTHIC LETTER NINE HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   293
            case 0x103D5: retval = 100; break;     // OLD PERSIAN NUMBER HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   294
            case 0x1085D: retval = 100; break;     // IMPERIAL ARAMAIC NUMBER ONE HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   295
            case 0x1085E: retval = 1000; break;    // IMPERIAL ARAMAIC NUMBER ONE THOUSAND
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   296
            case 0x1085F: retval = 10000; break;   // IMPERIAL ARAMAIC NUMBER TEN THOUSAND
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   297
            case 0x108AF: retval = 100; break;     // NABATAEAN NUMBER ONE HUNDRED
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   298
            case 0x108FF: retval = 100; break;     // HATRAN NUMBER ONE HUNDRED
31680
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   299
            case 0x10919: retval = 100; break;     // PHOENICIAN NUMBER ONE HUNDRED
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   300
            case 0x109CC: retval = 40; break;      // MEROITIC CURSIVE NUMBER FORTY
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   301
            case 0x109CD: retval = 50; break;      // MEROITIC CURSIVE NUMBER FIFTY
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   302
            case 0x109CE: retval = 60; break;      // MEROITIC CURSIVE NUMBER SIXTY
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   303
            case 0x109CF: retval = 70; break;      // MEROITIC CURSIVE NUMBER SEVENTY
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   304
            case 0x109D2: retval = 100; break;     // MEROITIC CURSIVE NUMBER ONE HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   305
            case 0x109D3: retval = 200; break;     // MEROITIC CURSIVE NUMBER TWO HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   306
            case 0x109D4: retval = 300; break;     // MEROITIC CURSIVE NUMBER THREE HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   307
            case 0x109D5: retval = 400; break;     // MEROITIC CURSIVE NUMBER FOUR HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   308
            case 0x109D6: retval = 500; break;     // MEROITIC CURSIVE NUMBER FIVE HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   309
            case 0x109D7: retval = 600; break;     // MEROITIC CURSIVE NUMBER SIX HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   310
            case 0x109D8: retval = 700; break;     // MEROITIC CURSIVE NUMBER SEVEN HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   311
            case 0x109D9: retval = 800; break;     // MEROITIC CURSIVE NUMBER EIGHT HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   312
            case 0x109DA: retval = 900; break;     // MEROITIC CURSIVE NUMBER NINE HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   313
            case 0x109DB: retval = 1000; break;    // MEROITIC CURSIVE NUMBER ONE THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   314
            case 0x109DC: retval = 2000; break;    // MEROITIC CURSIVE NUMBER TWO THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   315
            case 0x109DD: retval = 3000; break;    // MEROITIC CURSIVE NUMBER THREE THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   316
            case 0x109DE: retval = 4000; break;    // MEROITIC CURSIVE NUMBER FOUR THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   317
            case 0x109DF: retval = 5000; break;    // MEROITIC CURSIVE NUMBER FIVE THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   318
            case 0x109E0: retval = 6000; break;    // MEROITIC CURSIVE NUMBER SIX THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   319
            case 0x109E1: retval = 7000; break;    // MEROITIC CURSIVE NUMBER SEVEN THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   320
            case 0x109E2: retval = 8000; break;    // MEROITIC CURSIVE NUMBER EIGHT THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   321
            case 0x109E3: retval = 9000; break;    // MEROITIC CURSIVE NUMBER NINE THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   322
            case 0x109E4: retval = 10000; break;   // MEROITIC CURSIVE NUMBER TEN THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   323
            case 0x109E5: retval = 20000; break;   // MEROITIC CURSIVE NUMBER TWENTY THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   324
            case 0x109E6: retval = 30000; break;   // MEROITIC CURSIVE NUMBER THIRTY THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   325
            case 0x109E7: retval = 40000; break;   // MEROITIC CURSIVE NUMBER FORTY THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   326
            case 0x109E8: retval = 50000; break;   // MEROITIC CURSIVE NUMBER FIFTY THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   327
            case 0x109E9: retval = 60000; break;   // MEROITIC CURSIVE NUMBER SIXTY THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   328
            case 0x109EA: retval = 70000; break;   // MEROITIC CURSIVE NUMBER SEVENTY THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   329
            case 0x109EB: retval = 80000; break;   // MEROITIC CURSIVE NUMBER EIGHTY THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   330
            case 0x109EC: retval = 90000; break;   // MEROITIC CURSIVE NUMBER NINETY THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   331
            case 0x109ED: retval = 100000; break;  // MEROITIC CURSIVE NUMBER ONE HUNDRED THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   332
            case 0x109EE: retval = 200000; break;  // MEROITIC CURSIVE NUMBER TWO HUNDRED THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   333
            case 0x109EF: retval = 300000; break;  // MEROITIC CURSIVE NUMBER THREE HUNDRED THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   334
            case 0x109F0: retval = 400000; break;  // MEROITIC CURSIVE NUMBER FOUR HUNDRED THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   335
            case 0x109F1: retval = 500000; break;  // MEROITIC CURSIVE NUMBER FIVE HUNDRED THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   336
            case 0x109F2: retval = 600000; break;  // MEROITIC CURSIVE NUMBER SIX HUNDRED THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   337
            case 0x109F3: retval = 700000; break;  // MEROITIC CURSIVE NUMBER SEVEN HUNDRED THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   338
            case 0x109F4: retval = 800000; break;  // MEROITIC CURSIVE NUMBER EIGHT HUNDRED THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   339
            case 0x109F5: retval = 900000; break;  // MEROITIC CURSIVE NUMBER NINE HUNDRED THOUSAND
31680
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   340
            case 0x10A46: retval = 100; break;     // KHAROSHTHI NUMBER ONE HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   341
            case 0x10A47: retval = 1000; break;    // KHAROSHTHI NUMBER ONE THOUSAND
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   342
            case 0x10A7E: retval = 50; break;      // OLD SOUTH ARABIAN NUMBER FIFTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   343
            case 0x10AEF: retval = 100; break;     // MANICHAEAN NUMBER ONE HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   344
            case 0x10B5E: retval = 100; break;     // INSCRIPTIONAL PARTHIAN NUMBER ONE HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   345
            case 0x10B5F: retval = 1000; break;    // INSCRIPTIONAL PARTHIAN NUMBER ONE THOUSAND
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   346
            case 0x10B7E: retval = 100; break;     // INSCRIPTIONAL PAHLAVI NUMBER ONE HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   347
            case 0x10B7F: retval = 1000; break;    // INSCRIPTIONAL PAHLAVI NUMBER ONE THOUSAND
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   348
            case 0x10BAF: retval = 100; break;     // PSALTER PAHLAVI NUMBER ONE HUNDRED
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   349
            case 0x10CFD: retval = 50; break;      // OLD HUNGARIAN NUMBER FIFTY
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   350
            case 0x10CFE: retval = 100; break;     // OLD HUNGARIAN NUMBER ONE HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   351
            case 0x10CFF: retval = 1000; break;    // OLD HUNGARIAN NUMBER ONE THOUSAND
31680
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   352
            case 0x10E6C: retval = 40; break;      // RUMI NUMBER FORTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   353
            case 0x10E6D: retval = 50; break;      // RUMI NUMBER FIFTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   354
            case 0x10E6E: retval = 60; break;      // RUMI NUMBER SIXTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   355
            case 0x10E6F: retval = 70; break;      // RUMI NUMBER SEVENTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   356
            case 0x10E70: retval = 80; break;      // RUMI NUMBER EIGHTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   357
            case 0x10E71: retval = 90; break;      // RUMI NUMBER NINETY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   358
            case 0x10E72: retval = 100; break;     // RUMI NUMBER ONE HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   359
            case 0x10E73: retval = 200; break;     // RUMI NUMBER TWO HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   360
            case 0x10E74: retval = 300; break;     // RUMI NUMBER THREE HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   361
            case 0x10E75: retval = 400; break;     // RUMI NUMBER FOUR HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   362
            case 0x10E76: retval = 500; break;     // RUMI NUMBER FIVE HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   363
            case 0x10E77: retval = 600; break;     // RUMI NUMBER SIX HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   364
            case 0x10E78: retval = 700; break;     // RUMI NUMBER SEVEN HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   365
            case 0x10E79: retval = 800; break;     // RUMI NUMBER EIGHT HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   366
            case 0x10E7A: retval = 900; break;     // RUMI NUMBER NINE HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   367
            case 0x1105E: retval = 40; break;      // BRAHMI NUMBER FORTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   368
            case 0x1105F: retval = 50; break;      // BRAHMI NUMBER FIFTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   369
            case 0x11060: retval = 60; break;      // BRAHMI NUMBER SIXTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   370
            case 0x11061: retval = 70; break;      // BRAHMI NUMBER SEVENTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   371
            case 0x11062: retval = 80; break;      // BRAHMI NUMBER EIGHTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   372
            case 0x11063: retval = 90; break;      // BRAHMI NUMBER NINETY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   373
            case 0x11064: retval = 100; break;     // BRAHMI NUMBER ONE HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   374
            case 0x11065: retval = 1000; break;    // BRAHMI NUMBER ONE THOUSAND
50045
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   375
            case 0x11C66: retval = 40; break;      // BHAIKSUKI NUMBER FORTY
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   376
            case 0x11C67: retval = 50; break;      // BHAIKSUKI NUMBER FIFTY
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   377
            case 0x11C68: retval = 60; break;      // BHAIKSUKI NUMBER SIXTY
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   378
            case 0x11C69: retval = 70; break;      // BHAIKSUKI NUMBER SEVENTY
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   379
            case 0x11C6A: retval = 80; break;      // BHAIKSUKI NUMBER EIGHTY
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   380
            case 0x11C6B: retval = 90; break;      // BHAIKSUKI NUMBER NINETY
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   381
            case 0x11C6C: retval = 100; break;     // BHAIKSUKI HUNDREDS UNIT MARK
31680
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   382
            case 0x111ED: retval = 40; break;      // SINHALA ARCHAIC NUMBER FORTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   383
            case 0x111EE: retval = 50; break;      // SINHALA ARCHAIC NUMBER FIFTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   384
            case 0x111EF: retval = 60; break;      // SINHALA ARCHAIC NUMBER SIXTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   385
            case 0x111F0: retval = 70; break;      // SINHALA ARCHAIC NUMBER SEVENTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   386
            case 0x111F1: retval = 80; break;      // SINHALA ARCHAIC NUMBER EIGHTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   387
            case 0x111F2: retval = 90; break;      // SINHALA ARCHAIC NUMBER NINETY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   388
            case 0x111F3: retval = 100; break;     // SINHALA ARCHAIC NUMBER ONE HUNDRED
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   389
            case 0x111F4: retval = 1000; break;    // SINHALA ARCHAIC NUMBER ONE THOUSAND
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   390
            case 0x118ED: retval = 40; break;      // WARANG CITI NUMBER FORTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   391
            case 0x118EE: retval = 50; break;      // WARANG CITI NUMBER FIFTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   392
            case 0x118EF: retval = 60; break;      // WARANG CITI NUMBER SIXTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   393
            case 0x118F0: retval = 70; break;      // WARANG CITI NUMBER SEVENTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   394
            case 0x118F1: retval = 80; break;      // WARANG CITI NUMBER EIGHTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   395
            case 0x118F2: retval = 90; break;      // WARANG CITI NUMBER NINETY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   396
            case 0x12432: retval = 216000; break;  // CUNEIFORM NUMERIC SIGN SHAR2 TIMES GAL PLUS DISH
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   397
            case 0x12433: retval = 432000; break;  // CUNEIFORM NUMERIC SIGN SHAR2 TIMES GAL PLUS MIN
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   398
            case 0x12467: retval = 40; break;      // CUNEIFORM NUMERIC SIGN ELAMITE FORTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   399
            case 0x12468: retval = 50; break;      // CUNEIFORM NUMERIC SIGN ELAMITE FIFTY
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   400
            case 0x16B5C: retval = 100; break;     // PAHAWH HMONG NUMBER HUNDREDS
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   401
            case 0x16B5D: retval = 10000; break;   // PAHAWH HMONG NUMBER TEN THOUSANDS
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   402
            case 0x16B5E: retval = 1000000; break; // PAHAWH HMONG NUMBER MILLIONS
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   403
            case 0x16B5F: retval = 100000000; break;// PAHAWH HMONG NUMBER HUNDRED MILLIONS
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   404
            case 0x1D36C: retval = 40; break;      // COUNTING ROD TENS DIGIT FOUR
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   405
            case 0x1D36D: retval = 50; break;      // COUNTING ROD TENS DIGIT FIVE
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   406
            case 0x1D36E: retval = 60; break;      // COUNTING ROD TENS DIGIT SIX
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   407
            case 0x1D36F: retval = 70; break;      // COUNTING ROD TENS DIGIT SEVEN
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   408
            case 0x1D370: retval = 80; break;      // COUNTING ROD TENS DIGIT EIGHT
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   409
            case 0x1D371: retval = 90; break;      // COUNTING ROD TENS DIGIT NINE
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
            default: retval = -2; break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
            
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
            break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
        case ($$valueJavaSupradecimal):           // Java supradecimal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
            retval = (ch + ((val & $$maskDigitOffset) >> $$shiftDigitOffset) & $$maskDigit) + 10;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
            break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
        return retval;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
    boolean isWhitespace(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
        int props = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
        return ((props & $$maskIdentifierInfo) == $$valueJavaWhitespace);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
    byte getDirectionality(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
        int val = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
        byte directionality = (byte)((val & $$maskBidi) >> $$shiftBidi);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
        if (directionality == 0xF ) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
            directionality = Character.DIRECTIONALITY_UNDEFINED;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
        return directionality;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
    boolean isMirrored(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
        int props = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
        return ((props & $$maskMirrored) != 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
    static final CharacterData instance = new CharacterData01();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
    private CharacterData01() {};
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
    $$Tables
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
    static {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
        $$Initializers
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
    }        
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
}