public class MoreString
extends java.lang.Object
Constructor and Description |
---|
MoreString() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
fileExtension(java.lang.String fileName) |
static java.lang.String |
fileToString(java.lang.String fileName)
Load the stopwords from file to the hashtable where they are indexed.
|
static int |
indexOfIgnoreCase(java.lang.String string,
java.lang.String substring) |
static int |
indexOfIgnoreCase(java.lang.String string,
java.lang.String substring,
int fromIndex) |
static void |
main(java.lang.String[] args) |
static java.lang.String |
padTo(java.lang.String string,
int length)
Pad a string with blanks on the right to make it the specified length
|
static java.lang.String |
padTo(java.lang.String string,
int length,
char ch)
Pad a string with a specific char on the right to make it the specified length
|
static java.lang.String |
padToLeft(double x,
int length)
Convert a double to a string and pad with blanks on the left
to make it the specified length
|
static java.lang.String |
padToLeft(int x,
int length)
Convert an int to a string and pad with blanks on the left
to make it the specified length
|
static java.lang.String |
padToLeft(java.lang.String string,
int length)
Pad a string with blanks on the left to make it the specified length
|
static java.lang.String |
padToLeft(java.lang.String string,
int length,
char ch)
Pad a string with a specific char on the left to make it the specified length
|
static java.lang.String |
padWithZeros(double x,
int length) |
static java.lang.String |
padWithZeros(int x,
int length) |
static java.util.ArrayList<java.lang.String> |
segment(java.lang.String string,
char ch)
Segment a string into substrings by breaking at occurences of the given
character and returning a list of segments
|
static boolean |
startsWithIgnoreCase(java.lang.String string,
java.lang.String substring) |
static boolean |
startsWithIgnoreCase(java.lang.String string,
java.lang.String substring,
int fromIndex) |
public static java.lang.String padTo(java.lang.String string, int length, char ch)
public static java.lang.String padTo(java.lang.String string, int length)
public static java.lang.String padToLeft(java.lang.String string, int length, char ch)
public static java.lang.String padToLeft(java.lang.String string, int length)
public static java.lang.String padToLeft(double x, int length)
public static java.lang.String padToLeft(int x, int length)
public static java.lang.String padWithZeros(int x, int length)
public static java.lang.String padWithZeros(double x, int length)
public static java.util.ArrayList<java.lang.String> segment(java.lang.String string, char ch)
public static int indexOfIgnoreCase(java.lang.String string, java.lang.String substring, int fromIndex)
public static int indexOfIgnoreCase(java.lang.String string, java.lang.String substring)
public static boolean startsWithIgnoreCase(java.lang.String string, java.lang.String substring, int fromIndex)
public static boolean startsWithIgnoreCase(java.lang.String string, java.lang.String substring)
public static java.lang.String fileExtension(java.lang.String fileName)
public static java.lang.String fileToString(java.lang.String fileName)
public static void main(java.lang.String[] args)