Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
ast.h
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11#pragma once
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#include <cgraph/agxbuf.h>
18#include <sfio/sfio.h>
19#include <stdlib.h>
20#include <string.h>
21
22/*
23 * strgrpmatch() flags
24 */
25
26#define STR_LEFT 02 /* implicit left anchor */
27#define STR_RIGHT 04 /* implicit right anchor */
28
29#define CC_bel 0007 /* bel character */
30#define CC_esc 0033 /* esc character */
31#define CC_vt 0013 /* vt character */
32
33#define elementsof(x) (sizeof(x)/sizeof(x[0]))
34
35 extern int chresc(const char *, char **);
36 extern int chrtoi(const char *);
37 extern char *fmtesq(const char *, const char *);
38 extern char *fmtesc(const char *as);
39 extern char *fmtquote(const char *, const char *, const char *);
40
41 extern int strmatch(char *, char *);
42 extern int strgrpmatch(char *, char *, size_t *, int, int);
43 extern void stresc(char *);
44
45#ifdef __cplusplus
46}
47#endif
char * fmtesq(const char *, const char *)
Definition fmtesc.c:123
char * fmtquote(const char *, const char *, const char *)
quote string as with qb...qe
Definition fmtesc.c:26
int chresc(const char *, char **)
Definition chresc.c:22
int chrtoi(const char *)
Definition chrtoi.c:22
int strmatch(char *, char *)
Definition strmatch.c:554
char * fmtesc(const char *as)
Definition fmtesc.c:132
void stresc(char *)
Definition stresc.c:20
int strgrpmatch(char *, char *, size_t *, int, int)
Definition strmatch.c:505