|
VSF Documented
|
#include "argtable3.h"#include "argtable3_private.h"#include <stdlib.h>#include <string.h>#include <ctype.h>#include <setjmp.h>Data Structures | |
| struct | TRexMatch |
| struct | privhdr |
| struct | tagTRexNode |
| struct | TRex |
Macros | |
| #define | _TREX_H_ |
| #define | TRexChar char |
| #define | MAX_CHAR 0xFF |
| #define | _TREXC(c) (c) |
| #define | trex_strlen strlen |
| #define | trex_printf printf |
| #define | TREX_API extern |
| #define | TRex_True 1 |
| #define | TRex_False 0 |
| #define | TREX_ICASE ARG_REX_ICASE |
| #define | scisprint isprint |
| #define | scstrlen strlen |
| #define | scprintf printf |
| #define | _SC(x) (x) |
| #define | OP_GREEDY (MAX_CHAR + 1) /* * + ? {n} */ |
| #define | OP_OR (MAX_CHAR + 2) |
| #define | OP_EXPR (MAX_CHAR + 3) /* parentesis () */ |
| #define | OP_NOCAPEXPR (MAX_CHAR + 4) /* parentesis (?:) */ |
| #define | OP_DOT (MAX_CHAR + 5) |
| #define | OP_CLASS (MAX_CHAR + 6) |
| #define | OP_CCLASS (MAX_CHAR + 7) |
| #define | OP_NCLASS (MAX_CHAR + 8) /* negates class the [^ */ |
| #define | OP_RANGE (MAX_CHAR + 9) |
| #define | OP_CHAR (MAX_CHAR + 10) |
| #define | OP_EOL (MAX_CHAR + 11) |
| #define | OP_BOL (MAX_CHAR + 12) |
| #define | OP_WB (MAX_CHAR + 13) |
| #define | TREX_SYMBOL_ANY_CHAR ('.') |
| #define | TREX_SYMBOL_GREEDY_ONE_OR_MORE ('+') |
| #define | TREX_SYMBOL_GREEDY_ZERO_OR_MORE ('*') |
| #define | TREX_SYMBOL_GREEDY_ZERO_OR_ONE ('?') |
| #define | TREX_SYMBOL_BRANCH ('|') |
| #define | TREX_SYMBOL_END_OF_STRING ('$') |
| #define | TREX_SYMBOL_BEGINNING_OF_STRING ('^') |
| #define | TREX_SYMBOL_ESCAPE_CHAR ('\\') |
Typedefs | |
| typedef unsigned int | TRexBool |
| typedef struct TRex | TRex |
| typedef int | TRexNodeType |
| typedef struct tagTRexNode | TRexNode |
Functions | |
| TREX_API TRex * | trex_compile (const TRexChar *pattern, const TRexChar **error, int flags) |
| TREX_API void | trex_free (TRex *exp) |
| TREX_API TRexBool | trex_match (TRex *exp, const TRexChar *text) |
| TREX_API TRexBool | trex_search (TRex *exp, const TRexChar *text, const TRexChar **out_begin, const TRexChar **out_end) |
| TREX_API TRexBool | trex_searchrange (TRex *exp, const TRexChar *text_begin, const TRexChar *text_end, const TRexChar **out_begin, const TRexChar **out_end) |
| TREX_API int | trex_getsubexpcount (TRex *exp) |
| TREX_API TRexBool | trex_getsubexp (TRex *exp, int n, TRexMatch *subexp) |
| struct arg_rex * | arg_rex0 (const char *shortopts, const char *longopts, const char *pattern, const char *datatype, int flags, const char *glossary) |
| struct arg_rex * | arg_rex1 (const char *shortopts, const char *longopts, const char *pattern, const char *datatype, int flags, const char *glossary) |
| struct arg_rex * | arg_rexn (const char *shortopts, const char *longopts, const char *pattern, const char *datatype, int mincount, int maxcount, int flags, const char *glossary) |
| #define _TREX_H_ |
| #define TRexChar char |
| #define MAX_CHAR 0xFF |
| #define _TREXC | ( | c | ) | (c) |
| #define trex_strlen strlen |
| #define trex_printf printf |
| #define TREX_API extern |
| #define TRex_True 1 |
| #define TRex_False 0 |
| #define TREX_ICASE ARG_REX_ICASE |
| #define scisprint isprint |
| #define scstrlen strlen |
| #define scprintf printf |
| #define _SC | ( | x | ) | (x) |
| #define OP_GREEDY (MAX_CHAR + 1) /* * + ? {n} */ |
| #define OP_OR (MAX_CHAR + 2) |
| #define OP_EXPR (MAX_CHAR + 3) /* parentesis () */ |
| #define OP_NOCAPEXPR (MAX_CHAR + 4) /* parentesis (?:) */ |
| #define OP_DOT (MAX_CHAR + 5) |
| #define OP_CLASS (MAX_CHAR + 6) |
| #define OP_CCLASS (MAX_CHAR + 7) |
| #define OP_NCLASS (MAX_CHAR + 8) /* negates class the [^ */ |
| #define OP_RANGE (MAX_CHAR + 9) |
| #define OP_CHAR (MAX_CHAR + 10) |
| #define OP_EOL (MAX_CHAR + 11) |
| #define OP_BOL (MAX_CHAR + 12) |
| #define OP_WB (MAX_CHAR + 13) |
| #define TREX_SYMBOL_ANY_CHAR ('.') |
| #define TREX_SYMBOL_GREEDY_ONE_OR_MORE ('+') |
| #define TREX_SYMBOL_GREEDY_ZERO_OR_MORE ('*') |
| #define TREX_SYMBOL_GREEDY_ZERO_OR_ONE ('?') |
| #define TREX_SYMBOL_BRANCH ('|') |
| #define TREX_SYMBOL_END_OF_STRING ('$') |
| #define TREX_SYMBOL_BEGINNING_OF_STRING ('^') |
| #define TREX_SYMBOL_ESCAPE_CHAR ('\\') |
| typedef unsigned int TRexBool |
| typedef int TRexNodeType |
| typedef struct tagTRexNode TRexNode |
| void trex_free | ( | TRex * | exp | ) |
| TRexBool trex_search | ( | TRex * | exp, |
| const TRexChar * | text, | ||
| const TRexChar ** | out_begin, | ||
| const TRexChar ** | out_end | ||
| ) |
| TRexBool trex_searchrange | ( | TRex * | exp, |
| const TRexChar * | text_begin, | ||
| const TRexChar * | text_end, | ||
| const TRexChar ** | out_begin, | ||
| const TRexChar ** | out_end | ||
| ) |
| int trex_getsubexpcount | ( | TRex * | exp | ) |
| struct arg_rex * arg_rex0 | ( | const char * | shortopts, |
| const char * | longopts, | ||
| const char * | pattern, | ||
| const char * | datatype, | ||
| int | flags, | ||
| const char * | glossary | ||
| ) |
| struct arg_rex * arg_rex1 | ( | const char * | shortopts, |
| const char * | longopts, | ||
| const char * | pattern, | ||
| const char * | datatype, | ||
| int | flags, | ||
| const char * | glossary | ||
| ) |
| struct arg_rex * arg_rexn | ( | const char * | shortopts, |
| const char * | longopts, | ||
| const char * | pattern, | ||
| const char * | datatype, | ||
| int | mincount, | ||
| int | maxcount, | ||
| int | flags, | ||
| const char * | glossary | ||
| ) |