List of utility methods to do String Double Quote
String | doubleQuote(Object thing) Surrounds given object's Object#toString() with double quotes. return thing == null ? (String) null : new StringBuilder().append(DOUBLE_QUOTE).append(thing).append(DOUBLE_QUOTE).toString(); |
String | doubleQuote(String data) Double quotes a string return "\"" + data + "\""; |
String | doubleQuote(String input) Adds a double quotation to the input value return "\"" + input + "\""; |
String | doubleQuote(String message) double Quote return quote(message, DOUBLE_QUOTE);
|
String | doubleQuote(String s) Place double quotes arround input string, Escape single quotes that will cause problems. if (s == null) return "NULL"; StringBuilder sb = new StringBuilder(); sb.append('"'); for (int i = 0; i < s.length(); i++) { char ch = s.charAt(i); if (ch == '\'') sb.append("\\'"); ... |
String | doubleQuote(String s) double Quote return "\"" + s + "\""; |
String | doubleQuote(String str) double Quote int pos = str.indexOf('\''); if (pos != -1) { str = str.substring(0, pos + 1) + "'" + doubleQuote(str.substring(pos + 1)); return str; |
String | doubleQuote(String str) double Quote return quote(str, '"'); |
String | doublequote(String str, boolean escapeHtml) doublequote if (str == null) { return null; return quote(str, escapeHtml); |
String | doubleQuote(String string) Quotes a string if it contains special characters. return quote(string, "\""); |