Graphviz 13.1.2~dev.20250723.2326
Loading...
Searching...
No Matches
xml.h File Reference

XML escaping functionality. More...

#include <util/api.h>
Include dependency graph for xml.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  xml_flags_t
 options to tweak the behavior of XML escaping More...
 

Functions

UTIL_API int gv_xml_escape (const char *s, xml_flags_t flags, int(*cb)(void *state, const char *s), void *state)
 

Function Documentation

◆ gv_xml_escape()

UTIL_API int gv_xml_escape ( const char *  s,
xml_flags_t  flags,
int(*)(void *state, const char *s cb,
void *  state 
)

XML-escape a string

Parameters
sSource string to process.
flagsOptions of how to configure escaping.
cbAn fputs analogue for emitting escaped output.
stateCaller-defined data to pass to cb.
Returns
The first negative value cb returns or the last return value of cb.

Definition at line 181 of file xml.c.

References flags, and xml_core().

Referenced by EmbedText(), gvputs_xml(), pango_textlayout(), svg_begin_anchor(), svg_textspan(), xml_puts(), xml_puts(), xml_url_puts(), and xml_url_puts().

Here is the call graph for this function:
Here is the caller graph for this function: