#[unsafe(no_mangle)]pub unsafe extern "C" fn xmlBufferWriteQuotedString(
buf: *mut _xmlBuffer,
string: *const xmlChar,
)Expand description
Append a quoted string to a buffer.
Appends the string wrapped in quotes. If the string contains both single
and double quotes, double quotes are escaped with " (upstream
buf.c 2.15; no backslash or CR/LF escaping exists in this version).
§UPSTREAM-PARITY
void xmlBufferWriteQuotedString(xmlBuffer *buf, const xmlChar *string);buf.c 2.15: with a double-quote-containing string that also contains a
single quote, emits " + string with " → " + "; with only
double quotes emits ' + string + '; otherwise emits " + string +
". A NULL string yields the bare quote pair, exactly like upstream
(xmlStrchr(NULL) misses, xmlBufferCat(NULL) fails silently).
§SAFETY
bufmust be a valid pointer to a_xmlBuffer(or NULL).stringmust be a valid NUL-terminated xmlChar string (or NULL).