nds2-client - Developer 0.16.7
Loading...
Searching...
No Matches
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

◆ DLL_EXPORT

#define DLL_EXPORT

Typedef Documentation

◆ bash_pattern

typedef struct bash_pattern_t bash_pattern

Function Documentation

◆ bash_pattern_compile()

DLL_EXPORT 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.

◆ bash_pattern_free()

DLL_EXPORT void bash_pattern_free ( bash_pattern head)

Release memory associated with a compiled pattern.

◆ bash_pattern_is_flat()

DLL_EXPORT 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.

◆ bash_pattern_matches()

DLL_EXPORT int bash_pattern_matches ( const bash_pattern head,
const char *  text 
)

Return 1 if the text matches the compiled pattern, or 0 otherwise.