mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03:00
util: buffer: Clarify scope of the escape operation in virBufferEscape
The escaping is applied only to the string, not the format argument. State this fact in the docs.
This commit is contained in:
parent
e650f30b93
commit
7be41e787d
@ -505,8 +505,9 @@ virBufferEscapeSexpr(virBufferPtr buf,
|
|||||||
* @str: the string argument which needs to be escaped
|
* @str: the string argument which needs to be escaped
|
||||||
*
|
*
|
||||||
* Do a formatted print with a single string to a buffer. Any characters
|
* Do a formatted print with a single string to a buffer. Any characters
|
||||||
* in the provided list are escaped with the given escape. Auto indentation
|
* in the provided list that are contained in @str are escaped with the
|
||||||
* may be applied.
|
* given escape. Escaping is not applied to characters specified in @format.
|
||||||
|
* Auto indentation may be applied.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
virBufferEscape(virBufferPtr buf, char escape, const char *toescape,
|
virBufferEscape(virBufferPtr buf, char escape, const char *toescape,
|
||||||
|
Loading…
Reference in New Issue
Block a user