Example usage for Java edu.stanford.nlp.util StringUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
String[] | EMPTY_STRING_ARRAY |
Properties | argsToProperties(String... args) In this version each flag has zero or one argument. |
Properties | argsToProperties(String[] args, Map Analogous to #argsToMap . |
Properties | argsToPropertiesWithResolve(String[] args) convert args to properties with variable names resolved. |
int | editDistance(String s, String t) Computes the Levenshtein (edit) distance of the two given Strings. |
boolean | find(String str, String regex) Say whether this regular expression can be found inside this String. |
boolean | isNumeric(String s) Given a String the method uses Regex to check if the String only contains numeric characters |
boolean | isPunct(String s) Given a String the method uses Regex to check if the String only contains punctuation characters |
String | join(Iterable Joins each elem in the Iterable with the given glue. |
String | join(Stream Joins each elem in the Stream with the given glue. |
String | join(Object[] elements, String glue) Joins each elem in the array with the given glue. |
String | join(String[] items, String glue) Joins each element in the given array with the given glue. |
String | join(Iterable> l) Joins elements with a space. |
String | join(Object[] elements) Joins elements with a space. |
String | joinWithOriginalWhiteSpace(List Joins all the tokens together (more or less) according to their original whitespace. |
String | joinWords(Iterable extends HasWord> l, String glue) |
int | longestCommonSubstring(String s, String t) Computes the longest common substring of s and t. |
String | pad(String str, int totalChars) Return a String of length a minimum of totalChars characters by padding the input String str at the right end with spaces. |
String | pad(Object obj, int totalChars) Pads the toString value of the given Object. |
String | padLeft(String str, int totalChars) Pads the given String to the left with spaces to ensure that it's at least totalChars long. |
String | padLeft(Object obj, int totalChars) |
String | padLeft(int i, int totalChars) |
String | padLeft(double d, int totalChars) |
void | printToFile(File file, String message, boolean append) Prints to a file. |
void | printToFile(String filename, String message, boolean append) Prints to a file. |
String | repeat(String s, int times) |
String | repeat(char ch, int times) |
List | split(String str, String regex) Splits the given string using the given regex as delimiters. |
String | trim(String s, int maxWidth) Returns s if it's at most maxWidth chars, otherwise chops right side to fit. |
String | trim(Object obj, int maxWidth) |