List of utility methods to do String Remove
String | remove(String str, char remove) remove if (isEmpty(str) || str.indexOf(remove) == -1) { return str; char[] chars = str.toCharArray(); int pos = 0; for (int i = 0; i < chars.length; i++) { if (chars[i] != remove) { chars[pos++] = chars[i]; ... |
String | removeCharacters(String x, char... cs) remove Characters for (char c : cs) x = x.replaceAll("[" + String.valueOf(c) + "]", ""); return x; |
String | removeCommaChar(String str) remove Comma Char return remove(str, ','); |
String | removeMinusChar(String str) remove Minus Char return remove(str, '-'); |
String | removePhotoFromVCard(String vcard) remove Photo From V Card String line; StringBuilder newVCard = new StringBuilder(); BufferedReader reader = new BufferedReader(new StringReader(vcard)); try { String photoLineStart = "PHOTO;ENCODING="; boolean removingPhotoLines = false; while ((line = reader.readLine()) != null) { if (line.startsWith(photoLineStart)) { ... |
String | removeQuotes(String ssid) remove Quotes if (ssid == null) return EMPTYSTRING; else if (ssid.endsWith("\"") && ssid.startsWith("\"")) { try { ssid = ssid.substring(1, ssid.length() - 1); } catch (IndexOutOfBoundsException e) { return EMPTYSTRING; return ssid; |
String | removeSpaces(String string) remove Spaces string = string.replaceAll("\\s+", ""); return string; |
String | removeSurplusSeparator(String str) remove Surplus Separator String sepStr = File.separator;
return str.replaceAll(sepStr + sepStr, sepStr);
|
void | removeTableName(String tableName) remove Table Name mTableNames.remove(tableName); |
String | removeWhitespaces(String pString) remove Whitespaces return pString.replaceAll("[\\s-]*", ""); |