|
XMMS2
|
Functions to create and match glob-like patterns. More...
Typedefs | |
| typedef struct pattern_St | pattern_t |
Functions | |
| s4_pattern_t * | s4_pattern_create (const char *pattern, int casefold) |
| Creates a new pattern. | |
| int | s4_pattern_match (const s4_pattern_t *p, const s4_val_t *val) |
| Matches a pattern against a value. | |
| void | s4_pattern_free (s4_pattern_t *pattern) |
| Frees a pattern created with s4_pattern_create. | |
Functions to create and match glob-like patterns.
Patterns consist of normal characters and the special characters '?' and '*', where ? matches against any character while
| typedef struct pattern_St pattern_t |
| s4_pattern_t * s4_pattern_create | ( | const char * | pattern, |
| int | casefold ) |
Creates a new pattern.
| pattern | The string to use as the pattern |
| casefold | Match against both upper and lower case |
Referenced by CASE().
| void s4_pattern_free | ( | s4_pattern_t * | pattern | ) |
Frees a pattern created with s4_pattern_create.
| pattern | The pattern to free |
Referenced by CASE().
| int s4_pattern_match | ( | const s4_pattern_t * | p, |
| const s4_val_t * | val ) |
Matches a pattern against a value.
| p | The pattern to use |
| val | The value to match |