DoxigAlpha

pathIncluded

Function parameters

Parameters

#
path:[]const u8

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#
addCopyFile
Place the file into the generated directory within the local cache,
addCopyDirectory
Copy files matching the specified exclude/include patterns to the specified subdirectory
getDirectory
Returns a `LazyPath` representing the base directory that contains all the

= .write_file

Values

#
base_id
= .write_file

Source

Implementation

#
pub fn pathIncluded(opts: Options, path: []const u8) bool {
    for (opts.exclude_extensions) |ext| {
        if (std.mem.endsWith(u8, path, ext))
            return false;
    }
    if (opts.include_extensions) |incs| {
        for (incs) |inc| {
            if (std.mem.endsWith(u8, path, inc))
                return true;
        } else {
            return false;
        }
    }
    return true;
}