Graphviz 13.1.2~dev.20250807.2324
Loading...
Searching...
No Matches
xml.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include <util/api.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
13typedef struct {
15 unsigned raw : 1;
17 unsigned dash : 1;
19 unsigned nbsp : 1;
21 unsigned utf8 : 1;
23
33 int (*cb)(void *state, const char *s), void *state);
34
35#ifdef __cplusplus
36}
37#endif
macro for API hiding/exposing
#define UTIL_API
Definition api.h:18
static int flags
Definition gc.c:61
options to tweak the behavior of XML escaping
Definition xml.h:13
unsigned dash
escape '-'
Definition xml.h:17
unsigned utf8
anticipate non-ASCII characters that need to be encoded
Definition xml.h:21
unsigned raw
assume no embedded escapes, and escape "\n" and "\r"
Definition xml.h:15
unsigned nbsp
escape consecutive ' '
Definition xml.h:19
Definition grammar.c:89
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:181