| 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 |
| 14 |
extern "C" { |
| 15 |
#endif |
| 16 |
|
| 17 |
#include <sfio/sfio.h> |
| 18 |
#include <stdlib.h> |
| 19 |
#include <string.h> |
| 20 |
#include <util/agxbuf.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 |