public class StringUtils
extends java.lang.Object
Constructor and Description |
---|
StringUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
stripBack(java.lang.String s,
char c)
General-purpose utility function for removing
characters from back of string
|
static java.lang.String |
stripBack(java.lang.String s,
java.lang.String remove)
General-purpose utility function for removing
characters from back of string
|
static java.lang.String |
stripFront(java.lang.String s,
char c)
General-purpose utility function for removing
characters from front of string
|
static java.lang.String |
stripFront(java.lang.String s,
java.lang.String remove)
General-purpose utility function for removing
characters from front of string
|
static java.lang.String |
stripFrontBack(java.lang.String src,
java.lang.String head,
java.lang.String tail)
General-purpose utility function for removing
characters from the front and back of string
|
public static java.lang.String stripBack(java.lang.String s, char c)
s
- The string to processc
- The character to removepublic static java.lang.String stripBack(java.lang.String s, java.lang.String remove)
s
- The string to processremove
- A string containing the set of characters to removepublic static java.lang.String stripFront(java.lang.String s, char c)
s
- The string to processc
- The character to removepublic static java.lang.String stripFront(java.lang.String s, java.lang.String remove)
s
- The string to processremove
- A string containing the set of characters to removepublic static java.lang.String stripFrontBack(java.lang.String src, java.lang.String head, java.lang.String tail)
s
- The string to processhead
- exact string to strip from headtail
- exact string to strip from tail