socat/nestlex.h

28 lines
1.1 KiB
C
Raw Permalink Normal View History

2008-01-28 21:37:16 +00:00
/* source: nestlex.h */
2008-02-17 13:59:16 +00:00
/* Copyright Gerhard Rieger 2006-2007 */
2008-01-27 12:00:08 +00:00
/* Published under the GNU General Public License V.2, see file COPYING */
#ifndef __nestlex_h_included
#define __nestlex_h_included 1
extern
int nestlex(const char **addr, /* input string; aft points to end token */
char **token, /* output token; aft points to first unwritten
char (caller might want to set it to \0) */
size_t *len, /* remaining bytes in token space (incl. \0) */
const char *ends[], /* list of end strings */
const char *hquotes[],/* list of strings that quote (hard qu.) */
const char *squotes[],/* list of strings that quote softly */
const char *nests[],/* list of strings that start nesting;
every second one is matching end */
2008-02-17 13:59:16 +00:00
bool dropspace, /* drop trailing space before end token */
2008-01-27 12:00:08 +00:00
bool dropquotes, /* drop the outermost quotes */
bool c_esc, /* solve C char escapes: \n \t \0 etc */
bool html_esc /* solve HTML char escapes: %0d %08 etc */
);
2008-02-17 13:59:16 +00:00
extern
int skipsp(const char **text);
2008-01-27 12:00:08 +00:00
#endif /* !defined(__nestlex_h_included) */