mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-09 15:27:38 +00:00
ICU-1572 narrow definition of printables
X-SVN-Rev: 7269
This commit is contained in:
parent
e26f826259
commit
047343be46
2 changed files with 10 additions and 8 deletions
|
@ -5,8 +5,8 @@
|
|||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/impl/Utility.java,v $
|
||||
* $Date: 2001/11/29 21:32:28 $
|
||||
* $Revision: 1.16 $
|
||||
* $Date: 2001/12/03 18:35:33 $
|
||||
* $Revision: 1.17 $
|
||||
*
|
||||
*****************************************************************************************
|
||||
*/
|
||||
|
@ -1105,10 +1105,11 @@ public final class Utility {
|
|||
'8','9','A','B','C','D','E','F'};
|
||||
|
||||
/**
|
||||
* Return true if the character is NOT printable ASCII.
|
||||
* Return true if the character is NOT printable ASCII. The tab,
|
||||
* newline and linefeed characters are considered unprintable.
|
||||
*/
|
||||
public static boolean isUnprintable(int c) {
|
||||
return !(c == 0x0A || (c >= 0x20 && c <= 0x7E));
|
||||
return !(c >= 0x20 && c <= 0x7E);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/util/Attic/Utility.java,v $
|
||||
* $Date: 2001/11/29 21:32:28 $
|
||||
* $Revision: 1.16 $
|
||||
* $Date: 2001/12/03 18:35:33 $
|
||||
* $Revision: 1.17 $
|
||||
*
|
||||
*****************************************************************************************
|
||||
*/
|
||||
|
@ -1105,10 +1105,11 @@ public final class Utility {
|
|||
'8','9','A','B','C','D','E','F'};
|
||||
|
||||
/**
|
||||
* Return true if the character is NOT printable ASCII.
|
||||
* Return true if the character is NOT printable ASCII. The tab,
|
||||
* newline and linefeed characters are considered unprintable.
|
||||
*/
|
||||
public static boolean isUnprintable(int c) {
|
||||
return !(c == 0x0A || (c >= 0x20 && c <= 0x7E));
|
||||
return !(c >= 0x20 && c <= 0x7E);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue