changeset in /hg/icedtea: 2007-11-07 Lillian Angel <langel at red...
Lillian Angel
langel at redhat.com
Wed Nov 7 14:19:09 PST 2007
changeset c03b4d7d5eb0 in /hg/icedtea
details: http://icedtea.classpath.org/hg/icedtea?cmd=changeset;node=c03b4d7d5eb0
description:
2007-11-07 Lillian Angel <langel at redhat.com>
* 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.
diffstat:
85 files changed, 133 insertions(+), 6203 deletions(-)
.hgignore | 81
ChangeLog | 8
Makefile.am | 1
Makefile.in | 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 -
patches/icedtea-docs.patch | 42
diffs (truncated from 6696 to 500 lines):
diff -r c3357ed52323 -r c03b4d7d5eb0 .hgignore
--- a/.hgignore Wed Nov 07 13:57:34 2007 -0500
+++ b/.hgignore Wed Nov 07 17:18:01 2007 -0500
@@ -382,3 +382,84 @@ rt/sun/rmi/rmic/RMIGenerator.java
rt/sun/rmi/rmic/RMIGenerator.java
rt/sun/rmi/rmic/RemoteClass.java
rt/sun/rmi/rmic/Util.java
+generated/java/lang/CharacterData00.java
+generated/java/lang/CharacterData01.java
+generated/java/lang/CharacterData02.java
+generated/java/lang/CharacterData0E.java
+generated/java/lang/CharacterDataLatin1.java
+generated/org/omg/PortableServer/AdapterActivator.java
+generated/org/omg/PortableServer/AdapterActivatorOperations.java
+generated/org/omg/PortableServer/Current.java
+generated/org/omg/PortableServer/CurrentOperations.java
+generated/org/omg/PortableServer/CurrentPackage/NoContext.java
+generated/org/omg/PortableServer/CurrentPackage/NoContextHelper.java
+generated/org/omg/PortableServer/ForwardRequest.java
+generated/org/omg/PortableServer/ForwardRequestHelper.java
+generated/org/omg/PortableServer/ID_ASSIGNMENT_POLICY_ID.java
+generated/org/omg/PortableServer/ID_UNIQUENESS_POLICY_ID.java
+generated/org/omg/PortableServer/IMPLICIT_ACTIVATION_POLICY_ID.java
+generated/org/omg/PortableServer/IdAssignmentPolicy.java
+generated/org/omg/PortableServer/IdAssignmentPolicyOperations.java
+generated/org/omg/PortableServer/IdAssignmentPolicyValue.java
+generated/org/omg/PortableServer/IdUniquenessPolicy.java
+generated/org/omg/PortableServer/IdUniquenessPolicyOperations.java
+generated/org/omg/PortableServer/IdUniquenessPolicyValue.java
+generated/org/omg/PortableServer/ImplicitActivationPolicy.java
+generated/org/omg/PortableServer/ImplicitActivationPolicyOperations.java
+generated/org/omg/PortableServer/ImplicitActivationPolicyValue.java
+generated/org/omg/PortableServer/LIFESPAN_POLICY_ID.java
+generated/org/omg/PortableServer/LifespanPolicy.java
+generated/org/omg/PortableServer/LifespanPolicyOperations.java
+generated/org/omg/PortableServer/LifespanPolicyValue.java
+generated/org/omg/PortableServer/POA.java
+generated/org/omg/PortableServer/POAManager.java
+generated/org/omg/PortableServer/POAManagerOperations.java
+generated/org/omg/PortableServer/POAManagerPackage/AdapterInactive.java
+generated/org/omg/PortableServer/POAManagerPackage/AdapterInactiveHelper.java
+generated/org/omg/PortableServer/POAManagerPackage/State.java
+generated/org/omg/PortableServer/POAOperations.java
+generated/org/omg/PortableServer/POAPackage/AdapterAlreadyExists.java
+generated/org/omg/PortableServer/POAPackage/AdapterAlreadyExistsHelper.java
+generated/org/omg/PortableServer/POAPackage/AdapterNonExistent.java
+generated/org/omg/PortableServer/POAPackage/AdapterNonExistentHelper.java
+generated/org/omg/PortableServer/POAPackage/InvalidPolicy.java
+generated/org/omg/PortableServer/POAPackage/InvalidPolicyHelper.java
+generated/org/omg/PortableServer/POAPackage/NoServant.java
+generated/org/omg/PortableServer/POAPackage/NoServantHelper.java
+generated/org/omg/PortableServer/POAPackage/ObjectAlreadyActive.java
+generated/org/omg/PortableServer/POAPackage/ObjectAlreadyActiveHelper.java
+generated/org/omg/PortableServer/POAPackage/ObjectNotActive.java
+generated/org/omg/PortableServer/POAPackage/ObjectNotActiveHelper.java
+generated/org/omg/PortableServer/POAPackage/ServantAlreadyActive.java
+generated/org/omg/PortableServer/POAPackage/ServantAlreadyActiveHelper.java
+generated/org/omg/PortableServer/POAPackage/ServantNotActive.java
+generated/org/omg/PortableServer/POAPackage/ServantNotActiveHelper.java
+generated/org/omg/PortableServer/POAPackage/WrongAdapter.java
+generated/org/omg/PortableServer/POAPackage/WrongAdapterHelper.java
+generated/org/omg/PortableServer/POAPackage/WrongPolicy.java
+generated/org/omg/PortableServer/POAPackage/WrongPolicyHelper.java
+generated/org/omg/PortableServer/REQUEST_PROCESSING_POLICY_ID.java
+generated/org/omg/PortableServer/RequestProcessingPolicy.java
+generated/org/omg/PortableServer/RequestProcessingPolicyOperations.java
+generated/org/omg/PortableServer/RequestProcessingPolicyValue.java
+generated/org/omg/PortableServer/SERVANT_RETENTION_POLICY_ID.java
+generated/org/omg/PortableServer/ServantActivator.java
+generated/org/omg/PortableServer/ServantActivatorHelper.java
+generated/org/omg/PortableServer/ServantActivatorOperations.java
+generated/org/omg/PortableServer/ServantActivatorPOA.java
+generated/org/omg/PortableServer/ServantLocator.java
+generated/org/omg/PortableServer/ServantLocatorHelper.java
+generated/org/omg/PortableServer/ServantLocatorOperations.java
+generated/org/omg/PortableServer/ServantLocatorPOA.java
+generated/org/omg/PortableServer/ServantManager.java
+generated/org/omg/PortableServer/ServantManagerOperations.java
+generated/org/omg/PortableServer/ServantRetentionPolicy.java
+generated/org/omg/PortableServer/ServantRetentionPolicyOperations.java
+generated/org/omg/PortableServer/ServantRetentionPolicyValue.java
+generated/org/omg/PortableServer/THREAD_POLICY_ID.java
+generated/org/omg/PortableServer/ThreadPolicy.java
+generated/org/omg/PortableServer/ThreadPolicyOperations.java
+generated/org/omg/PortableServer/ThreadPolicyValue.java
+generated/org/omg/PortableServer/_ServantActivatorStub.java
+generated/org/omg/PortableServer/_ServantLocatorStub.java
+generated/sun/awt/X11/generator/sizer.32
diff -r c3357ed52323 -r c03b4d7d5eb0 ChangeLog
--- a/ChangeLog Wed Nov 07 13:57:34 2007 -0500
+++ b/ChangeLog Wed Nov 07 17:18:01 2007 -0500
@@ -1,3 +1,11 @@ 2007-11-07 Lillian Angel <langel at redha
+2007-11-07 Lillian Angel <langel at redhat.com>
+
+ * 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>
* Makefile.am: Re-added ecj targets, added new patches to the list and
diff -r c3357ed52323 -r c03b4d7d5eb0 Makefile.am
--- a/Makefile.am Wed Nov 07 13:57:34 2007 -0500
+++ b/Makefile.am Wed Nov 07 17:18:01 2007 -0500
@@ -186,6 +186,7 @@ ICEDTEA_PATCHES = \
patches/icedtea-javafiles.patch \
patches/icedtea-bytecodeInterpreterWithChecks.patch \
patches/icedtea-corba.patch \
+ patches/icedtea-docs.patch \
$(FAST_BUILD_PATCH) \
$(DISTRIBUTION_PATCHES)
diff -r c3357ed52323 -r c03b4d7d5eb0 Makefile.in
--- a/Makefile.in Wed Nov 07 13:57:34 2007 -0500
+++ b/Makefile.in Wed Nov 07 17:18:01 2007 -0500
@@ -305,6 +305,7 @@ ICEDTEA_PATCHES = \
patches/icedtea-javafiles.patch \
patches/icedtea-bytecodeInterpreterWithChecks.patch \
patches/icedtea-corba.patch \
+ patches/icedtea-docs.patch \
$(FAST_BUILD_PATCH) \
$(DISTRIBUTION_PATCHES)
diff -r c3357ed52323 -r c03b4d7d5eb0 generated/java/lang/CharacterData00.java
--- a/generated/java/lang/CharacterData00.java Wed Nov 07 13:57:34 2007 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,1110 +0,0 @@
-// 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);
- }
-
More information about the distro-pkg-dev
mailing list