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
26
extern
"C"
{
27
#endif
28
30
typedef
struct
{
32
unsigned
raw
: 1;
34
unsigned
dash
: 1;
36
unsigned
nbsp
: 1;
38
unsigned
utf8
: 1;
39
}
xml_flags_t
;
40
49
UTIL_API
int
gv_xml_escape
(
const
char
*
s
,
xml_flags_t
flags
,
50
int
(*cb)(
void
*state,
const
char
*
s
),
void
*state);
51
52
#ifdef __cplusplus
53
}
54
#endif
flags
static int flags
Definition
gc.c:61
xml_flags_t
options to tweak the behavior of XML escaping
Definition
xml.h:30
xml_flags_t::dash
unsigned dash
escape '-'
Definition
xml.h:34
xml_flags_t::utf8
unsigned utf8
anticipate non-ASCII characters that need to be encoded
Definition
xml.h:38
xml_flags_t::raw
unsigned raw
assume no embedded escapes, and escape "\n" and "\r"
Definition
xml.h:32
xml_flags_t::nbsp
unsigned nbsp
escape consecutive ' '
Definition
xml.h:36
s
Definition
grammar.c:93
gv_xml_escape
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
UTIL_API
#define UTIL_API
Definition
xml.h:21
lib
util
xml.h
Generated by
1.9.8