|
nds2-client - Developer 0.16.7
|

Classes | |
| struct | bash_pattern_t |
| struct | bash_pattern_string_literal |
| struct | bash_pattern_alternatives |
Functions | |
| static void | bash_pattern_compile1 (bash_pattern_alternatives *container, bash_pattern *head, bash_pattern **next, const char **pattern, int escaped) |
| static void | bash_pattern_compile_literal (bash_pattern_alternatives *container, bash_pattern *head, bash_pattern **next, const char **pattern) |
| static bash_pattern * | bash_pattern_new_empty_literal () |
| static void | bash_pattern_fallthrough (bash_pattern *head, bash_pattern *togoto) |
| bash_pattern * | bash_pattern_compile (const char *pattern) |
| static void | bash_pattern_free1 (bash_pattern *head, bash_pattern *sentinel) |
| void | bash_pattern_free (bash_pattern *head) |
| int | bash_pattern_matches (const bash_pattern *head, const char *text) |
| int | bash_pattern_is_flat (const bash_pattern *head) |
| bash_pattern * bash_pattern_compile | ( | const char * | pattern | ) |
Compile a pattern expression from a string. Return a new compiled pattern, or NULL the expression cannot be compiled.
|
static |
|
static |
|
static |
| void bash_pattern_free | ( | bash_pattern * | head | ) |
Release memory associated with a compiled pattern.
|
static |
| int bash_pattern_is_flat | ( | const bash_pattern * | head | ) |
Determine if the compiled pattern is flat, or has no brace alternatives like {FOO,BAR,BAT}. Return 1 if the pattern is flat, or 0 otherwise. A flat pattern expression contains only literals and * and ? wildcards.
| int bash_pattern_matches | ( | const bash_pattern * | head, |
| const char * | text | ||
| ) |
Return 1 if the text matches the compiled pattern, or 0 otherwise.
|
static |