nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* source: nestlex.h */ |
2 | /* Copyright Gerhard Rieger 2006-2007 */ |
||
3 | /* Published under the GNU General Public License V.2, see file COPYING */ |
||
4 | |||
5 | #ifndef __nestlex_h_included |
||
6 | #define __nestlex_h_included 1 |
||
7 | |||
8 | extern |
||
9 | int nestlex(const char **addr, /* input string; aft points to end token */ |
||
10 | char **token, /* output token; aft points to first unwritten |
||
11 | char (caller might want to set it to \0) */ |
||
12 | size_t *len, /* remaining bytes in token space (incl. \0) */ |
||
13 | const char *ends[], /* list of end strings */ |
||
14 | const char *hquotes[],/* list of strings that quote (hard qu.) */ |
||
15 | const char *squotes[],/* list of strings that quote softly */ |
||
16 | const char *nests[],/* list of strings that start nesting; |
||
17 | every second one is matching end */ |
||
18 | bool dropspace, /* drop trailing space before end token */ |
||
19 | bool dropquotes, /* drop the outermost quotes */ |
||
20 | bool c_esc, /* solve C char escapes: \n \t \0 etc */ |
||
21 | bool html_esc /* solve HTML char escapes: %0d %08 etc */ |
||
22 | ); |
||
23 | |||
24 | extern |
||
25 | int skipsp(const char **text); |
||
26 | |||
27 | #endif /* !defined(__nestlex_h_included) */ |