Modifier and Type | Method and Description |
---|---|
static void |
appendQuoted(StringBuilder b,
char ch)
Appends the character to the string builder, preceded by any quoting necessary to
convert it from a meta-character to a character literal.
|
static void |
appendQuoted(StringBuilder b,
String s)
Translates all meta-characters in the string to literals by quoting where
necessary and appends the result to the string builder.
|
static void |
appendQuoted(StringBuilder b,
String s,
int start,
int end)
Translates all meta-characters in the substring to literals by quoting where
necessary and appends the result to the string builder.
|
public static void appendQuoted(StringBuilder b, char ch)
public static void appendQuoted(StringBuilder b, String s)
public static void appendQuoted(StringBuilder b, String s, int start, int end)
start
- the index of the first character of the substring (inclusive).end
- the index of the substring end (exclusive).