|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlr.StringUtils
Constructor Summary | |
StringUtils()
|
Method Summary | |
static String |
stripBack(String s,
char c)
General-purpose utility function for removing characters from back of string |
static String |
stripBack(String s,
String remove)
General-purpose utility function for removing characters from back of string |
static String |
stripFront(String s,
char c)
General-purpose utility function for removing characters from front of string |
static String |
stripFront(String s,
String remove)
General-purpose utility function for removing characters from front of string |
static String |
stripFrontBack(String src,
String head,
String tail)
General-purpose utility function for removing characters from the front and back of string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringUtils()
Method Detail |
public static String stripBack(String s, char c)
s
- The string to processc
- The character to remove
public static String stripBack(String s, String remove)
s
- The string to processremove
- A string containing the set of characters to remove
public static String stripFront(String s, char c)
s
- The string to processc
- The character to remove
public static String stripFront(String s, String remove)
s
- The string to processremove
- A string containing the set of characters to remove
public static String stripFrontBack(String src, String head, String tail)
head
- exact string to strip from headtail
- exact string to strip from tail
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |