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