public class StringUtils
extends Object
NOTE: this class may contain methods that have nothing to do with the JavaCSVReader lib. : extra methods are kept for robotics team's usage in their FRC code.
Constructor and Description |
---|
StringUtils() |
Modifier and Type | Method and Description |
---|---|
static String[] |
invertTagSplit(String input,
String delimiter)
Same as tagsplit but return the data that is OUTSIDE of the given delimiters
|
static String |
noNewLine(String input)
Convert a multi line string to a single line string
|
static String[] |
rawSplit(String input,
String delimiter)
overload of
split(String,String,boolean,int) |
static String[] |
split(String input,
String delimiter)
overload of
split(String,String,boolean,int) |
static String[] |
split(String str,
String delimiter,
boolean withEnd,
int initIndex)
Split the given string around the delimiter given.
|
static String[] |
split(String input,
String delimiter,
int start)
overload of
split(String,String,boolean,int) |
static String[] |
tagSplit(String input,
String delimiter)
Split the data found only in between the given delimiter
|
public static String[] split(String input, String delimiter)
split(String,String,boolean,int)
input
- the string to splitdelimiter
- the delimiter to use to split the stringsplit(String,String,boolean,int)
public static String[] split(String input, String delimiter, int start)
split(String,String,boolean,int)
input
- the string to splitdelimiter
- the delimiter to use to split the stringstart
- the index to start splitting the string atsplit(String,String,boolean,int)
public static String[] rawSplit(String input, String delimiter)
split(String,String,boolean,int)
input
- the string to splitdelimiter
- the delimiter to use to split the stringsplit(String,String,boolean,int)
public static String[] tagSplit(String input, String delimiter)
input
- the string to splitdelimiter
- the delimiter to use to split the stringpublic static String[] invertTagSplit(String input, String delimiter)
input
- the text to splitdelimiter
- the delimiter to usetagSplit(String,String)
public static String[] split(String str, String delimiter, boolean withEnd, int initIndex)
str
- the string to splitdelimiter
- the delimiter to use to split the stringwithEnd
- return data that is found past the last delimiter?initIndex
- the starting index to begin splitting aroundsplit(String,String,boolean,int)
public static String noNewLine(String input)
input
- string to convert