nds2-client - ClientDeveloper  0.16.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Typedefs | Functions
bash_pattern.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DLL_EXPORT
 

Typedefs

typedef struct bash_pattern_t bash_pattern
 

Functions

DLL_EXPORT bash_patternbash_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 *)
 

Macro Definition Documentation

#define DLL_EXPORT

Typedef Documentation

typedef struct bash_pattern_t bash_pattern

Function Documentation

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.