List of utility methods to do String Quote
String | quote(final String value) quote return "\"" + value + "\""; |
String | quote(final String value) Quote the given string if needed if (value == null) { return null; String result = value; if (!result.startsWith("\"")) { result = "\"" + result; if (!result.endsWith("\"")) { ... |
String | quote(final String value) quote if (value == null) { return null; final StringBuilder sb = new StringBuilder("\""); int length = value.length(); for (int n = 0, cp; n < length; n += Character.charCount(cp)) { cp = value.codePointAt(n); if (cp == '\\' || cp == '"') { ... |
String | quote(Object aObject) quote return SINGLE_QUOTE + String.valueOf(aObject) + SINGLE_QUOTE;
|
String | quote(Object s) _more_ return "'" + s.toString() + "'"; |
String | quote(Object s) The quote() method simply adds double quotes around a string.
return QUOTE + s + QUOTE;
|
String | quote(Object value) quote return "\"" + value + "\""; |
String | quote(String content) quote StringBuffer sb = new StringBuffer(); sb.append("\""); sb.append(content); sb.append("\""); return sb.toString(); |
String | quote(String content, String quoteMark) surround content with quoteMark and double every quoteMark inside content return quoteMark + content.replaceAll(quoteMark, quoteMark + quoteMark) + quoteMark;
|
String | quote(String content, String quoteMark) surround content with quoteMark and double every quoteMark inside content return quoteMark + content.replaceAll(quoteMark, quoteMark + quoteMark) + quoteMark;
|