ICU-1423 cleanup

X-SVN-Rev: 6674
This commit is contained in:
Alan Liu 2001-11-07 19:27:09 +00:00
parent 843318a0dd
commit 6090944904
2 changed files with 14 additions and 44 deletions

View file

@ -4,8 +4,8 @@
* Corporation and others. All Rights Reserved.
**********************************************************************
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/Attic/UnicodePropertySet.java,v $
* $Date: 2001/11/07 19:24:21 $
* $Revision: 1.4 $
* $Date: 2001/11/07 19:27:09 $
* $Revision: 1.5 $
**********************************************************************
*/
package com.ibm.text;
@ -52,7 +52,7 @@ import com.ibm.util.Utility;
* '+' indicates a supported property.
*
* @author Alan Liu
* @version $RCSfile: UnicodePropertySet.java,v $ $Revision: 1.4 $ $Date: 2001/11/07 19:24:21 $
* @version $RCSfile: UnicodePropertySet.java,v $ $Revision: 1.5 $ $Date: 2001/11/07 19:27:09 $
*/
class UnicodePropertySet {
@ -395,6 +395,10 @@ class UnicodePropertySet {
// to have identical properties, such as the CJK Ideographs
// from U+4E00 to U+9FA5. INCLUSIONS contains all characters
// except the first characters of such ranges.
//
// TODO Where possible, instead of scanning over code points,
// use internal property data to initialize UnicodeSets for
// those properties. Scanning code points is slow.
UnicodeSet set = new UnicodeSet();
int startHasProperty = -1;
@ -423,25 +427,6 @@ class UnicodePropertySet {
set.add(startHasProperty, 0x10FFFF);
}
// int start = -1;
// int end = -2;
// for (int i=UnicodeSet.MIN_VALUE; i<=0xFFFF; ++i) {
// if (filter.contains(i)) {
// if ((end+1) == i) {
// end = i;
// } else {
// if (start >= 0) {
// set.add(start, end);
// }
// start = end = i;
// }
// }
// }
// if (start >= 0) {
// set.add(start, end);
// }
return set;
}

View file

@ -4,8 +4,8 @@
* Corporation and others. All Rights Reserved.
**********************************************************************
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/text/Attic/UnicodePropertySet.java,v $
* $Date: 2001/11/07 19:24:21 $
* $Revision: 1.4 $
* $Date: 2001/11/07 19:27:09 $
* $Revision: 1.5 $
**********************************************************************
*/
package com.ibm.text;
@ -52,7 +52,7 @@ import com.ibm.util.Utility;
* '+' indicates a supported property.
*
* @author Alan Liu
* @version $RCSfile: UnicodePropertySet.java,v $ $Revision: 1.4 $ $Date: 2001/11/07 19:24:21 $
* @version $RCSfile: UnicodePropertySet.java,v $ $Revision: 1.5 $ $Date: 2001/11/07 19:27:09 $
*/
class UnicodePropertySet {
@ -395,6 +395,10 @@ class UnicodePropertySet {
// to have identical properties, such as the CJK Ideographs
// from U+4E00 to U+9FA5. INCLUSIONS contains all characters
// except the first characters of such ranges.
//
// TODO Where possible, instead of scanning over code points,
// use internal property data to initialize UnicodeSets for
// those properties. Scanning code points is slow.
UnicodeSet set = new UnicodeSet();
int startHasProperty = -1;
@ -423,25 +427,6 @@ class UnicodePropertySet {
set.add(startHasProperty, 0x10FFFF);
}
// int start = -1;
// int end = -2;
// for (int i=UnicodeSet.MIN_VALUE; i<=0xFFFF; ++i) {
// if (filter.contains(i)) {
// if ((end+1) == i) {
// end = i;
// } else {
// if (start >= 0) {
// set.add(start, end);
// }
// start = end = i;
// }
// }
// }
// if (start >= 0) {
// set.add(start, end);
// }
return set;
}