$darkmode
| Elektra 0.11.0
    | 
Library for performing globbing on keynames. More...
#include <kdb.h>#include <kdbease.h>#include <kdbglobbing.h>#include <kdbhelper.h>#include <ctype.h>#include <fnmatch.h>#include <stdlib.h>#include <string.h>
| Functions | |
| int | elektraKeyGlob (const Key *key, const char *pattern) | 
| checks whether a given Key matches a given globbing pattern  More... | |
| int | elektraKsGlob (KeySet *result, KeySet *input, const char *pattern) | 
| filters a given KeySet by applying a globbing pattern  More... | |
Library for performing globbing on keynames.
| int elektraKeyGlob | ( | const Key * | key, | 
| const char * | pattern | ||
| ) | 
checks whether a given Key matches a given globbing pattern
WARNING: this method will not work correctly, if key parts contain embedded (escaped) slashes.
The globbing patterns for this function are a superset of those from glob(7) used with the FNM_PATHNAME flag:
pattern), matches a valid array item  pattern), matches a key part that is not a valid array item  | key | the Key to match against the globbing pattern | 
| pattern | the globbing pattern used | 
| 0 | if keyis not NULL,patternis not NULL andpatternmatcheskey | 
| ELEKTRA_GLOB_NOMATCH | otherwise | 
| int elektraKsGlob | ( | KeySet * | result, | 
| KeySet * | input, | ||
| const char * | pattern | ||
| ) | 
filters a given KeySet by applying a globbing pattern
| result | the KeySet to which the matching keys should be appended | 
| input | the KeySet whose keys should be filtered | 
| pattern | the globbing pattern used | 
result, input or pattern are NULL