public class ParserUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isDate(java.lang.CharSequence text)
Returns if the given string looks like a date to us.
|
static boolean |
isNumber(java.lang.CharSequence text)
Returns whether or not the given text looks like a number.
|
static java.lang.String |
trimLast(java.lang.String text)
Removes the last character from the given text
|
static java.lang.String |
unescapePhraseText(java.lang.CharSequence phrase)
Extracts phrase text by removing quotes from either end, and interpreting escape sequences.
|
public static java.lang.String trimLast(java.lang.String text)
public static java.lang.String unescapePhraseText(java.lang.CharSequence phrase)
public static boolean isNumber(java.lang.CharSequence text)
text
- the text tested if it looks like a numberpublic static boolean isDate(java.lang.CharSequence text)
text
- text checked if it looks like a date