Commit | Line | Data |
---|---|---|
e85a0294 | 1 | /* |
c0c0989a | 2 | * SPDX-License-Identifier: MIT |
e85a0294 | 3 | * |
c0c0989a | 4 | * Copyright (C) 2017 Philippe Proulx <pproulx@efficios.com> |
e85a0294 PP |
5 | */ |
6 | ||
c0c0989a MJ |
7 | #ifndef _STRING_UTILS_H |
8 | #define _STRING_UTILS_H | |
9 | ||
e85a0294 | 10 | #include <stdbool.h> |
b4051ad8 | 11 | #include <stddef.h> |
e85a0294 | 12 | |
1d18d519 MJ |
13 | bool strutils_is_star_glob_pattern(const char *pattern) |
14 | __attribute__((visibility("hidden"))); | |
ddabe860 | 15 | |
1d18d519 MJ |
16 | bool strutils_is_star_at_the_end_only_glob_pattern(const char *pattern) |
17 | __attribute__((visibility("hidden"))); | |
ddabe860 | 18 | |
e85a0294 | 19 | bool strutils_star_glob_match(const char *pattern, size_t pattern_len, |
1d18d519 MJ |
20 | const char *candidate, size_t candidate_len) |
21 | __attribute__((visibility("hidden"))); | |
e85a0294 PP |
22 | |
23 | #endif /* _STRING_UTILS_H */ |