myMPD
Internal API documentation
Loading...
Searching...
No Matches
search_pcre.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-3.0-or-later
3 myMPD (c) 2018-2026 Juergen Mang <mail@jcgames.de>
4 https://github.com/jcorporation/mympd
5*/
6
10
11#ifndef MYMPD_LIB_SEARCH_PCRE_H
12#define MYMPD_LIB_SEARCH_PCRE_H
13
14#include "dist/sds/sds.h"
15
19#define PCRE2_CODE_UNIT_WIDTH 8
20
21#include <pcre2.h>
22#include <stdbool.h>
23
24pcre2_code *mympd_search_pcre_compile(sds regex_str);
25bool mympd_search_pcre_match(const char *value, size_t value_len, pcre2_code *re_compiled);
26
27#endif
bool mympd_search_pcre_match(const char *value, size_t value_len, pcre2_code *re_compiled)
Definition search_pcre.c:55
pcre2_code * mympd_search_pcre_compile(sds regex_str)
Definition search_pcre.c:24