Package antlr
Class StringUtils
java.lang.Object
antlr.StringUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
General-purpose utility function for removing characters from back of stringstatic String
General-purpose utility function for removing characters from back of stringstatic String
stripFront
(String s, char c) General-purpose utility function for removing characters from front of stringstatic String
stripFront
(String s, String remove) General-purpose utility function for removing characters from front of stringstatic String
stripFrontBack
(String src, String head, String tail) General-purpose utility function for removing characters from the front and back of string
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
stripBack
General-purpose utility function for removing characters from back of string- Parameters:
s
- The string to processc
- The character to remove- Returns:
- The resulting string
-
stripBack
General-purpose utility function for removing characters from back of string- Parameters:
s
- The string to processremove
- A string containing the set of characters to remove- Returns:
- The resulting string
-
stripFront
General-purpose utility function for removing characters from front of string- Parameters:
s
- The string to processc
- The character to remove- Returns:
- The resulting string
-
stripFront
General-purpose utility function for removing characters from front of string- Parameters:
s
- The string to processremove
- A string containing the set of characters to remove- Returns:
- The resulting string
-
stripFrontBack
General-purpose utility function for removing characters from the front and back of string- Parameters:
head
- exact string to strip from headtail
- exact string to strip from tails
- The string to process- Returns:
- The resulting string
-