changeset in /hg/icedtea: Added back files accidentally removed....
Lillian Angel
langel at redhat.com
Wed Jan 16 07:09:18 PST 2008
changeset 2da1600878cf in /hg/icedtea
details: http://icedtea.classpath.org/hg/icedtea?cmd=changeset;node=2da1600878cf
description:
Added back files accidentally removed. Updated ChangeLog.
diffstat:
81 files changed, 6203 insertions(+), 1 deletion(-)
ChangeLog | 1
generated/java/lang/CharacterData00.java | 1110 ++++++++++
generated/java/lang/CharacterData01.java | 453 ++++
generated/java/lang/CharacterData02.java | 357 +++
generated/java/lang/CharacterData0E.java | 361 +++
generated/java/lang/CharacterDataLatin1.java | 287 ++
generated/org/omg/PortableServer/AdapterActivator.java | 21
generated/org/omg/PortableServer/AdapterActivatorOperations.java | 36
generated/org/omg/PortableServer/Current.java | 32
generated/org/omg/PortableServer/CurrentOperations.java | 56
generated/org/omg/PortableServer/CurrentPackage/NoContext.java | 25
generated/org/omg/PortableServer/CurrentPackage/NoContextHelper.java | 72
generated/org/omg/PortableServer/ForwardRequest.java | 33
generated/org/omg/PortableServer/ForwardRequestHelper.java | 79
generated/org/omg/PortableServer/ID_ASSIGNMENT_POLICY_ID.java | 18
generated/org/omg/PortableServer/ID_UNIQUENESS_POLICY_ID.java | 18
generated/org/omg/PortableServer/IMPLICIT_ACTIVATION_POLICY_ID.java | 18
generated/org/omg/PortableServer/IdAssignmentPolicy.java | 19
generated/org/omg/PortableServer/IdAssignmentPolicyOperations.java | 24
generated/org/omg/PortableServer/IdAssignmentPolicyValue.java | 50
generated/org/omg/PortableServer/IdUniquenessPolicy.java | 19
generated/org/omg/PortableServer/IdUniquenessPolicyOperations.java | 24
generated/org/omg/PortableServer/IdUniquenessPolicyValue.java | 48
generated/org/omg/PortableServer/ImplicitActivationPolicy.java | 18
generated/org/omg/PortableServer/ImplicitActivationPolicyOperations.java | 23
generated/org/omg/PortableServer/ImplicitActivationPolicyValue.java | 50
generated/org/omg/PortableServer/LIFESPAN_POLICY_ID.java | 18
generated/org/omg/PortableServer/LifespanPolicy.java | 19
generated/org/omg/PortableServer/LifespanPolicyOperations.java | 24
generated/org/omg/PortableServer/LifespanPolicyValue.java | 49
generated/org/omg/PortableServer/POA.java | 24
generated/org/omg/PortableServer/POAManager.java | 20
generated/org/omg/PortableServer/POAManagerOperations.java | 78
generated/org/omg/PortableServer/POAManagerPackage/AdapterInactive.java | 25
generated/org/omg/PortableServer/POAManagerPackage/AdapterInactiveHelper.java | 72
generated/org/omg/PortableServer/POAManagerPackage/State.java | 48
generated/org/omg/PortableServer/POAOperations.java | 467 ++++
generated/org/omg/PortableServer/POAPackage/AdapterAlreadyExists.java | 25
generated/org/omg/PortableServer/POAPackage/AdapterAlreadyExistsHelper.java | 72
generated/org/omg/PortableServer/POAPackage/AdapterNonExistent.java | 25
generated/org/omg/PortableServer/POAPackage/AdapterNonExistentHelper.java | 72
generated/org/omg/PortableServer/POAPackage/InvalidPolicy.java | 33
generated/org/omg/PortableServer/POAPackage/InvalidPolicyHelper.java | 79
generated/org/omg/PortableServer/POAPackage/NoServant.java | 25
generated/org/omg/PortableServer/POAPackage/NoServantHelper.java | 72
generated/org/omg/PortableServer/POAPackage/ObjectAlreadyActive.java | 25
generated/org/omg/PortableServer/POAPackage/ObjectAlreadyActiveHelper.java | 72
generated/org/omg/PortableServer/POAPackage/ObjectNotActive.java | 25
generated/org/omg/PortableServer/POAPackage/ObjectNotActiveHelper.java | 72
generated/org/omg/PortableServer/POAPackage/ServantAlreadyActive.java | 25
generated/org/omg/PortableServer/POAPackage/ServantAlreadyActiveHelper.java | 72
generated/org/omg/PortableServer/POAPackage/ServantNotActive.java | 25
generated/org/omg/PortableServer/POAPackage/ServantNotActiveHelper.java | 72
generated/org/omg/PortableServer/POAPackage/WrongAdapter.java | 25
generated/org/omg/PortableServer/POAPackage/WrongAdapterHelper.java | 72
generated/org/omg/PortableServer/POAPackage/WrongPolicy.java | 25
generated/org/omg/PortableServer/POAPackage/WrongPolicyHelper.java | 72
generated/org/omg/PortableServer/REQUEST_PROCESSING_POLICY_ID.java | 18
generated/org/omg/PortableServer/RequestProcessingPolicy.java | 19
generated/org/omg/PortableServer/RequestProcessingPolicyOperations.java | 24
generated/org/omg/PortableServer/RequestProcessingPolicyValue.java | 61
generated/org/omg/PortableServer/SERVANT_RETENTION_POLICY_ID.java | 18
generated/org/omg/PortableServer/ServantActivator.java | 18
generated/org/omg/PortableServer/ServantActivatorHelper.java | 90
generated/org/omg/PortableServer/ServantActivatorOperations.java | 60
generated/org/omg/PortableServer/ServantActivatorPOA.java | 59
generated/org/omg/PortableServer/ServantLocator.java | 32
generated/org/omg/PortableServer/ServantLocatorHelper.java | 104
generated/org/omg/PortableServer/ServantLocatorOperations.java | 67
generated/org/omg/PortableServer/ServantLocatorPOA.java | 73
generated/org/omg/PortableServer/ServantManager.java | 25
generated/org/omg/PortableServer/ServantManagerOperations.java | 25
generated/org/omg/PortableServer/ServantRetentionPolicy.java | 18
generated/org/omg/PortableServer/ServantRetentionPolicyOperations.java | 23
generated/org/omg/PortableServer/ServantRetentionPolicyValue.java | 49
generated/org/omg/PortableServer/THREAD_POLICY_ID.java | 18
generated/org/omg/PortableServer/ThreadPolicy.java | 19
generated/org/omg/PortableServer/ThreadPolicyOperations.java | 24
generated/org/omg/PortableServer/ThreadPolicyValue.java | 48
generated/org/omg/PortableServer/_ServantActivatorStub.java | 112 +
generated/org/omg/PortableServer/_ServantLocatorStub.java | 119 +
diffs (truncated from 6536 to 500 lines):
diff -r 39838fc7b340 -r 2da1600878cf ChangeLog
--- a/ChangeLog Wed Nov 07 17:18:01 2007 -0500
+++ b/ChangeLog Wed Nov 07 17:29:12 2007 -0500
@@ -3,7 +3,6 @@ 2007-11-07 Lillian Angel <langel at redha
* Makefile.am: Added new patch to list.
* Makefile.in: Regenerate.
* patches/icedtea-docs.patch: New patch to build docs.
- * generated/*: Removed files that should be ignored.
* .hgignore: Updated.
2007-11-07 Lillian Angel <langel at redhat.com>
diff -r 39838fc7b340 -r 2da1600878cf generated/java/lang/CharacterData00.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/generated/java/lang/CharacterData00.java Wed Nov 07 17:29:12 2007 -0500
@@ -0,0 +1,1110 @@
+// This file was generated AUTOMATICALLY from a template file Wed Nov 07 13:33:45 EST 2007
+/*
+ * Copyright 2003-2006 Sun Microsystems, Inc. All Rights Reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ * CA 95054 USA or visit www.sun.com if you need additional information or
+ * have any questions.
+ */
+
+package java.lang;
+
+/**
+ * The CharacterData00 class encapsulates the large tables once found in
+ * java.lang.Character
+*/
+
+class CharacterData00 extends CharacterData {
+ /* The character properties are currently encoded into 32 bits in the following manner:
+ 1 bit mirrored property
+ 4 bits directionality property
+ 9 bits signed offset used for converting case
+ 1 bit if 1, adding the signed offset converts the character to lowercase
+ 1 bit if 1, subtracting the signed offset converts the character to uppercase
+ 1 bit if 1, this character has a titlecase equivalent (possibly itself)
+ 3 bits 0 may not be part of an identifier
+ 1 ignorable control; may continue a Unicode identifier or Java identifier
+ 2 may continue a Java identifier but not a Unicode identifier (unused)
+ 3 may continue a Unicode identifier or Java identifier
+ 4 is a Java whitespace character
+ 5 may start or continue a Java identifier;
+ may continue but not start a Unicode identifier (underscores)
+ 6 may start or continue a Java identifier but not a Unicode identifier ($)
+ 7 may start or continue a Unicode identifier or Java identifier
+ Thus:
+ 5, 6, 7 may start a Java identifier
+ 1, 2, 3, 5, 6, 7 may continue a Java identifier
+ 7 may start a Unicode identifier
+ 1, 3, 5, 7 may continue a Unicode identifier
+ 1 is ignorable within an identifier
+ 4 is Java whitespace
+ 2 bits 0 this character has no numeric property
+ 1 adding the digit offset to the character code and then
+ masking with 0x1F will produce the desired numeric value
+ 2 this character has a "strange" numeric value
+ 3 a Java supradecimal digit: adding the digit offset to the
+ character code, then masking with 0x1F, then adding 10
+ will produce the desired numeric value
+ 5 bits digit offset
+ 5 bits character type
+
+ The encoding of character properties is subject to change at any time.
+ */
+
+ int getProperties(int ch) {
+ char offset = (char)ch;
+ int props = A[Y[X[offset>>5]|((offset>>1)&0xF)]|(offset&0x1)];
+ return props;
+ }
+
+ int getType(int ch) {
+ int props = getProperties(ch);
+ return (props & 0x1F);
+ }
+
+ boolean isJavaIdentifierStart(int ch) {
+ int props = getProperties(ch);
+ return ((props & 0x00007000) >= 0x00005000);
+ }
+
+ boolean isJavaIdentifierPart(int ch) {
+ int props = getProperties(ch);
+ return ((props & 0x00003000) != 0);
+ }
+
+ boolean isUnicodeIdentifierStart(int ch) {
+ int props = getProperties(ch);
+ return ((props & 0x00007000) == 0x00007000);
+ }
+
+ boolean isUnicodeIdentifierPart(int ch) {
+ int props = getProperties(ch);
+ return ((props & 0x00001000) != 0);
+ }
+
+ boolean isIdentifierIgnorable(int ch) {
+ int props = getProperties(ch);
+ return ((props & 0x00007000) == 0x00001000);
+ }
+
+ int toLowerCase(int ch) {
+ int mapChar = ch;
+ int val = getProperties(ch);
+
+ if ((val & 0x00020000) != 0) {
+ if ((val & 0x07FC0000) == 0x07FC0000) {
+ switch(ch) {
+ // map the offset overflow chars
+ case 0x0130 : mapChar = 0x0069; break;
+ case 0x2126 : mapChar = 0x03C9; break;
+ case 0x212A : mapChar = 0x006B; break;
+ case 0x212B : mapChar = 0x00E5; break;
+ // map the titlecase chars with both a 1:M uppercase map
+ // and a lowercase map
+ case 0x1F88 : mapChar = 0x1F80; break;
+ case 0x1F89 : mapChar = 0x1F81; break;
+ case 0x1F8A : mapChar = 0x1F82; break;
+ case 0x1F8B : mapChar = 0x1F83; break;
+ case 0x1F8C : mapChar = 0x1F84; break;
+ case 0x1F8D : mapChar = 0x1F85; break;
+ case 0x1F8E : mapChar = 0x1F86; break;
+ case 0x1F8F : mapChar = 0x1F87; break;
+ case 0x1F98 : mapChar = 0x1F90; break;
+ case 0x1F99 : mapChar = 0x1F91; break;
+ case 0x1F9A : mapChar = 0x1F92; break;
+ case 0x1F9B : mapChar = 0x1F93; break;
+ case 0x1F9C : mapChar = 0x1F94; break;
+ case 0x1F9D : mapChar = 0x1F95; break;
+ case 0x1F9E : mapChar = 0x1F96; break;
+ case 0x1F9F : mapChar = 0x1F97; break;
+ case 0x1FA8 : mapChar = 0x1FA0; break;
+ case 0x1FA9 : mapChar = 0x1FA1; break;
+ case 0x1FAA : mapChar = 0x1FA2; break;
+ case 0x1FAB : mapChar = 0x1FA3; break;
+ case 0x1FAC : mapChar = 0x1FA4; break;
+ case 0x1FAD : mapChar = 0x1FA5; break;
+ case 0x1FAE : mapChar = 0x1FA6; break;
+ case 0x1FAF : mapChar = 0x1FA7; break;
+ case 0x1FBC : mapChar = 0x1FB3; break;
+ case 0x1FCC : mapChar = 0x1FC3; break;
+ case 0x1FFC : mapChar = 0x1FF3; break;
+ // default mapChar is already set, so no
+ // need to redo it here.
+ // default : mapChar = ch;
+ }
+ }
+ else {
+ int offset = val << 5 >> (5+18);
+ mapChar = ch + offset;
+ }
+ }
+ return mapChar;
+ }
+
+ int toUpperCase(int ch) {
+ int mapChar = ch;
+ int val = getProperties(ch);
+
+ if ((val & 0x00010000) != 0) {
+ if ((val & 0x07FC0000) == 0x07FC0000) {
+ switch(ch) {
+ // map chars with overflow offsets
+ case 0x00B5 : mapChar = 0x039C; break;
+ case 0x017F : mapChar = 0x0053; break;
+ case 0x1FBE : mapChar = 0x0399; break;
+ // map char that have both a 1:1 and 1:M map
+ case 0x1F80 : mapChar = 0x1F88; break;
+ case 0x1F81 : mapChar = 0x1F89; break;
+ case 0x1F82 : mapChar = 0x1F8A; break;
+ case 0x1F83 : mapChar = 0x1F8B; break;
+ case 0x1F84 : mapChar = 0x1F8C; break;
+ case 0x1F85 : mapChar = 0x1F8D; break;
+ case 0x1F86 : mapChar = 0x1F8E; break;
+ case 0x1F87 : mapChar = 0x1F8F; break;
+ case 0x1F90 : mapChar = 0x1F98; break;
+ case 0x1F91 : mapChar = 0x1F99; break;
+ case 0x1F92 : mapChar = 0x1F9A; break;
+ case 0x1F93 : mapChar = 0x1F9B; break;
+ case 0x1F94 : mapChar = 0x1F9C; break;
+ case 0x1F95 : mapChar = 0x1F9D; break;
+ case 0x1F96 : mapChar = 0x1F9E; break;
+ case 0x1F97 : mapChar = 0x1F9F; break;
+ case 0x1FA0 : mapChar = 0x1FA8; break;
+ case 0x1FA1 : mapChar = 0x1FA9; break;
+ case 0x1FA2 : mapChar = 0x1FAA; break;
+ case 0x1FA3 : mapChar = 0x1FAB; break;
+ case 0x1FA4 : mapChar = 0x1FAC; break;
+ case 0x1FA5 : mapChar = 0x1FAD; break;
+ case 0x1FA6 : mapChar = 0x1FAE; break;
+ case 0x1FA7 : mapChar = 0x1FAF; break;
+ case 0x1FB3 : mapChar = 0x1FBC; break;
+ case 0x1FC3 : mapChar = 0x1FCC; break;
+ case 0x1FF3 : mapChar = 0x1FFC; break;
+ // ch must have a 1:M case mapping, but we
+ // can't handle it here. Return ch.
+ // since mapChar is already set, no need
+ // to redo it here.
+ //default : mapChar = ch;
+ }
+ }
+ else {
+ int offset = val << 5 >> (5+18);
+ mapChar = ch - offset;
+ }
+ }
+ return mapChar;
+ }
+
+ int toTitleCase(int ch) {
+ int mapChar = ch;
+ int val = getProperties(ch);
+
+ if ((val & 0x00008000) != 0) {
+ // There is a titlecase equivalent. Perform further checks:
+ if ((val & 0x00010000) == 0) {
+ // The character does not have an uppercase equivalent, so it must
+ // already be uppercase; so add 1 to get the titlecase form.
+ mapChar = ch + 1;
+ }
+ else if ((val & 0x00020000) == 0) {
+ // The character does not have a lowercase equivalent, so it must
+ // already be lowercase; so subtract 1 to get the titlecase form.
+ mapChar = ch - 1;
+ }
+ // else {
+ // The character has both an uppercase equivalent and a lowercase
+ // equivalent, so it must itself be a titlecase form; return it.
+ // return ch;
+ //}
+ }
+ else if ((val & 0x00010000) != 0) {
+ // This character has no titlecase equivalent but it does have an
+ // uppercase equivalent, so use that (subtract the signed case offset).
+ mapChar = toUpperCase(ch);
+ }
+ return mapChar;
+ }
+
+ int digit(int ch, int radix) {
+ int value = -1;
+ if (radix >= Character.MIN_RADIX && radix <= Character.MAX_RADIX) {
+ int val = getProperties(ch);
+ int kind = val & 0x1F;
+ if (kind == Character.DECIMAL_DIGIT_NUMBER) {
+ value = ch + ((val & 0x3E0) >> 5) & 0x1F;
+ }
+ else if ((val & 0xC00) == 0x00000C00) {
+ // Java supradecimal digit
+ value = (ch + ((val & 0x3E0) >> 5) & 0x1F) + 10;
+ }
+ }
+ return (value < radix) ? value : -1;
+ }
+
+ int getNumericValue(int ch) {
+ int val = getProperties(ch);
+ int retval = -1;
+
+ switch (val & 0xC00) {
+ default: // cannot occur
+ case (0x00000000): // not numeric
+ retval = -1;
+ break;
+ case (0x00000400): // simple numeric
+ retval = ch + ((val & 0x3E0) >> 5) & 0x1F;
+ break;
+ case (0x00000800) : // "strange" numeric
+ switch (ch) {
+ case 0x0BF1: retval = 100; break; // TAMIL NUMBER ONE HUNDRED
+ case 0x0BF2: retval = 1000; break; // TAMIL NUMBER ONE THOUSAND
+ case 0x1375: retval = 40; break; // ETHIOPIC NUMBER FORTY
+ case 0x1376: retval = 50; break; // ETHIOPIC NUMBER FIFTY
+ case 0x1377: retval = 60; break; // ETHIOPIC NUMBER SIXTY
+ case 0x1378: retval = 70; break; // ETHIOPIC NUMBER SEVENTY
+ case 0x1379: retval = 80; break; // ETHIOPIC NUMBER EIGHTY
+ case 0x137A: retval = 90; break; // ETHIOPIC NUMBER NINETY
+ case 0x137B: retval = 100; break; // ETHIOPIC NUMBER HUNDRED
+ case 0x137C: retval = 10000; break; // ETHIOPIC NUMBER TEN THOUSAND
+ case 0x215F: retval = 1; break; // FRACTION NUMERATOR ONE
+ case 0x216C: retval = 50; break; // ROMAN NUMERAL FIFTY
+ case 0x216D: retval = 100; break; // ROMAN NUMERAL ONE HUNDRED
+ case 0x216E: retval = 500; break; // ROMAN NUMERAL FIVE HUNDRED
+ case 0x216F: retval = 1000; break; // ROMAN NUMERAL ONE THOUSAND
+ case 0x217C: retval = 50; break; // SMALL ROMAN NUMERAL FIFTY
+ case 0x217D: retval = 100; break; // SMALL ROMAN NUMERAL ONE HUNDRED
+ case 0x217E: retval = 500; break; // SMALL ROMAN NUMERAL FIVE HUNDRED
+ case 0x217F: retval = 1000; break; // SMALL ROMAN NUMERAL ONE THOUSAND
+ case 0x2180: retval = 1000; break; // ROMAN NUMERAL ONE THOUSAND C D
+ case 0x2181: retval = 5000; break; // ROMAN NUMERAL FIVE THOUSAND
+ case 0x2182: retval = 10000; break; // ROMAN NUMERAL TEN THOUSAND
+
+ case 0x325C: retval = 32; break;
+
+ case 0x325D: retval = 33; break; // CIRCLED NUMBER THIRTY THREE
+ case 0x325E: retval = 34; break; // CIRCLED NUMBER THIRTY FOUR
+ case 0x325F: retval = 35; break; // CIRCLED NUMBER THIRTY FIVE
+ case 0x32B1: retval = 36; break; // CIRCLED NUMBER THIRTY SIX
+ case 0x32B2: retval = 37; break; // CIRCLED NUMBER THIRTY SEVEN
+ case 0x32B3: retval = 38; break; // CIRCLED NUMBER THIRTY EIGHT
+ case 0x32B4: retval = 39; break; // CIRCLED NUMBER THIRTY NINE
+ case 0x32B5: retval = 40; break; // CIRCLED NUMBER FORTY
+ case 0x32B6: retval = 41; break; // CIRCLED NUMBER FORTY ONE
+ case 0x32B7: retval = 42; break; // CIRCLED NUMBER FORTY TWO
+ case 0x32B8: retval = 43; break; // CIRCLED NUMBER FORTY THREE
+ case 0x32B9: retval = 44; break; // CIRCLED NUMBER FORTY FOUR
+ case 0x32BA: retval = 45; break; // CIRCLED NUMBER FORTY FIVE
+ case 0x32BB: retval = 46; break; // CIRCLED NUMBER FORTY SIX
+ case 0x32BC: retval = 47; break; // CIRCLED NUMBER FORTY SEVEN
+ case 0x32BD: retval = 48; break; // CIRCLED NUMBER FORTY EIGHT
+ case 0x32BE: retval = 49; break; // CIRCLED NUMBER FORTY NINE
+ case 0x32BF: retval = 50; break; // CIRCLED NUMBER FIFTY
+
+ default: retval = -2; break;
+ }
+ break;
+ case (0x00000C00): // Java supradecimal
+ retval = (ch + ((val & 0x3E0) >> 5) & 0x1F) + 10;
+ break;
+ }
+ return retval;
+ }
+
+ boolean isWhitespace(int ch) {
+ int props = getProperties(ch);
+ return ((props & 0x00007000) == 0x00004000);
+ }
+
+ byte getDirectionality(int ch) {
+ int val = getProperties(ch);
+ byte directionality = (byte)((val & 0x78000000) >> 27);
+ if (directionality == 0xF ) {
+ switch(ch) {
+ case 0x202A :
+ // This is the only char with LRE
+ directionality = Character.DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING;
+ break;
+ case 0x202B :
+ // This is the only char with RLE
+ directionality = Character.DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING;
+ break;
+ case 0x202C :
+ // This is the only char with PDF
+ directionality = Character.DIRECTIONALITY_POP_DIRECTIONAL_FORMAT;
+ break;
+ case 0x202D :
+ // This is the only char with LRO
+ directionality = Character.DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE;
+ break;
+ case 0x202E :
+ // This is the only char with RLO
+ directionality = Character.DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE;
+ break;
+ default :
+ directionality = Character.DIRECTIONALITY_UNDEFINED;
+ break;
+ }
+ }
+ return directionality;
+ }
+
+ boolean isMirrored(int ch) {
+ int props = getProperties(ch);
+ return ((props & 0x80000000) != 0);
+ }
+
+ int toUpperCaseEx(int ch) {
+ int mapChar = ch;
+ int val = getProperties(ch);
+
+ if ((val & 0x00010000) != 0) {
+ if ((val & 0x07FC0000) != 0x07FC0000) {
+ int offset = val << 5 >> (5+18);
+ mapChar = ch - offset;
+ }
+ else {
+ switch(ch) {
+ // map overflow characters
+ case 0x00B5 : mapChar = 0x039C; break;
+ case 0x017F : mapChar = 0x0053; break;
+ case 0x1FBE : mapChar = 0x0399; break;
+ default : mapChar = Character.ERROR; break;
+ }
+ }
+ }
+ return mapChar;
+ }
+
+ char[] toUpperCaseCharArray(int ch) {
+ char[] upperMap = {(char)ch};
+ int location = findInCharMap(ch);
+ if (location != -1) {
+ upperMap = charMap[location][1];
+ }
+ return upperMap;
+ }
+
+
+ /**
+ * Finds the character in the uppercase mapping table.
+ *
+ * @param ch the <code>char</code> to search
+ * @return the index location ch in the table or -1 if not found
+ * @since 1.4
+ */
+ int findInCharMap(int ch) {
+ if (charMap == null || charMap.length == 0) {
+ return -1;
+ }
+ int top, bottom, current;
+ bottom = 0;
+ top = charMap.length;
+ current = top/2;
+ // invariant: top > current >= bottom && ch >= CharacterData.charMap[bottom][0]
+ while (top - bottom > 1) {
+ if (ch >= charMap[current][0][0]) {
+ bottom = current;
+ } else {
+ top = current;
+ }
+ current = (top + bottom) / 2;
+ }
+ if (ch == charMap[current][0][0]) return current;
+ else return -1;
+ }
+
+ static final CharacterData00 instance = new CharacterData00();
+ private CharacterData00() {};
+
+ // The following tables and code generated using:
+ // java GenerateCharacter -plane 0 -template ../../tools/GenerateCharacter/CharacterData00.java.template -spec ../../tools/UnicodeData/UnicodeData.txt -specialcasing ../../tools/UnicodeData/SpecialCasing.txt -o /notnfs/langel/icedtea-ecj/generated/java/lang/CharacterData00.java -string -usecharforbyte 11 4 1
+ static final char[][][] charMap;
+// The X table has 2048 entries for a total of 4096 bytes.
+
+ static final char X[] = (
+ "\000\020\040\060\100\120\140\160\200\220\240\260\300\320\340\360\200\u0100"+
+ "\u0110\u0120\u0130\u0140\u0150\u0160\u0170\u0170\u0180\u0190\u01A0\u01B0\u01C0"+
+ "\u01D0\u01E0\u01F0\u0200\200\u0210\200\u0220\u0230\u0240\u0250\u0260\u0270"+
+ "\u0280\u0290\u02A0\u02B0\u02C0\u02D0\u02E0\u02F0\u0300\u0300\u0310\u0320\u0330"+
+ "\u0340\u0350\u0360\u0300\u0370\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360"+
+ "\u0360\u0360\u0380\u0390\u03A0\u03B0\u03C0\u03D0\u03E0\u03F0\u0400\u0410\u0420"+
+ "\u0430\u0440\u0450\u0460\u0470\u03C0\u0480\u0490\u04A0\u04B0\u04C0\u04D0\u04E0"+
+ "\u04F0\u0500\u0510\u0520\u0530\u0540\u0550\u0520\u0530\u0560\u0570\u0520\u0580"+
+ "\u0590\u05A0\u05B0\u05C0\u05D0\u05E0\u0360\u05F0\u0600\u0610\u0360\u0620\u0630"+
+ "\u0640\u0650\u0660\u0670\u0680\u0360\u0690\u06A0\u06B0\u0360\u0360\u06C0\u06D0"+
+ "\u06E0\u0690\u0690\u06F0\u0690\u0690\u0700\u0690\u0710\u0720\u0690\u0730\u0690"+
+ "\u0740\u0750\u0760\u0770\u0750\u0690\u0780\u0790\u0360\u0690\u0690\u07A0\u05C0"+
+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+
+ "\u0690\u0690\u0690\u0690\u0690\u07B0\u07C0\u0690\u0690\u07D0\u07E0\u07F0\u0800"+
+ "\u0810\u0690\u0820\u0830\u0840\u0850\u0690\u0860\u0870\u0690\u0880\u0360\u0360"+
+ "\u0890\u08A0\u08B0\u08C0\u0360\u0360\u0360\u08D0\u0360\u0360\u0360\u0360\u0360"+
+ "\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360"+
+ "\u0360\u0360\u0360\u0360\u0360\u0360\u08E0\u08F0\u0900\u0910\u0360\u0360\u0360"+
+ "\u0360\200\200\200\200\u0920\200\200\u0930\u0940\u0950\u0960\u0970\u0980\u0990"+
+ "\u09A0\u09B0\u09C0\u09D0\u09E0\u09F0\u0A00\u0A10\u0A20\u0A30\u0A40\u0A50\u0A60"+
+ "\u0A70\u0A80\u0A90\u0AA0\u0AB0\u0AC0\u0AD0\u0AE0\u0AF0\u0B00\u0B10\u0B20\u0B30"+
+ "\u0B40\u0B50\u0B60\u0B70\u0B80\u0B90\u0BA0\u0360\u08D0\u0BB0\u0BC0\u0BD0\u0BE0"+
+ "\u0BF0\u0C00\u0C10\u08D0\u08D0\u08D0\u08D0\u08D0\u0C20\u0C30\u0C40\u0C50\u08D0"+
+ "\u08D0\u0C60\u0C70\u0C80\u0360\u0360\u0C90\u0CA0\u0CB0\u0CC0\u0CD0\u0CE0\u0CF0"+
+ "\u0D00\u08D0\u08D0\u08D0\u08D0\u08D0\u08D0\u08D0\u08D0\u0D10\u0D10\u0D10\u0D10"+
+ "\u0D20\u0D30\u0D40\u0D50\u0D60\u0D70\u0D80\u0D90\u0DA0\u0DB0\u0DC0\u0DD0\u0DE0"+
+ "\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360"+
+ "\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360\u0360"+
+ "\u0360\u0DF0\u08D0\u08D0\u0E00\u08D0\u08D0\u08D0\u08D0\u08D0\u08D0\u0E10\u0E20"+
+ "\u0E30\u0E40\u05C0\u0690\u0E50\u0E60\u0690\u0E70\u0E80\u0E90\u0690\u0690\u0EA0"+
+ "\u0870\u0360\u0EB0\u0EC0\u0ED0\u0EE0\u0EF0\u0ED0\u0F00\u0F10\u0F20\u0B60\u0B60"+
+ "\u0B60\u0F30\u0B60\u0B60\u0F40\u0F50\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+
+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+
+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+
+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+
+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+
+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+
+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+
+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+
+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+
+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+
+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+
+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+
+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+
+ "\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690\u0690"+
More information about the distro-pkg-dev
mailing list