public class StringUtils extends Object
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static String stripBack(String s, char c)
s - The string to processc - The character to removepublic static String stripBack(String s, String remove)
s - The string to processremove - A string containing the set of characters to removepublic static String stripFront(String s, char c)
s - The string to processc - The character to removepublic static String stripFront(String s, String remove)
s - The string to processremove - A string containing the set of characters to removepublic static String stripFrontBack(String src, String head, String tail)
s - The string to processhead - exact string to strip from headtail - exact string to strip from tailCopyright © 2017–2019 Eclipse Foundation. All rights reserved.