|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object opennlp.tools.util.StringUtil
public class StringUtil
Constructor Summary | |
---|---|
StringUtil()
|
Method Summary | |
---|---|
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 String |
toLowerCase(CharSequence string)
Converts to lower case independent of the current locale via Character.toLowerCase(char) which uses mapping information
from the UnicodeData file. |
static String |
toUpperCase(CharSequence string)
Converts to upper case independent of the current locale via Character.toUpperCase(char) which uses mapping information
from the UnicodeData file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringUtil()
Method Detail |
---|
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 String toLowerCase(CharSequence string)
Character.toLowerCase(char)
which uses mapping information
from the UnicodeData file.
string
-
public static String toUpperCase(CharSequence string)
Character.toUpperCase(char)
which uses mapping information
from the UnicodeData file.
string
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |