Graphviz 13.0.0~dev.20250424.1043
Loading...
Searching...
No Matches
xml.h
Go to the documentation of this file.
1
3
4#pragma once
5
17#ifndef UTIL_API
18#if !defined(__CYGWIN__) && defined(__GNUC__) && !defined(__MINGW32__)
19#define UTIL_API __attribute__((visibility("hidden")))
20#else
21#define UTIL_API /* nothing */
22#endif
23#endif
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
30typedef struct {
32 unsigned raw : 1;
34 unsigned dash : 1;
36 unsigned nbsp : 1;
38 unsigned utf8 : 1;
40
50 int (*cb)(void *state, const char *s), void *state);
51
52#ifdef __cplusplus
53}
54#endif
static int flags
Definition gc.c:61
options to tweak the behavior of XML escaping
Definition xml.h:30
unsigned dash
escape '-'
Definition xml.h:34
unsigned utf8
anticipate non-ASCII characters that need to be encoded
Definition xml.h:38
unsigned raw
assume no embedded escapes, and escape "\n" and "\r"
Definition xml.h:32
unsigned nbsp
escape consecutive ' '
Definition xml.h:36
Definition grammar.c:93
UTIL_API int gv_xml_escape(const char *s, xml_flags_t flags, int(*cb)(void *state, const char *s), void *state)
Definition xml.c:178
#define UTIL_API
Definition xml.h:21