mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-1575 fix bugs
X-SVN-Rev: 7277
This commit is contained in:
parent
3ddc3827c9
commit
cc4e72b886
2 changed files with 14 additions and 14 deletions
|
@ -5,8 +5,8 @@
|
|||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/UnicodeSet.java,v $
|
||||
* $Date: 2001/12/03 02:10:24 $
|
||||
* $Revision: 1.51 $
|
||||
* $Date: 2001/12/03 20:26:24 $
|
||||
* $Revision: 1.52 $
|
||||
*
|
||||
*****************************************************************************************
|
||||
*/
|
||||
|
@ -204,7 +204,7 @@ import com.ibm.util.Utility;
|
|||
* Unicode property
|
||||
* </table>
|
||||
* @author Alan Liu
|
||||
* @version $RCSfile: UnicodeSet.java,v $ $Revision: 1.51 $ $Date: 2001/12/03 02:10:24 $
|
||||
* @version $RCSfile: UnicodeSet.java,v $ $Revision: 1.52 $ $Date: 2001/12/03 20:26:24 $
|
||||
*/
|
||||
public class UnicodeSet extends UnicodeFilter {
|
||||
|
||||
|
@ -908,11 +908,11 @@ public class UnicodeSet extends UnicodeFilter {
|
|||
|
||||
// TODO: Make this public
|
||||
/**
|
||||
* Some character in s is in the set.
|
||||
* Return TRUE if one or more characters in s is in this set.
|
||||
*/
|
||||
boolean containsSome(String s) {
|
||||
int cp;
|
||||
for (int i = 0; i < s.length(); i += UTF16.getCharCount(i)) {
|
||||
for (int i = 0; i < s.length(); i += UTF16.getCharCount(cp)) {
|
||||
cp = UTF16.charAt(s, i);
|
||||
if (contains(cp)) return true;
|
||||
}
|
||||
|
@ -921,11 +921,11 @@ public class UnicodeSet extends UnicodeFilter {
|
|||
|
||||
// TODO: Make this public
|
||||
/**
|
||||
* Every character in s is in the set.
|
||||
* Return TRUE if every character in s is in this set.
|
||||
*/
|
||||
boolean containsAll(String s) {
|
||||
int cp;
|
||||
for (int i = 0; i < s.length(); i += UTF16.getCharCount(i)) {
|
||||
for (int i = 0; i < s.length(); i += UTF16.getCharCount(cp)) {
|
||||
cp = UTF16.charAt(s, i);
|
||||
if (!contains(cp)) return false;
|
||||
}
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/text/Attic/UnicodeSet.java,v $
|
||||
* $Date: 2001/12/03 02:10:24 $
|
||||
* $Revision: 1.51 $
|
||||
* $Date: 2001/12/03 20:26:24 $
|
||||
* $Revision: 1.52 $
|
||||
*
|
||||
*****************************************************************************************
|
||||
*/
|
||||
|
@ -204,7 +204,7 @@ import com.ibm.util.Utility;
|
|||
* Unicode property
|
||||
* </table>
|
||||
* @author Alan Liu
|
||||
* @version $RCSfile: UnicodeSet.java,v $ $Revision: 1.51 $ $Date: 2001/12/03 02:10:24 $
|
||||
* @version $RCSfile: UnicodeSet.java,v $ $Revision: 1.52 $ $Date: 2001/12/03 20:26:24 $
|
||||
*/
|
||||
public class UnicodeSet extends UnicodeFilter {
|
||||
|
||||
|
@ -908,11 +908,11 @@ public class UnicodeSet extends UnicodeFilter {
|
|||
|
||||
// TODO: Make this public
|
||||
/**
|
||||
* Some character in s is in the set.
|
||||
* Return TRUE if one or more characters in s is in this set.
|
||||
*/
|
||||
boolean containsSome(String s) {
|
||||
int cp;
|
||||
for (int i = 0; i < s.length(); i += UTF16.getCharCount(i)) {
|
||||
for (int i = 0; i < s.length(); i += UTF16.getCharCount(cp)) {
|
||||
cp = UTF16.charAt(s, i);
|
||||
if (contains(cp)) return true;
|
||||
}
|
||||
|
@ -921,11 +921,11 @@ public class UnicodeSet extends UnicodeFilter {
|
|||
|
||||
// TODO: Make this public
|
||||
/**
|
||||
* Every character in s is in the set.
|
||||
* Return TRUE if every character in s is in this set.
|
||||
*/
|
||||
boolean containsAll(String s) {
|
||||
int cp;
|
||||
for (int i = 0; i < s.length(); i += UTF16.getCharCount(i)) {
|
||||
for (int i = 0; i < s.length(); i += UTF16.getCharCount(cp)) {
|
||||
cp = UTF16.charAt(s, i);
|
||||
if (!contains(cp)) return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue