Java edu.stanford.nlp.util StringUtils fields, constructors, methods, implement or subclass

Example usage for Java edu.stanford.nlp.util StringUtils fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for edu.stanford.nlp.util StringUtils.

The text is from its open source code.

Field

Method

PropertiesargsToProperties(String... args)
In this version each flag has zero or one argument.
PropertiesargsToProperties(String[] args, Map flagsToNumArgs)
Analogous to #argsToMap .
PropertiesargsToPropertiesWithResolve(String[] args)
convert args to properties with variable names resolved.
inteditDistance(String s, String t)
Computes the Levenshtein (edit) distance of the two given Strings.
booleanfind(String str, String regex)
Say whether this regular expression can be found inside this String.
booleanisNumeric(String s)
Given a String the method uses Regex to check if the String only contains numeric characters
booleanisPunct(String s)
Given a String the method uses Regex to check if the String only contains punctuation characters
Stringjoin(Iterable l, String glue)
Joins each elem in the Iterable with the given glue.
Stringjoin(Stream l, String glue)
Joins each elem in the Stream with the given glue.
Stringjoin(Object[] elements, String glue)
Joins each elem in the array with the given glue.
Stringjoin(String[] items, String glue)
Joins each element in the given array with the given glue.
Stringjoin(Iterable l)
Joins elements with a space.
Stringjoin(Object[] elements)
Joins elements with a space.
StringjoinWithOriginalWhiteSpace(List tokens)
Joins all the tokens together (more or less) according to their original whitespace.
StringjoinWords(Iterable l, String glue)
intlongestCommonSubstring(String s, String t)
Computes the longest common substring of s and t.
Stringpad(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.
Stringpad(Object obj, int totalChars)
Pads the toString value of the given Object.
StringpadLeft(String str, int totalChars)
Pads the given String to the left with spaces to ensure that it's at least totalChars long.
StringpadLeft(Object obj, int totalChars)
StringpadLeft(int i, int totalChars)
StringpadLeft(double d, int totalChars)
voidprintToFile(File file, String message, boolean append)
Prints to a file.
voidprintToFile(String filename, String message, boolean append)
Prints to a file.
Stringrepeat(String s, int times)
Stringrepeat(char ch, int times)
Listsplit(String str, String regex)
Splits the given string using the given regex as delimiters.
Stringtrim(String s, int maxWidth)
Returns s if it's at most maxWidth chars, otherwise chops right side to fit.
Stringtrim(Object obj, int maxWidth)