make/data/characterdata/CharacterData00.java.template
author naoto
Thu, 05 Sep 2019 17:38:54 -0700
changeset 58028 7ac4273bb49b
parent 55013 8dae495a59e7
permissions -rw-r--r--
8229831: Upgrade Character.isUnicodeIdentifierStart/Part() methods to the latest standard Reviewed-by: rriggs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
55013
8dae495a59e7 8221431: Support for Unicode 12.1
naoto
parents: 52979
diff changeset
     2
 * Copyright (c) 2003, 2019, 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
52633
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
    28
/**
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 * The CharacterData00 class encapsulates the large tables once found in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 * java.lang.Character
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
*/
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
class CharacterData00 extends CharacterData {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
    /* The character properties are currently encoded into 32 bits in the following manner:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
        1 bit   mirrored property
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
        4 bits  directionality property
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
        9 bits  signed offset used for converting case
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
        1 bit   if 1, adding the signed offset converts the character to lowercase
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
        1 bit   if 1, subtracting the signed offset converts the character to uppercase
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
        1 bit   if 1, this character has a titlecase equivalent (possibly itself)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
        3 bits  0  may not be part of an identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
                1  ignorable control; may continue a Unicode identifier or Java identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
                2  may continue a Java identifier but not a Unicode identifier (unused)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
                3  may continue a Unicode identifier or Java identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
                4  is a Java whitespace character
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
                5  may start or continue a Java identifier;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
                   may continue but not start a Unicode identifier (underscores)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
                6  may start or continue a Java identifier but not a Unicode identifier ($)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
                7  may start or continue a Unicode identifier or Java identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
                Thus:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
                   5, 6, 7 may start a Java identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
                   1, 2, 3, 5, 6, 7 may continue a Java identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
                   7 may start a Unicode identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
                   1, 3, 5, 7 may continue a Unicode identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
                   1 is ignorable within an identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
                   4 is Java whitespace
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
        2 bits  0  this character has no numeric property
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
                1  adding the digit offset to the character code and then
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
                   masking with 0x1F will produce the desired numeric value
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
                2  this character has a "strange" numeric value
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
                3  a Java supradecimal digit: adding the digit offset to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
                   character code, then masking with 0x1F, then adding 10
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
                   will produce the desired numeric value
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
        5 bits  digit offset
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
        5 bits  character type
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
        The encoding of character properties is subject to change at any time.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    int getProperties(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
        char offset = (char)ch;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
        int props = $$Lookup(offset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
        return props;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
9535
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    76
    int getPropertiesEx(int ch) {
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    77
        char offset = (char)ch;
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    78
        int props = $$LookupEx(offset);
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    79
        return props;
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    80
    }
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    81
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    int getType(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
        int props = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
        return (props & $$maskType);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
9535
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    87
    boolean isOtherLowercase(int ch) {
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    88
        int props = getPropertiesEx(ch);
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    89
        return (props & $$maskOtherLowercase) != 0;
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
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    92
    boolean isOtherUppercase(int ch) {
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    93
        int props = getPropertiesEx(ch);
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    94
        return (props & $$maskOtherUppercase) != 0;
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
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    97
    boolean isOtherAlphabetic(int ch) {
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    98
        int props = getPropertiesEx(ch);
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
    99
        return (props & $$maskOtherAlphabetic) != 0;
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
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
   102
    boolean isIdeographic(int ch) {
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
   103
        int props = getPropertiesEx(ch);
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
   104
        return (props & $$maskIdeographic) != 0;
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
   105
    }
d930011fd275 7037261: j.l.Character.isLowerCase/isUpperCase need to match the Unicode Standard
sherman
parents: 7247
diff changeset
   106
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    boolean isJavaIdentifierStart(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        int props = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        return ((props & $$maskIdentifierInfo) >= $$lowJavaStart);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
    boolean isJavaIdentifierPart(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        int props = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
        return ((props & $$nonzeroJavaPart) != 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    boolean isUnicodeIdentifierStart(int ch) {
58028
7ac4273bb49b 8229831: Upgrade Character.isUnicodeIdentifierStart/Part() methods to the latest standard
naoto
parents: 55013
diff changeset
   118
        return (getPropertiesEx(ch) & $$maskIDStart) != 0 ||
7ac4273bb49b 8229831: Upgrade Character.isUnicodeIdentifierStart/Part() methods to the latest standard
naoto
parents: 55013
diff changeset
   119
               ch == 0x2E2F;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
    boolean isUnicodeIdentifierPart(int ch) {
58028
7ac4273bb49b 8229831: Upgrade Character.isUnicodeIdentifierStart/Part() methods to the latest standard
naoto
parents: 55013
diff changeset
   123
        return (getPropertiesEx(ch) & $$maskIDContinue) != 0 ||
7ac4273bb49b 8229831: Upgrade Character.isUnicodeIdentifierStart/Part() methods to the latest standard
naoto
parents: 55013
diff changeset
   124
               isIdentifierIgnorable(ch) ||
7ac4273bb49b 8229831: Upgrade Character.isUnicodeIdentifierStart/Part() methods to the latest standard
naoto
parents: 55013
diff changeset
   125
               ch == 0x2E2F;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
    boolean isIdentifierIgnorable(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
        int props = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
        return ((props & $$maskIdentifierInfo) == $$valueIgnorable);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
    int toLowerCase(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
        int mapChar = ch;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
        int val = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
        if ((val & $$maskLowerCase) != 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
          if ((val & $$maskCaseOffset) == $$maskCaseOffset) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
            switch(ch) {
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   140
            case 0x0130: mapChar = 0x0069; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   141
            case 0x023A: mapChar = 0x2C65; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   142
            case 0x023E: mapChar = 0x2C66; break;
50045
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   143
            case 0x0412: mapChar = 0x1C80; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   144
            case 0x0414: mapChar = 0x1C81; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   145
            case 0x041E: mapChar = 0x1C82; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   146
            case 0x0421: mapChar = 0x1C83; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   147
            case 0x042A: mapChar = 0x1C86; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   148
            case 0x0462: mapChar = 0x1C87; break;
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   149
            case 0x10A0: mapChar = 0x2D00; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   150
            case 0x10A1: mapChar = 0x2D01; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   151
            case 0x10A2: mapChar = 0x2D02; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   152
            case 0x10A3: mapChar = 0x2D03; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   153
            case 0x10A4: mapChar = 0x2D04; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   154
            case 0x10A5: mapChar = 0x2D05; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   155
            case 0x10A6: mapChar = 0x2D06; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   156
            case 0x10A7: mapChar = 0x2D07; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   157
            case 0x10A8: mapChar = 0x2D08; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   158
            case 0x10A9: mapChar = 0x2D09; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   159
            case 0x10AA: mapChar = 0x2D0A; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   160
            case 0x10AB: mapChar = 0x2D0B; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   161
            case 0x10AC: mapChar = 0x2D0C; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   162
            case 0x10AD: mapChar = 0x2D0D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   163
            case 0x10AE: mapChar = 0x2D0E; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   164
            case 0x10AF: mapChar = 0x2D0F; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   165
            case 0x10B0: mapChar = 0x2D10; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   166
            case 0x10B1: mapChar = 0x2D11; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   167
            case 0x10B2: mapChar = 0x2D12; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   168
            case 0x10B3: mapChar = 0x2D13; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   169
            case 0x10B4: mapChar = 0x2D14; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   170
            case 0x10B5: mapChar = 0x2D15; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   171
            case 0x10B6: mapChar = 0x2D16; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   172
            case 0x10B7: mapChar = 0x2D17; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   173
            case 0x10B8: mapChar = 0x2D18; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   174
            case 0x10B9: mapChar = 0x2D19; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   175
            case 0x10BA: mapChar = 0x2D1A; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   176
            case 0x10BB: mapChar = 0x2D1B; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   177
            case 0x10BC: mapChar = 0x2D1C; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   178
            case 0x10BD: mapChar = 0x2D1D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   179
            case 0x10BE: mapChar = 0x2D1E; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   180
            case 0x10BF: mapChar = 0x2D1F; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   181
            case 0x10C0: mapChar = 0x2D20; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   182
            case 0x10C1: mapChar = 0x2D21; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   183
            case 0x10C2: mapChar = 0x2D22; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   184
            case 0x10C3: mapChar = 0x2D23; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   185
            case 0x10C4: mapChar = 0x2D24; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   186
            case 0x10C5: mapChar = 0x2D25; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   187
            case 0x10C7: mapChar = 0x2D27; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   188
            case 0x10CD: mapChar = 0x2D2D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   189
            case 0x13A0: mapChar = 0xAB70; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   190
            case 0x13A1: mapChar = 0xAB71; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   191
            case 0x13A2: mapChar = 0xAB72; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   192
            case 0x13A3: mapChar = 0xAB73; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   193
            case 0x13A4: mapChar = 0xAB74; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   194
            case 0x13A5: mapChar = 0xAB75; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   195
            case 0x13A6: mapChar = 0xAB76; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   196
            case 0x13A7: mapChar = 0xAB77; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   197
            case 0x13A8: mapChar = 0xAB78; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   198
            case 0x13A9: mapChar = 0xAB79; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   199
            case 0x13AA: mapChar = 0xAB7A; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   200
            case 0x13AB: mapChar = 0xAB7B; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   201
            case 0x13AC: mapChar = 0xAB7C; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   202
            case 0x13AD: mapChar = 0xAB7D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   203
            case 0x13AE: mapChar = 0xAB7E; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   204
            case 0x13AF: mapChar = 0xAB7F; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   205
            case 0x13B0: mapChar = 0xAB80; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   206
            case 0x13B1: mapChar = 0xAB81; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   207
            case 0x13B2: mapChar = 0xAB82; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   208
            case 0x13B3: mapChar = 0xAB83; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   209
            case 0x13B4: mapChar = 0xAB84; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   210
            case 0x13B5: mapChar = 0xAB85; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   211
            case 0x13B6: mapChar = 0xAB86; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   212
            case 0x13B7: mapChar = 0xAB87; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   213
            case 0x13B8: mapChar = 0xAB88; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   214
            case 0x13B9: mapChar = 0xAB89; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   215
            case 0x13BA: mapChar = 0xAB8A; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   216
            case 0x13BB: mapChar = 0xAB8B; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   217
            case 0x13BC: mapChar = 0xAB8C; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   218
            case 0x13BD: mapChar = 0xAB8D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   219
            case 0x13BE: mapChar = 0xAB8E; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   220
            case 0x13BF: mapChar = 0xAB8F; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   221
            case 0x13C0: mapChar = 0xAB90; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   222
            case 0x13C1: mapChar = 0xAB91; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   223
            case 0x13C2: mapChar = 0xAB92; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   224
            case 0x13C3: mapChar = 0xAB93; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   225
            case 0x13C4: mapChar = 0xAB94; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   226
            case 0x13C5: mapChar = 0xAB95; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   227
            case 0x13C6: mapChar = 0xAB96; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   228
            case 0x13C7: mapChar = 0xAB97; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   229
            case 0x13C8: mapChar = 0xAB98; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   230
            case 0x13C9: mapChar = 0xAB99; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   231
            case 0x13CA: mapChar = 0xAB9A; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   232
            case 0x13CB: mapChar = 0xAB9B; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   233
            case 0x13CC: mapChar = 0xAB9C; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   234
            case 0x13CD: mapChar = 0xAB9D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   235
            case 0x13CE: mapChar = 0xAB9E; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   236
            case 0x13CF: mapChar = 0xAB9F; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   237
            case 0x13D0: mapChar = 0xABA0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   238
            case 0x13D1: mapChar = 0xABA1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   239
            case 0x13D2: mapChar = 0xABA2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   240
            case 0x13D3: mapChar = 0xABA3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   241
            case 0x13D4: mapChar = 0xABA4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   242
            case 0x13D5: mapChar = 0xABA5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   243
            case 0x13D6: mapChar = 0xABA6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   244
            case 0x13D7: mapChar = 0xABA7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   245
            case 0x13D8: mapChar = 0xABA8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   246
            case 0x13D9: mapChar = 0xABA9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   247
            case 0x13DA: mapChar = 0xABAA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   248
            case 0x13DB: mapChar = 0xABAB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   249
            case 0x13DC: mapChar = 0xABAC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   250
            case 0x13DD: mapChar = 0xABAD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   251
            case 0x13DE: mapChar = 0xABAE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   252
            case 0x13DF: mapChar = 0xABAF; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   253
            case 0x13E0: mapChar = 0xABB0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   254
            case 0x13E1: mapChar = 0xABB1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   255
            case 0x13E2: mapChar = 0xABB2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   256
            case 0x13E3: mapChar = 0xABB3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   257
            case 0x13E4: mapChar = 0xABB4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   258
            case 0x13E5: mapChar = 0xABB5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   259
            case 0x13E6: mapChar = 0xABB6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   260
            case 0x13E7: mapChar = 0xABB7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   261
            case 0x13E8: mapChar = 0xABB8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   262
            case 0x13E9: mapChar = 0xABB9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   263
            case 0x13EA: mapChar = 0xABBA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   264
            case 0x13EB: mapChar = 0xABBB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   265
            case 0x13EC: mapChar = 0xABBC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   266
            case 0x13ED: mapChar = 0xABBD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   267
            case 0x13EE: mapChar = 0xABBE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   268
            case 0x13EF: mapChar = 0xABBF; break;
52633
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   269
            case 0x1C90: mapChar = 0x10D0; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   270
            case 0x1C91: mapChar = 0x10D1; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   271
            case 0x1C92: mapChar = 0x10D2; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   272
            case 0x1C93: mapChar = 0x10D3; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   273
            case 0x1C94: mapChar = 0x10D4; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   274
            case 0x1C95: mapChar = 0x10D5; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   275
            case 0x1C96: mapChar = 0x10D6; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   276
            case 0x1C97: mapChar = 0x10D7; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   277
            case 0x1C98: mapChar = 0x10D8; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   278
            case 0x1C99: mapChar = 0x10D9; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   279
            case 0x1C9A: mapChar = 0x10DA; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   280
            case 0x1C9B: mapChar = 0x10DB; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   281
            case 0x1C9C: mapChar = 0x10DC; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   282
            case 0x1C9D: mapChar = 0x10DD; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   283
            case 0x1C9E: mapChar = 0x10DE; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   284
            case 0x1C9F: mapChar = 0x10DF; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   285
            case 0x1CA0: mapChar = 0x10E0; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   286
            case 0x1CA1: mapChar = 0x10E1; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   287
            case 0x1CA2: mapChar = 0x10E2; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   288
            case 0x1CA3: mapChar = 0x10E3; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   289
            case 0x1CA4: mapChar = 0x10E4; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   290
            case 0x1CA5: mapChar = 0x10E5; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   291
            case 0x1CA6: mapChar = 0x10E6; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   292
            case 0x1CA7: mapChar = 0x10E7; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   293
            case 0x1CA8: mapChar = 0x10E8; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   294
            case 0x1CA9: mapChar = 0x10E9; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   295
            case 0x1CAA: mapChar = 0x10EA; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   296
            case 0x1CAB: mapChar = 0x10EB; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   297
            case 0x1CAC: mapChar = 0x10EC; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   298
            case 0x1CAD: mapChar = 0x10ED; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   299
            case 0x1CAE: mapChar = 0x10EE; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   300
            case 0x1CAF: mapChar = 0x10EF; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   301
            case 0x1CB0: mapChar = 0x10F0; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   302
            case 0x1CB1: mapChar = 0x10F1; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   303
            case 0x1CB2: mapChar = 0x10F2; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   304
            case 0x1CB3: mapChar = 0x10F3; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   305
            case 0x1CB4: mapChar = 0x10F4; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   306
            case 0x1CB5: mapChar = 0x10F5; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   307
            case 0x1CB6: mapChar = 0x10F6; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   308
            case 0x1CB7: mapChar = 0x10F7; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   309
            case 0x1CB8: mapChar = 0x10F8; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   310
            case 0x1CB9: mapChar = 0x10F9; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   311
            case 0x1CBA: mapChar = 0x10FA; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   312
            case 0x1CBB: mapChar = 0x10FB; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   313
            case 0x1CBC: mapChar = 0x10FC; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   314
            case 0x1CBD: mapChar = 0x10FD; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   315
            case 0x1CBE: mapChar = 0x10FE; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   316
            case 0x1CBF: mapChar = 0x10FF; break;
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   317
            case 0x1E9E: mapChar = 0x00DF; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   318
            case 0x1F88: mapChar = 0x1F80; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   319
            case 0x1F89: mapChar = 0x1F81; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   320
            case 0x1F8A: mapChar = 0x1F82; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   321
            case 0x1F8B: mapChar = 0x1F83; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   322
            case 0x1F8C: mapChar = 0x1F84; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   323
            case 0x1F8D: mapChar = 0x1F85; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   324
            case 0x1F8E: mapChar = 0x1F86; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   325
            case 0x1F8F: mapChar = 0x1F87; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   326
            case 0x1F98: mapChar = 0x1F90; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   327
            case 0x1F99: mapChar = 0x1F91; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   328
            case 0x1F9A: mapChar = 0x1F92; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   329
            case 0x1F9B: mapChar = 0x1F93; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   330
            case 0x1F9C: mapChar = 0x1F94; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   331
            case 0x1F9D: mapChar = 0x1F95; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   332
            case 0x1F9E: mapChar = 0x1F96; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   333
            case 0x1F9F: mapChar = 0x1F97; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   334
            case 0x1FA8: mapChar = 0x1FA0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   335
            case 0x1FA9: mapChar = 0x1FA1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   336
            case 0x1FAA: mapChar = 0x1FA2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   337
            case 0x1FAB: mapChar = 0x1FA3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   338
            case 0x1FAC: mapChar = 0x1FA4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   339
            case 0x1FAD: mapChar = 0x1FA5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   340
            case 0x1FAE: mapChar = 0x1FA6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   341
            case 0x1FAF: mapChar = 0x1FA7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   342
            case 0x1FBC: mapChar = 0x1FB3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   343
            case 0x1FCC: mapChar = 0x1FC3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   344
            case 0x1FFC: mapChar = 0x1FF3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   345
            case 0x2126: mapChar = 0x03C9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   346
            case 0x212A: mapChar = 0x006B; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   347
            case 0x212B: mapChar = 0x00E5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   348
            case 0x2C62: mapChar = 0x026B; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   349
            case 0x2C63: mapChar = 0x1D7D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   350
            case 0x2C64: mapChar = 0x027D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   351
            case 0x2C6D: mapChar = 0x0251; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   352
            case 0x2C6E: mapChar = 0x0271; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   353
            case 0x2C6F: mapChar = 0x0250; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   354
            case 0x2C70: mapChar = 0x0252; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   355
            case 0x2C7E: mapChar = 0x023F; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   356
            case 0x2C7F: mapChar = 0x0240; break;
50045
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   357
            case 0xA64A: mapChar = 0x1C88; break;
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   358
            case 0xA77D: mapChar = 0x1D79; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   359
            case 0xA78D: mapChar = 0x0265; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   360
            case 0xA7AA: mapChar = 0x0266; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   361
            case 0xA7AB: mapChar = 0x025C; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   362
            case 0xA7AC: mapChar = 0x0261; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   363
            case 0xA7AD: mapChar = 0x026C; break;
50045
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   364
            case 0xA7AE: mapChar = 0x026A; break;
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   365
            case 0xA7B0: mapChar = 0x029E; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   366
            case 0xA7B1: mapChar = 0x0287; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   367
            case 0xA7B2: mapChar = 0x029D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   368
            case 0xA7B3: mapChar = 0xAB53; break;
55013
8dae495a59e7 8221431: Support for Unicode 12.1
naoto
parents: 52979
diff changeset
   369
            case 0xA7C5: mapChar = 0x0282; break;
8dae495a59e7 8221431: Support for Unicode 12.1
naoto
parents: 52979
diff changeset
   370
            case 0xA7C6: mapChar = 0x1D8E; break;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
              // default mapChar is already set, so no
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
              // need to redo it here.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
              // default       : mapChar = ch;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
          }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
          else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
            int offset = val << $$shiftCaseOffsetSign >> ($$shiftCaseOffsetSign+$$shiftCaseOffset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
            mapChar = ch + offset;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
          }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
        return mapChar;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
    int toUpperCase(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
        int mapChar = ch;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
        int val = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
        if ((val & $$maskUpperCase) != 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
          if ((val & $$maskCaseOffset) == $$maskCaseOffset) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
            switch(ch) {
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   391
            case 0x017F: mapChar = 0x0053; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   392
            case 0x023F: mapChar = 0x2C7E; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   393
            case 0x0240: mapChar = 0x2C7F; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   394
            case 0x0250: mapChar = 0x2C6F; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   395
            case 0x0251: mapChar = 0x2C6D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   396
            case 0x0252: mapChar = 0x2C70; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   397
            case 0x025C: mapChar = 0xA7AB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   398
            case 0x0261: mapChar = 0xA7AC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   399
            case 0x0265: mapChar = 0xA78D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   400
            case 0x0266: mapChar = 0xA7AA; break;
50045
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   401
            case 0x026A: mapChar = 0xA7AE; break;
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   402
            case 0x026B: mapChar = 0x2C62; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   403
            case 0x026C: mapChar = 0xA7AD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   404
            case 0x0271: mapChar = 0x2C6E; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   405
            case 0x027D: mapChar = 0x2C64; break;
55013
8dae495a59e7 8221431: Support for Unicode 12.1
naoto
parents: 52979
diff changeset
   406
            case 0x0282: mapChar = 0xA7C5; break;
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   407
            case 0x0287: mapChar = 0xA7B1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   408
            case 0x029D: mapChar = 0xA7B2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   409
            case 0x029E: mapChar = 0xA7B0; break;
52633
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   410
            case 0x10D0: mapChar = 0x1C90; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   411
            case 0x10D1: mapChar = 0x1C91; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   412
            case 0x10D2: mapChar = 0x1C92; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   413
            case 0x10D3: mapChar = 0x1C93; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   414
            case 0x10D4: mapChar = 0x1C94; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   415
            case 0x10D5: mapChar = 0x1C95; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   416
            case 0x10D6: mapChar = 0x1C96; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   417
            case 0x10D7: mapChar = 0x1C97; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   418
            case 0x10D8: mapChar = 0x1C98; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   419
            case 0x10D9: mapChar = 0x1C99; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   420
            case 0x10DA: mapChar = 0x1C9A; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   421
            case 0x10DB: mapChar = 0x1C9B; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   422
            case 0x10DC: mapChar = 0x1C9C; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   423
            case 0x10DD: mapChar = 0x1C9D; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   424
            case 0x10DE: mapChar = 0x1C9E; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   425
            case 0x10DF: mapChar = 0x1C9F; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   426
            case 0x10E0: mapChar = 0x1CA0; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   427
            case 0x10E1: mapChar = 0x1CA1; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   428
            case 0x10E2: mapChar = 0x1CA2; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   429
            case 0x10E3: mapChar = 0x1CA3; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   430
            case 0x10E4: mapChar = 0x1CA4; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   431
            case 0x10E5: mapChar = 0x1CA5; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   432
            case 0x10E6: mapChar = 0x1CA6; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   433
            case 0x10E7: mapChar = 0x1CA7; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   434
            case 0x10E8: mapChar = 0x1CA8; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   435
            case 0x10E9: mapChar = 0x1CA9; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   436
            case 0x10EA: mapChar = 0x1CAA; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   437
            case 0x10EB: mapChar = 0x1CAB; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   438
            case 0x10EC: mapChar = 0x1CAC; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   439
            case 0x10ED: mapChar = 0x1CAD; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   440
            case 0x10EE: mapChar = 0x1CAE; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   441
            case 0x10EF: mapChar = 0x1CAF; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   442
            case 0x10F0: mapChar = 0x1CB0; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   443
            case 0x10F1: mapChar = 0x1CB1; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   444
            case 0x10F2: mapChar = 0x1CB2; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   445
            case 0x10F3: mapChar = 0x1CB3; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   446
            case 0x10F4: mapChar = 0x1CB4; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   447
            case 0x10F5: mapChar = 0x1CB5; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   448
            case 0x10F6: mapChar = 0x1CB6; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   449
            case 0x10F7: mapChar = 0x1CB7; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   450
            case 0x10F8: mapChar = 0x1CB8; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   451
            case 0x10F9: mapChar = 0x1CB9; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   452
            case 0x10FA: mapChar = 0x1CBA; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   453
            case 0x10FD: mapChar = 0x1CBD; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   454
            case 0x10FE: mapChar = 0x1CBE; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   455
            case 0x10FF: mapChar = 0x1CBF; break;
50045
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   456
            case 0x1C80: mapChar = 0x0412; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   457
            case 0x1C81: mapChar = 0x0414; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   458
            case 0x1C82: mapChar = 0x041E; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   459
            case 0x1C83: mapChar = 0x0421; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   460
            case 0x1C84: mapChar = 0x0422; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   461
            case 0x1C85: mapChar = 0x0422; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   462
            case 0x1C86: mapChar = 0x042A; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   463
            case 0x1C87: mapChar = 0x0462; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   464
            case 0x1C88: mapChar = 0xA64A; break;
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   465
            case 0x1D79: mapChar = 0xA77D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   466
            case 0x1D7D: mapChar = 0x2C63; break;
55013
8dae495a59e7 8221431: Support for Unicode 12.1
naoto
parents: 52979
diff changeset
   467
            case 0x1D8E: mapChar = 0xA7C6; break;
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   468
            case 0x1F80: mapChar = 0x1F88; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   469
            case 0x1F81: mapChar = 0x1F89; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   470
            case 0x1F82: mapChar = 0x1F8A; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   471
            case 0x1F83: mapChar = 0x1F8B; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   472
            case 0x1F84: mapChar = 0x1F8C; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   473
            case 0x1F85: mapChar = 0x1F8D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   474
            case 0x1F86: mapChar = 0x1F8E; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   475
            case 0x1F87: mapChar = 0x1F8F; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   476
            case 0x1F90: mapChar = 0x1F98; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   477
            case 0x1F91: mapChar = 0x1F99; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   478
            case 0x1F92: mapChar = 0x1F9A; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   479
            case 0x1F93: mapChar = 0x1F9B; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   480
            case 0x1F94: mapChar = 0x1F9C; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   481
            case 0x1F95: mapChar = 0x1F9D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   482
            case 0x1F96: mapChar = 0x1F9E; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   483
            case 0x1F97: mapChar = 0x1F9F; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   484
            case 0x1FA0: mapChar = 0x1FA8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   485
            case 0x1FA1: mapChar = 0x1FA9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   486
            case 0x1FA2: mapChar = 0x1FAA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   487
            case 0x1FA3: mapChar = 0x1FAB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   488
            case 0x1FA4: mapChar = 0x1FAC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   489
            case 0x1FA5: mapChar = 0x1FAD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   490
            case 0x1FA6: mapChar = 0x1FAE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   491
            case 0x1FA7: mapChar = 0x1FAF; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   492
            case 0x1FB3: mapChar = 0x1FBC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   493
            case 0x1FBE: mapChar = 0x0399; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   494
            case 0x1FC3: mapChar = 0x1FCC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   495
            case 0x1FF3: mapChar = 0x1FFC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   496
            case 0x2C65: mapChar = 0x023A; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   497
            case 0x2C66: mapChar = 0x023E; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   498
            case 0x2D00: mapChar = 0x10A0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   499
            case 0x2D01: mapChar = 0x10A1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   500
            case 0x2D02: mapChar = 0x10A2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   501
            case 0x2D03: mapChar = 0x10A3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   502
            case 0x2D04: mapChar = 0x10A4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   503
            case 0x2D05: mapChar = 0x10A5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   504
            case 0x2D06: mapChar = 0x10A6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   505
            case 0x2D07: mapChar = 0x10A7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   506
            case 0x2D08: mapChar = 0x10A8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   507
            case 0x2D09: mapChar = 0x10A9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   508
            case 0x2D0A: mapChar = 0x10AA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   509
            case 0x2D0B: mapChar = 0x10AB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   510
            case 0x2D0C: mapChar = 0x10AC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   511
            case 0x2D0D: mapChar = 0x10AD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   512
            case 0x2D0E: mapChar = 0x10AE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   513
            case 0x2D0F: mapChar = 0x10AF; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   514
            case 0x2D10: mapChar = 0x10B0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   515
            case 0x2D11: mapChar = 0x10B1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   516
            case 0x2D12: mapChar = 0x10B2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   517
            case 0x2D13: mapChar = 0x10B3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   518
            case 0x2D14: mapChar = 0x10B4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   519
            case 0x2D15: mapChar = 0x10B5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   520
            case 0x2D16: mapChar = 0x10B6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   521
            case 0x2D17: mapChar = 0x10B7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   522
            case 0x2D18: mapChar = 0x10B8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   523
            case 0x2D19: mapChar = 0x10B9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   524
            case 0x2D1A: mapChar = 0x10BA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   525
            case 0x2D1B: mapChar = 0x10BB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   526
            case 0x2D1C: mapChar = 0x10BC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   527
            case 0x2D1D: mapChar = 0x10BD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   528
            case 0x2D1E: mapChar = 0x10BE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   529
            case 0x2D1F: mapChar = 0x10BF; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   530
            case 0x2D20: mapChar = 0x10C0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   531
            case 0x2D21: mapChar = 0x10C1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   532
            case 0x2D22: mapChar = 0x10C2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   533
            case 0x2D23: mapChar = 0x10C3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   534
            case 0x2D24: mapChar = 0x10C4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   535
            case 0x2D25: mapChar = 0x10C5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   536
            case 0x2D27: mapChar = 0x10C7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   537
            case 0x2D2D: mapChar = 0x10CD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   538
            case 0xAB53: mapChar = 0xA7B3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   539
            case 0xAB70: mapChar = 0x13A0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   540
            case 0xAB71: mapChar = 0x13A1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   541
            case 0xAB72: mapChar = 0x13A2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   542
            case 0xAB73: mapChar = 0x13A3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   543
            case 0xAB74: mapChar = 0x13A4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   544
            case 0xAB75: mapChar = 0x13A5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   545
            case 0xAB76: mapChar = 0x13A6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   546
            case 0xAB77: mapChar = 0x13A7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   547
            case 0xAB78: mapChar = 0x13A8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   548
            case 0xAB79: mapChar = 0x13A9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   549
            case 0xAB7A: mapChar = 0x13AA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   550
            case 0xAB7B: mapChar = 0x13AB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   551
            case 0xAB7C: mapChar = 0x13AC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   552
            case 0xAB7D: mapChar = 0x13AD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   553
            case 0xAB7E: mapChar = 0x13AE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   554
            case 0xAB7F: mapChar = 0x13AF; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   555
            case 0xAB80: mapChar = 0x13B0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   556
            case 0xAB81: mapChar = 0x13B1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   557
            case 0xAB82: mapChar = 0x13B2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   558
            case 0xAB83: mapChar = 0x13B3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   559
            case 0xAB84: mapChar = 0x13B4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   560
            case 0xAB85: mapChar = 0x13B5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   561
            case 0xAB86: mapChar = 0x13B6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   562
            case 0xAB87: mapChar = 0x13B7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   563
            case 0xAB88: mapChar = 0x13B8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   564
            case 0xAB89: mapChar = 0x13B9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   565
            case 0xAB8A: mapChar = 0x13BA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   566
            case 0xAB8B: mapChar = 0x13BB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   567
            case 0xAB8C: mapChar = 0x13BC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   568
            case 0xAB8D: mapChar = 0x13BD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   569
            case 0xAB8E: mapChar = 0x13BE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   570
            case 0xAB8F: mapChar = 0x13BF; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   571
            case 0xAB90: mapChar = 0x13C0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   572
            case 0xAB91: mapChar = 0x13C1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   573
            case 0xAB92: mapChar = 0x13C2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   574
            case 0xAB93: mapChar = 0x13C3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   575
            case 0xAB94: mapChar = 0x13C4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   576
            case 0xAB95: mapChar = 0x13C5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   577
            case 0xAB96: mapChar = 0x13C6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   578
            case 0xAB97: mapChar = 0x13C7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   579
            case 0xAB98: mapChar = 0x13C8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   580
            case 0xAB99: mapChar = 0x13C9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   581
            case 0xAB9A: mapChar = 0x13CA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   582
            case 0xAB9B: mapChar = 0x13CB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   583
            case 0xAB9C: mapChar = 0x13CC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   584
            case 0xAB9D: mapChar = 0x13CD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   585
            case 0xAB9E: mapChar = 0x13CE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   586
            case 0xAB9F: mapChar = 0x13CF; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   587
            case 0xABA0: mapChar = 0x13D0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   588
            case 0xABA1: mapChar = 0x13D1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   589
            case 0xABA2: mapChar = 0x13D2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   590
            case 0xABA3: mapChar = 0x13D3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   591
            case 0xABA4: mapChar = 0x13D4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   592
            case 0xABA5: mapChar = 0x13D5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   593
            case 0xABA6: mapChar = 0x13D6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   594
            case 0xABA7: mapChar = 0x13D7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   595
            case 0xABA8: mapChar = 0x13D8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   596
            case 0xABA9: mapChar = 0x13D9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   597
            case 0xABAA: mapChar = 0x13DA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   598
            case 0xABAB: mapChar = 0x13DB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   599
            case 0xABAC: mapChar = 0x13DC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   600
            case 0xABAD: mapChar = 0x13DD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   601
            case 0xABAE: mapChar = 0x13DE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   602
            case 0xABAF: mapChar = 0x13DF; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   603
            case 0xABB0: mapChar = 0x13E0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   604
            case 0xABB1: mapChar = 0x13E1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   605
            case 0xABB2: mapChar = 0x13E2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   606
            case 0xABB3: mapChar = 0x13E3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   607
            case 0xABB4: mapChar = 0x13E4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   608
            case 0xABB5: mapChar = 0x13E5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   609
            case 0xABB6: mapChar = 0x13E6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   610
            case 0xABB7: mapChar = 0x13E7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   611
            case 0xABB8: mapChar = 0x13E8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   612
            case 0xABB9: mapChar = 0x13E9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   613
            case 0xABBA: mapChar = 0x13EA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   614
            case 0xABBB: mapChar = 0x13EB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   615
            case 0xABBC: mapChar = 0x13EC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   616
            case 0xABBD: mapChar = 0x13ED; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   617
            case 0xABBE: mapChar = 0x13EE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   618
            case 0xABBF: mapChar = 0x13EF; break;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
              // ch must have a 1:M case mapping, but we
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
              // can't handle it here. Return ch.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
              // since mapChar is already set, no need
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
              // to redo it here.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
              //default       : mapChar = ch;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
          }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
          else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
            int offset = val  << $$shiftCaseOffsetSign >> ($$shiftCaseOffsetSign+$$shiftCaseOffset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
            mapChar =  ch - offset;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
          }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
        return mapChar;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   632
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
    int toTitleCase(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
        int mapChar = ch;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
        int val = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
        if ((val & $$maskTitleCase) != 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
            // There is a titlecase equivalent.  Perform further checks:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
            if ((val & $$maskUpperCase) == 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
                // The character does not have an uppercase equivalent, so it must
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
                // already be uppercase; so add 1 to get the titlecase form.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
                mapChar = ch + 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
            else if ((val & $$maskLowerCase) == 0) {
52633
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   646
                // For some Georgian letters, titlecase form is 
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   647
                // same as this character.
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   648
                if(ch >= 0x10D0 && ch <= 0x10FF) {
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   649
                    mapChar = ch;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   650
                }
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   651
                else {
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   652
                    // The character does not have a lowercase equivalent, so it must
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   653
                    // already be lowercase; so subtract 1 to get the titlecase form.
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   654
                    mapChar = ch - 1;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   655
                }                
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
            // else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
            // The character has both an uppercase equivalent and a lowercase
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
            // equivalent, so it must itself be a titlecase form; return it.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
            // return ch;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
            //}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
        else if ((val & $$maskUpperCase) != 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
            // This character has no titlecase equivalent but it does have an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
            // uppercase equivalent, so use that (subtract the signed case offset).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
            mapChar = toUpperCase(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
        return mapChar;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
    int digit(int ch, int radix) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
        int value = -1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
        if (radix >= Character.MIN_RADIX && radix <= Character.MAX_RADIX) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
            int val = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   675
            int kind = val & $$maskType;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
            if (kind == Character.DECIMAL_DIGIT_NUMBER) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
                value = ch + ((val & $$maskDigitOffset) >> $$shiftDigitOffset) & $$maskDigit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   679
            else if ((val & $$maskNumericType) == $$valueJavaSupradecimal) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   680
                // Java supradecimal digit
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
                value = (ch + ((val & $$maskDigitOffset) >> $$shiftDigitOffset) & $$maskDigit) + 10;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   682
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   683
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
        return (value < radix) ? value : -1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   685
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   686
90ce3da70b43 Initial load
duke
parents:
diff changeset
   687
    int getNumericValue(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   688
        int val = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   689
        int retval = -1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   690
90ce3da70b43 Initial load
duke
parents:
diff changeset
   691
        switch (val & $$maskNumericType) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   692
        default: // cannot occur
90ce3da70b43 Initial load
duke
parents:
diff changeset
   693
        case ($$valueNotNumeric):         // not numeric
90ce3da70b43 Initial load
duke
parents:
diff changeset
   694
            retval = -1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   695
            break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   696
        case ($$valueDigit):              // simple numeric
90ce3da70b43 Initial load
duke
parents:
diff changeset
   697
            retval = ch + ((val & $$maskDigitOffset) >> $$shiftDigitOffset) & $$maskDigit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   698
            break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   699
        case ($$valueStrangeNumeric)      :       // "strange" numeric
90ce3da70b43 Initial load
duke
parents:
diff changeset
   700
            switch (ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
                case 0x0BF1: retval = 100; break;         // TAMIL NUMBER ONE HUNDRED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
                case 0x0BF2: retval = 1000; break;        // TAMIL NUMBER ONE THOUSAND
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   703
                case 0x0D71: retval = 100; break;         // MALAYALAM NUMBER ONE HUNDRED
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   704
                case 0x0D72: retval = 1000; break;        // MALAYALAM NUMBER ONE THOUSAND
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   705
                case 0x1375: retval = 40; break;          // ETHIOPIC NUMBER FORTY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   706
                case 0x1376: retval = 50; break;          // ETHIOPIC NUMBER FIFTY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   707
                case 0x1377: retval = 60; break;          // ETHIOPIC NUMBER SIXTY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   708
                case 0x1378: retval = 70; break;          // ETHIOPIC NUMBER SEVENTY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   709
                case 0x1379: retval = 80; break;          // ETHIOPIC NUMBER EIGHTY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   710
                case 0x137A: retval = 90; break;          // ETHIOPIC NUMBER NINETY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   711
                case 0x137B: retval = 100; break;         // ETHIOPIC NUMBER HUNDRED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   712
                case 0x137C: retval = 10000; break;       // ETHIOPIC NUMBER TEN THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   713
                case 0x215F: retval = 1; break;           // FRACTION NUMERATOR ONE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   714
                case 0x216C: retval = 50; break;          // ROMAN NUMERAL FIFTY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   715
                case 0x216D: retval = 100; break;         // ROMAN NUMERAL ONE HUNDRED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   716
                case 0x216E: retval = 500; break;         // ROMAN NUMERAL FIVE HUNDRED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   717
                case 0x216F: retval = 1000; break;        // ROMAN NUMERAL ONE THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   718
                case 0x217C: retval = 50; break;          // SMALL ROMAN NUMERAL FIFTY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   719
                case 0x217D: retval = 100; break;         // SMALL ROMAN NUMERAL ONE HUNDRED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   720
                case 0x217E: retval = 500; break;         // SMALL ROMAN NUMERAL FIVE HUNDRED
90ce3da70b43 Initial load
duke
parents:
diff changeset
   721
                case 0x217F: retval = 1000; break;        // SMALL ROMAN NUMERAL ONE THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   722
                case 0x2180: retval = 1000; break;        // ROMAN NUMERAL ONE THOUSAND C D
90ce3da70b43 Initial load
duke
parents:
diff changeset
   723
                case 0x2181: retval = 5000; break;        // ROMAN NUMERAL FIVE THOUSAND
90ce3da70b43 Initial load
duke
parents:
diff changeset
   724
                case 0x2182: retval = 10000; break;       // ROMAN NUMERAL TEN THOUSAND
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   725
                case 0x2186: retval = 50; break;          // ROMAN NUMERAL FIFTY EARLY FORM
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   726
                case 0x2187: retval = 50000; break;       // ROMAN NUMERAL FIFTY THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   727
                case 0x2188: retval = 100000; break;      // ROMAN NUMERAL ONE HUNDRED THOUSAND
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   728
                case 0x324B: retval = 40; break;          // CIRCLED NUMBER FORTY ON BLACK SQUARE
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   729
                case 0x324C: retval = 50; break;          // CIRCLED NUMBER FIFTY ON BLACK SQUARE
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   730
                case 0x324D: retval = 60; break;          // CIRCLED NUMBER SIXTY ON BLACK SQUARE
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   731
                case 0x324E: retval = 70; break;          // CIRCLED NUMBER SEVENTY ON BLACK SQUARE
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   732
                case 0x324F: retval = 80; break;          // CIRCLED NUMBER EIGHTY ON BLACK SQUARE
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   733
                case 0x325C: retval = 32; break;          // CIRCLED NUMBER THIRTY TWO
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   734
                case 0x325D: retval = 33; break;          // CIRCLED NUMBER THIRTY THREE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   735
                case 0x325E: retval = 34; break;          // CIRCLED NUMBER THIRTY FOUR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   736
                case 0x325F: retval = 35; break;          // CIRCLED NUMBER THIRTY FIVE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   737
                case 0x32B1: retval = 36; break;          // CIRCLED NUMBER THIRTY SIX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   738
                case 0x32B2: retval = 37; break;          // CIRCLED NUMBER THIRTY SEVEN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
                case 0x32B3: retval = 38; break;          // CIRCLED NUMBER THIRTY EIGHT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   740
                case 0x32B4: retval = 39; break;          // CIRCLED NUMBER THIRTY NINE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   741
                case 0x32B5: retval = 40; break;          // CIRCLED NUMBER FORTY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   742
                case 0x32B6: retval = 41; break;          // CIRCLED NUMBER FORTY ONE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   743
                case 0x32B7: retval = 42; break;          // CIRCLED NUMBER FORTY TWO
90ce3da70b43 Initial load
duke
parents:
diff changeset
   744
                case 0x32B8: retval = 43; break;          // CIRCLED NUMBER FORTY THREE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   745
                case 0x32B9: retval = 44; break;          // CIRCLED NUMBER FORTY FOUR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   746
                case 0x32BA: retval = 45; break;          // CIRCLED NUMBER FORTY FIVE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   747
                case 0x32BB: retval = 46; break;          // CIRCLED NUMBER FORTY SIX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   748
                case 0x32BC: retval = 47; break;          // CIRCLED NUMBER FORTY SEVEN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   749
                case 0x32BD: retval = 48; break;          // CIRCLED NUMBER FORTY EIGHT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   750
                case 0x32BE: retval = 49; break;          // CIRCLED NUMBER FORTY NINE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   751
                case 0x32BF: retval = 50; break;          // CIRCLED NUMBER FIFTY
90ce3da70b43 Initial load
duke
parents:
diff changeset
   752
                default:       retval = -2; break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   753
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   754
            break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   755
        case ($$valueJavaSupradecimal):           // Java supradecimal
90ce3da70b43 Initial load
duke
parents:
diff changeset
   756
            retval = (ch + ((val & $$maskDigitOffset) >> $$shiftDigitOffset) & $$maskDigit) + 10;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   757
            break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   758
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   759
        return retval;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   760
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   761
52979
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52633
diff changeset
   762
    boolean isDigit(int ch) {
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52633
diff changeset
   763
        int props = getProperties(ch);
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52633
diff changeset
   764
        return (props & $$maskType) == Character.DECIMAL_DIGIT_NUMBER;
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52633
diff changeset
   765
    }
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52633
diff changeset
   766
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52633
diff changeset
   767
    boolean isLowerCase(int ch) {
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52633
diff changeset
   768
        int props = getProperties(ch);
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52633
diff changeset
   769
        return (props & $$maskType) == Character.LOWERCASE_LETTER;
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52633
diff changeset
   770
    }
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52633
diff changeset
   771
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52633
diff changeset
   772
    boolean isUpperCase(int ch) {
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52633
diff changeset
   773
        int props = getProperties(ch);
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52633
diff changeset
   774
        return (props & $$maskType) == Character.UPPERCASE_LETTER;
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52633
diff changeset
   775
    }
7384e00d5860 8213754: PPC64: Add Intrinsics for isDigit/isLowerCase/isUpperCase/isWhitespace
mhorie
parents: 52633
diff changeset
   776
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   777
    boolean isWhitespace(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   778
        int props = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   779
        return ((props & $$maskIdentifierInfo) == $$valueJavaWhitespace);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   780
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   781
90ce3da70b43 Initial load
duke
parents:
diff changeset
   782
    byte getDirectionality(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   783
        int val = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   784
        byte directionality = (byte)((val & $$maskBidi) >> $$shiftBidi);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   785
        if (directionality == 0xF ) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   786
            switch(ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   787
                case 0x202A :
90ce3da70b43 Initial load
duke
parents:
diff changeset
   788
                    // This is the only char with LRE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   789
                    directionality = Character.DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   790
                    break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   791
                case 0x202B :
90ce3da70b43 Initial load
duke
parents:
diff changeset
   792
                    // This is the only char with RLE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   793
                    directionality = Character.DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   794
                    break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   795
                case 0x202C :
90ce3da70b43 Initial load
duke
parents:
diff changeset
   796
                    // This is the only char with PDF
90ce3da70b43 Initial load
duke
parents:
diff changeset
   797
                    directionality = Character.DIRECTIONALITY_POP_DIRECTIONAL_FORMAT;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   798
                    break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   799
                case 0x202D :
90ce3da70b43 Initial load
duke
parents:
diff changeset
   800
                    // This is the only char with LRO
90ce3da70b43 Initial load
duke
parents:
diff changeset
   801
                    directionality = Character.DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   802
                    break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   803
                case 0x202E :
90ce3da70b43 Initial load
duke
parents:
diff changeset
   804
                    // This is the only char with RLO
90ce3da70b43 Initial load
duke
parents:
diff changeset
   805
                    directionality = Character.DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   806
                    break;
31680
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   807
                case 0x2066 :
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   808
                    // This is the only char with LRI
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   809
                    directionality = Character.DIRECTIONALITY_LEFT_TO_RIGHT_ISOLATE;
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   810
                    break;
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   811
                case 0x2067 :
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   812
                    // This is the only char with RLI
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   813
                    directionality = Character.DIRECTIONALITY_RIGHT_TO_LEFT_ISOLATE;
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   814
                    break;
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   815
                case 0x2068 :
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   816
                    // This is the only char with FSI
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   817
                    directionality = Character.DIRECTIONALITY_FIRST_STRONG_ISOLATE;
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   818
                    break;
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   819
                case 0x2069 :
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   820
                    // This is the only char with PDI
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   821
                    directionality = Character.DIRECTIONALITY_POP_DIRECTIONAL_ISOLATE;
88c53c2293b4 8032446: Support Unicode 7.0.0 in JDK 9
peytoia
parents: 23010
diff changeset
   822
                    break;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   823
                default :
90ce3da70b43 Initial load
duke
parents:
diff changeset
   824
                    directionality = Character.DIRECTIONALITY_UNDEFINED;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   825
                    break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   826
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   827
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   828
        return directionality;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   829
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   830
90ce3da70b43 Initial load
duke
parents:
diff changeset
   831
    boolean isMirrored(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   832
        int props = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   833
        return ((props & $$maskMirrored) != 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   834
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   835
90ce3da70b43 Initial load
duke
parents:
diff changeset
   836
    int toUpperCaseEx(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   837
        int mapChar = ch;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   838
        int val = getProperties(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   839
90ce3da70b43 Initial load
duke
parents:
diff changeset
   840
        if ((val & $$maskUpperCase) != 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   841
            if ((val & $$maskCaseOffset) != $$maskCaseOffset) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   842
                int offset = val  << $$shiftCaseOffsetSign >> ($$shiftCaseOffsetSign+$$shiftCaseOffset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   843
                mapChar =  ch - offset;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   844
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   845
            else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   846
                switch(ch) {
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   847
                    case 0x017F: mapChar = 0x0053; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   848
                    case 0x023F: mapChar = 0x2C7E; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   849
                    case 0x0240: mapChar = 0x2C7F; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   850
                    case 0x0250: mapChar = 0x2C6F; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   851
                    case 0x0251: mapChar = 0x2C6D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   852
                    case 0x0252: mapChar = 0x2C70; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   853
                    case 0x025C: mapChar = 0xA7AB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   854
                    case 0x0261: mapChar = 0xA7AC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   855
                    case 0x0265: mapChar = 0xA78D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   856
                    case 0x0266: mapChar = 0xA7AA; break;
50045
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   857
                    case 0x026A: mapChar = 0xA7AE; break;
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   858
                    case 0x026B: mapChar = 0x2C62; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   859
                    case 0x026C: mapChar = 0xA7AD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   860
                    case 0x0271: mapChar = 0x2C6E; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   861
                    case 0x027D: mapChar = 0x2C64; break;
55013
8dae495a59e7 8221431: Support for Unicode 12.1
naoto
parents: 52979
diff changeset
   862
                    case 0x0282: mapChar = 0xA7C5; break;
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   863
                    case 0x0287: mapChar = 0xA7B1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   864
                    case 0x029D: mapChar = 0xA7B2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   865
                    case 0x029E: mapChar = 0xA7B0; break;
52633
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   866
                    case 0x10D0: mapChar = 0x1C90; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   867
                    case 0x10D1: mapChar = 0x1C91; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   868
                    case 0x10D2: mapChar = 0x1C92; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   869
                    case 0x10D3: mapChar = 0x1C93; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   870
                    case 0x10D4: mapChar = 0x1C94; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   871
                    case 0x10D5: mapChar = 0x1C95; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   872
                    case 0x10D6: mapChar = 0x1C96; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   873
                    case 0x10D7: mapChar = 0x1C97; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   874
                    case 0x10D8: mapChar = 0x1C98; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   875
                    case 0x10D9: mapChar = 0x1C99; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   876
                    case 0x10DA: mapChar = 0x1C9A; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   877
                    case 0x10DB: mapChar = 0x1C9B; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   878
                    case 0x10DC: mapChar = 0x1C9C; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   879
                    case 0x10DD: mapChar = 0x1C9D; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   880
                    case 0x10DE: mapChar = 0x1C9E; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   881
                    case 0x10DF: mapChar = 0x1C9F; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   882
                    case 0x10E0: mapChar = 0x1CA0; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   883
                    case 0x10E1: mapChar = 0x1CA1; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   884
                    case 0x10E2: mapChar = 0x1CA2; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   885
                    case 0x10E3: mapChar = 0x1CA3; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   886
                    case 0x10E4: mapChar = 0x1CA4; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   887
                    case 0x10E5: mapChar = 0x1CA5; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   888
                    case 0x10E6: mapChar = 0x1CA6; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   889
                    case 0x10E7: mapChar = 0x1CA7; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   890
                    case 0x10E8: mapChar = 0x1CA8; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   891
                    case 0x10E9: mapChar = 0x1CA9; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   892
                    case 0x10EA: mapChar = 0x1CAA; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   893
                    case 0x10EB: mapChar = 0x1CAB; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   894
                    case 0x10EC: mapChar = 0x1CAC; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   895
                    case 0x10ED: mapChar = 0x1CAD; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   896
                    case 0x10EE: mapChar = 0x1CAE; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   897
                    case 0x10EF: mapChar = 0x1CAF; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   898
                    case 0x10F0: mapChar = 0x1CB0; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   899
                    case 0x10F1: mapChar = 0x1CB1; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   900
                    case 0x10F2: mapChar = 0x1CB2; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   901
                    case 0x10F3: mapChar = 0x1CB3; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   902
                    case 0x10F4: mapChar = 0x1CB4; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   903
                    case 0x10F5: mapChar = 0x1CB5; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   904
                    case 0x10F6: mapChar = 0x1CB6; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   905
                    case 0x10F7: mapChar = 0x1CB7; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   906
                    case 0x10F8: mapChar = 0x1CB8; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   907
                    case 0x10F9: mapChar = 0x1CB9; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   908
                    case 0x10FA: mapChar = 0x1CBA; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   909
                    case 0x10FD: mapChar = 0x1CBD; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   910
                    case 0x10FE: mapChar = 0x1CBE; break;
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
   911
                    case 0x10FF: mapChar = 0x1CBF; break;
50045
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   912
                    case 0x1C80: mapChar = 0x0412; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   913
                    case 0x1C81: mapChar = 0x0414; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   914
                    case 0x1C82: mapChar = 0x041E; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   915
                    case 0x1C83: mapChar = 0x0421; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   916
                    case 0x1C84: mapChar = 0x0422; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   917
                    case 0x1C85: mapChar = 0x0422; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   918
                    case 0x1C86: mapChar = 0x042A; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   919
                    case 0x1C87: mapChar = 0x0462; break;
d9d55f64d136 8191410: Unicode 10
rgoel
parents: 47216
diff changeset
   920
                    case 0x1C88: mapChar = 0xA64A; break;
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   921
                    case 0x1D79: mapChar = 0xA77D; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   922
                    case 0x1D7D: mapChar = 0x2C63; break;
55013
8dae495a59e7 8221431: Support for Unicode 12.1
naoto
parents: 52979
diff changeset
   923
                    case 0x1D8E: mapChar = 0xA7C6; break;
33242
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   924
                    case 0x1FBE: mapChar = 0x0399; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   925
                    case 0x2C65: mapChar = 0x023A; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   926
                    case 0x2C66: mapChar = 0x023E; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   927
                    case 0x2D00: mapChar = 0x10A0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   928
                    case 0x2D01: mapChar = 0x10A1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   929
                    case 0x2D02: mapChar = 0x10A2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   930
                    case 0x2D03: mapChar = 0x10A3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   931
                    case 0x2D04: mapChar = 0x10A4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   932
                    case 0x2D05: mapChar = 0x10A5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   933
                    case 0x2D06: mapChar = 0x10A6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   934
                    case 0x2D07: mapChar = 0x10A7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   935
                    case 0x2D08: mapChar = 0x10A8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   936
                    case 0x2D09: mapChar = 0x10A9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   937
                    case 0x2D0A: mapChar = 0x10AA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   938
                    case 0x2D0B: mapChar = 0x10AB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   939
                    case 0x2D0C: mapChar = 0x10AC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   940
                    case 0x2D0D: mapChar = 0x10AD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   941
                    case 0x2D0E: mapChar = 0x10AE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   942
                    case 0x2D0F: mapChar = 0x10AF; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   943
                    case 0x2D10: mapChar = 0x10B0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   944
                    case 0x2D11: mapChar = 0x10B1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   945
                    case 0x2D12: mapChar = 0x10B2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   946
                    case 0x2D13: mapChar = 0x10B3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   947
                    case 0x2D14: mapChar = 0x10B4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   948
                    case 0x2D15: mapChar = 0x10B5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   949
                    case 0x2D16: mapChar = 0x10B6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   950
                    case 0x2D17: mapChar = 0x10B7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   951
                    case 0x2D18: mapChar = 0x10B8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   952
                    case 0x2D19: mapChar = 0x10B9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   953
                    case 0x2D1A: mapChar = 0x10BA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   954
                    case 0x2D1B: mapChar = 0x10BB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   955
                    case 0x2D1C: mapChar = 0x10BC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   956
                    case 0x2D1D: mapChar = 0x10BD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   957
                    case 0x2D1E: mapChar = 0x10BE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   958
                    case 0x2D1F: mapChar = 0x10BF; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   959
                    case 0x2D20: mapChar = 0x10C0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   960
                    case 0x2D21: mapChar = 0x10C1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   961
                    case 0x2D22: mapChar = 0x10C2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   962
                    case 0x2D23: mapChar = 0x10C3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   963
                    case 0x2D24: mapChar = 0x10C4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   964
                    case 0x2D25: mapChar = 0x10C5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   965
                    case 0x2D27: mapChar = 0x10C7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   966
                    case 0x2D2D: mapChar = 0x10CD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   967
                    case 0xAB53: mapChar = 0xA7B3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   968
                    case 0xAB70: mapChar = 0x13A0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   969
                    case 0xAB71: mapChar = 0x13A1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   970
                    case 0xAB72: mapChar = 0x13A2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   971
                    case 0xAB73: mapChar = 0x13A3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   972
                    case 0xAB74: mapChar = 0x13A4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   973
                    case 0xAB75: mapChar = 0x13A5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   974
                    case 0xAB76: mapChar = 0x13A6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   975
                    case 0xAB77: mapChar = 0x13A7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   976
                    case 0xAB78: mapChar = 0x13A8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   977
                    case 0xAB79: mapChar = 0x13A9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   978
                    case 0xAB7A: mapChar = 0x13AA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   979
                    case 0xAB7B: mapChar = 0x13AB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   980
                    case 0xAB7C: mapChar = 0x13AC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   981
                    case 0xAB7D: mapChar = 0x13AD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   982
                    case 0xAB7E: mapChar = 0x13AE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   983
                    case 0xAB7F: mapChar = 0x13AF; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   984
                    case 0xAB80: mapChar = 0x13B0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   985
                    case 0xAB81: mapChar = 0x13B1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   986
                    case 0xAB82: mapChar = 0x13B2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   987
                    case 0xAB83: mapChar = 0x13B3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   988
                    case 0xAB84: mapChar = 0x13B4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   989
                    case 0xAB85: mapChar = 0x13B5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   990
                    case 0xAB86: mapChar = 0x13B6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   991
                    case 0xAB87: mapChar = 0x13B7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   992
                    case 0xAB88: mapChar = 0x13B8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   993
                    case 0xAB89: mapChar = 0x13B9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   994
                    case 0xAB8A: mapChar = 0x13BA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   995
                    case 0xAB8B: mapChar = 0x13BB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   996
                    case 0xAB8C: mapChar = 0x13BC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   997
                    case 0xAB8D: mapChar = 0x13BD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   998
                    case 0xAB8E: mapChar = 0x13BE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
   999
                    case 0xAB8F: mapChar = 0x13BF; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1000
                    case 0xAB90: mapChar = 0x13C0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1001
                    case 0xAB91: mapChar = 0x13C1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1002
                    case 0xAB92: mapChar = 0x13C2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1003
                    case 0xAB93: mapChar = 0x13C3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1004
                    case 0xAB94: mapChar = 0x13C4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1005
                    case 0xAB95: mapChar = 0x13C5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1006
                    case 0xAB96: mapChar = 0x13C6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1007
                    case 0xAB97: mapChar = 0x13C7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1008
                    case 0xAB98: mapChar = 0x13C8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1009
                    case 0xAB99: mapChar = 0x13C9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1010
                    case 0xAB9A: mapChar = 0x13CA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1011
                    case 0xAB9B: mapChar = 0x13CB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1012
                    case 0xAB9C: mapChar = 0x13CC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1013
                    case 0xAB9D: mapChar = 0x13CD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1014
                    case 0xAB9E: mapChar = 0x13CE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1015
                    case 0xAB9F: mapChar = 0x13CF; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1016
                    case 0xABA0: mapChar = 0x13D0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1017
                    case 0xABA1: mapChar = 0x13D1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1018
                    case 0xABA2: mapChar = 0x13D2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1019
                    case 0xABA3: mapChar = 0x13D3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1020
                    case 0xABA4: mapChar = 0x13D4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1021
                    case 0xABA5: mapChar = 0x13D5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1022
                    case 0xABA6: mapChar = 0x13D6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1023
                    case 0xABA7: mapChar = 0x13D7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1024
                    case 0xABA8: mapChar = 0x13D8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1025
                    case 0xABA9: mapChar = 0x13D9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1026
                    case 0xABAA: mapChar = 0x13DA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1027
                    case 0xABAB: mapChar = 0x13DB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1028
                    case 0xABAC: mapChar = 0x13DC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1029
                    case 0xABAD: mapChar = 0x13DD; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1030
                    case 0xABAE: mapChar = 0x13DE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1031
                    case 0xABAF: mapChar = 0x13DF; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1032
                    case 0xABB0: mapChar = 0x13E0; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1033
                    case 0xABB1: mapChar = 0x13E1; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1034
                    case 0xABB2: mapChar = 0x13E2; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1035
                    case 0xABB3: mapChar = 0x13E3; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1036
                    case 0xABB4: mapChar = 0x13E4; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1037
                    case 0xABB5: mapChar = 0x13E5; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1038
                    case 0xABB6: mapChar = 0x13E6; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1039
                    case 0xABB7: mapChar = 0x13E7; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1040
                    case 0xABB8: mapChar = 0x13E8; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1041
                    case 0xABB9: mapChar = 0x13E9; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1042
                    case 0xABBA: mapChar = 0x13EA; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1043
                    case 0xABBB: mapChar = 0x13EB; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1044
                    case 0xABBC: mapChar = 0x13EC; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1045
                    case 0xABBD: mapChar = 0x13ED; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1046
                    case 0xABBE: mapChar = 0x13EE; break;
eafa1e90b0e1 8072600: Unicode 8 support
peytoia
parents: 31680
diff changeset
  1047
                    case 0xABBF: mapChar = 0x13EF; break;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1048
                    default       : mapChar = Character.ERROR; break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1049
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1050
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1051
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1052
        return mapChar;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1053
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1054
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1055
    char[] toUpperCaseCharArray(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1056
        char[] upperMap = {(char)ch};
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1057
        int location = findInCharMap(ch);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1058
        if (location != -1) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1059
            upperMap = charMap[location][1];
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1060
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1061
        return upperMap;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1062
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1063
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1064
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1065
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1066
     * Finds the character in the uppercase mapping table.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1067
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1068
     * @param ch the <code>char</code> to search
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1069
     * @return the index location ch in the table or -1 if not found
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1070
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1071
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1072
     int findInCharMap(int ch) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1073
        if (charMap == null || charMap.length == 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1074
            return -1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1075
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1076
        int top, bottom, current;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1077
        bottom = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1078
        top = charMap.length;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1079
        current = top/2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1080
        // invariant: top > current >= bottom && ch >= CharacterData.charMap[bottom][0]
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1081
        while (top - bottom > 1) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1082
            if (ch >= charMap[current][0][0]) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1083
                bottom = current;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1084
            } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1085
                top = current;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1086
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1087
            current = (top + bottom) / 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1088
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1089
        if (ch == charMap[current][0][0]) return current;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1090
        else return -1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1091
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1092
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1093
    static final CharacterData00 instance = new CharacterData00();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1094
    private CharacterData00() {};
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1095
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1096
    $$Tables
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1097
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1098
    static {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1099
        $$Initializers
52633
f94ac11610b3 8209923: Unicode 11.0.0.
rgoel
parents: 50045
diff changeset
  1100
    }
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1101
}