/** * Removes ( and ) from the beginning and end of a string. * * @param s String to remove from * @return String without the ( or ) */ public static String removePara(String s) { return remove(s, "(", ")"); }
/** * Removes [ and ] from the beginning and end of all tokens. */ public void removeBox() { remove("[", "]"); }
/** * Removes [ and ] from the beginning and end of a string. * * @param s String to remove from * @return String without the [ or ] */ public static String removeBox(String s) { return remove(s, "[", "]"); }
/** * Removes < and > from the beginning and end of all tokens. */ public void removeAngle() { remove("<", ">"); }
/** * Removes curly braces { and } from the beginning and end of a string. * * @param s String to remove from * @return String without the { or } */ public static String removeCurlyBrace(String s) { return remove(s, "{", "}"); }
public static String removePara(String s) { return remove (s, "(", ")"); }
/** * Removes ( and ) from the beginning and end of all tokens. */ public void removePara() { remove("(", ")"); }
/** * Removes < and > from the beginning and end of all tokens. */ public void removeCurlyBrace() { remove("{", "}"); }
public void removeAngle() { remove ("<", ">"); } }
/** * Removes < and > from the beginning and end of a string. * * @param s String to remove from * @return String without the < or > */ public static String removeAngle(String s) { return remove(s, "<", ">"); }
public static String removeBox(String s) { return remove (s, "[", "]"); }
public void removeBox() { remove ("[", "]"); }
public static String removeAngle(String s) { return remove (s, "<", ">"); }
public void removePara() { remove ("(", ")"); }
/** * This removes the lead/trailing strings from all tokens. * * @param l Leading string to remove * @param t Trailing string to remove */ public void remove(String l, String t) { for (int i = 0; i < tokens.size(); i++) { tokens.set(i, remove(tokens.get(i), l, t)); } }
public void remove (String l, String t) { for (int i = 0;i < tokens.size();i++) { tokens.setElementAt(remove ((String)tokens.elementAt(i), l, t), i); } }
public void removePara() { remove ("(", ")"); }
public void removeBox() { remove ("[", "]"); }
public static String removeBox(String s) { return remove (s, "[", "]"); }
public void remove (String l, String t) { for (int i = 0;i < tokens.size();i++) { tokens.setElementAt(remove ((String)tokens.elementAt(i), l, t), i); } }