public class StringUtil
extends java.lang.Object
| Constructor and Description |
|---|
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEmpty(java.lang.CharSequence theString)
Returns true if
CharSequence.length() is
0 or null. |
static boolean |
isWhitespace(char charCode)
Determines if the specified character is a whitespace.
|
static boolean |
isWhitespace(int charCode)
Determines if the specified character is a whitespace.
|
static java.lang.String |
toLowerCase(java.lang.CharSequence string)
Converts to lower case independent of the current locale via
Character.toLowerCase(char) which uses mapping information
from the UnicodeData file. |
static java.lang.String |
toUpperCase(java.lang.CharSequence string)
Converts to upper case independent of the current locale via
Character.toUpperCase(char) which uses mapping information
from the UnicodeData file. |
public static boolean isWhitespace(char charCode)
Character.isWhitespace(int) whitespace.Character.SPACE_SEPARATOR).Character.isWhitespace(int) does not include no-break spaces.
In OpenNLP no-break spaces are also considered as white spaces.charCode - public static boolean isWhitespace(int charCode)
Character.isWhitespace(int) whitespace.Character.SPACE_SEPARATOR).Character.isWhitespace(int) does not include no-break spaces.
In OpenNLP no-break spaces are also considered as white spaces.charCode - public static java.lang.String toLowerCase(java.lang.CharSequence string)
Character.toLowerCase(char) which uses mapping information
from the UnicodeData file.string - public static java.lang.String toUpperCase(java.lang.CharSequence string)
Character.toUpperCase(char) which uses mapping information
from the UnicodeData file.string - public static boolean isEmpty(java.lang.CharSequence theString)
CharSequence.length() is
0 or null.CharSequence.length() is 0, otherwise
falseCopyright © 2010 - 2020 Adobe. All Rights Reserved