string_append_escaped


Description:

[ Version ( since = "2.4" ) ]
public static void string_append_escaped (StringBuilder string, string val)

Escapes and quotes val and appends it to string.

The escape algorithm is different from the one used by escape since it leaves non-ASCII characters intact and thus preserves UTF-8 strings. Only control characters and quotes are being escaped.

Parameters:

string

pointer to a StringBuilder

val

a string to append or null