nds2-client - ClientDeveloper
0.16.8
|
Go to the source code of this file.
Macros | |
#define | DLL_EXPORT |
Typedefs | |
typedef struct bash_pattern_t | bash_pattern |
Functions | |
DLL_EXPORT bash_pattern * | bash_pattern_compile (const char *) |
DLL_EXPORT void | bash_pattern_free (bash_pattern *) |
DLL_EXPORT int | bash_pattern_matches (const bash_pattern *, const char *) |
DLL_EXPORT int | bash_pattern_is_flat (const bash_pattern *) |
#define DLL_EXPORT |
typedef struct bash_pattern_t bash_pattern |
DLL_EXPORT bash_pattern* bash_pattern_compile | ( | const char * | ) |
Compile a pattern expression from a string. Return a new compiled pattern, or NULL the expression cannot be compiled.
DLL_EXPORT void bash_pattern_free | ( | bash_pattern * | ) |
Release memory associated with a compiled pattern.
DLL_EXPORT int bash_pattern_is_flat | ( | const bash_pattern * | ) |
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.
DLL_EXPORT int bash_pattern_matches | ( | const bash_pattern * | , |
const char * | |||
) |
Return 1 if the text matches the compiled pattern, or 0 otherwise.