mask.cpp File Reference
Implements header. More...
#include "mask.h"
Go to the source code of this file.
Functions | |
NAMESPACE_LIBDAR_START dar_mask * | dar_mask_create_same_path (char *path, bool case_sensit) |
Matches if string is exactly the given mask (without wildcard expressions). | |
dar_mask * | dar_mask_create_bool (bool always) |
Always matches or never matches. | |
dar_mask * | dar_mask_create_and () |
Evaluates the logical and between two or more masks. | |
dar_mask * | dar_mask_create_or () |
Evaluates the logical or between two or more masks. | |
dar_mask * | dar_mask_create_exclude_dir (char *path, bool case_sensit) |
Matches any file and it's children. | |
dar_mask * | dar_mask_create_not (dar_mask *mask) |
Negation of another mask. | |
dar_mask * | dar_mask_create_regular (char *expr, bool case_sensit) |
Full regular expression matching. | |
dar_mask * | dar_mask_create_simple (char *expr, bool case_sensit) |
Simple text matching similiar to that done on the command line. | |
dar_mask * | dar_mask_create_simple_path (char *path, bool case_sensit) |
Matches any path and it's children plus any parents of that given path. | |
void | dar_mask_destroy (dar_mask *mask) |
Frees memory used by mask object. | |
void | dar_mask_and_add (dar_mask *ref, dar_mask *new_mask) |
Expands a union by adding another mask to an and mask. | |
void | dar_mask_and_clear (dar_mask *ref) |
Clears all entries from an and mask. | |
U_I | dar_mask_and_size (dar_mask *ref) |
Gets the number of elements in a union. | |
void | dar_mask_or_add (dar_mask *ref, dar_mask *new_mask) |
Narrows an intersection by adding another mask to an or mask. | |
void | dar_mask_or_clear (dar_mask *ref) |
Clears all entries from an or mask. | |
U_I | dar_mask_or_size (dar_mask *ref) |
Gets the number of elements in an intersection. |
Detailed Description
Implements header.
Definition in file mask.cpp.