|
myMPD
Internal API documentation
|
PCRE search implementation. More...
#include "dist/sds/sds.h"#include <pcre2.h>#include <stdbool.h>

Go to the source code of this file.
Macros | |
| #define | PCRE2_CODE_UNIT_WIDTH 8 |
Functions | |
| pcre2_code * | mympd_search_pcre_compile (sds regex_str) |
| bool | mympd_search_pcre_match (const char *value, size_t value_len, pcre2_code *re_compiled) |
PCRE search implementation.
| #define PCRE2_CODE_UNIT_WIDTH 8 |
PCRE for UTF-8
| pcre2_code * mympd_search_pcre_compile | ( | sds | regex_str | ) |
Compiles a string to regex code
| regex_str | regex string |
| bool mympd_search_pcre_match | ( | const char * | value, |
| size_t | value_len, | ||
| pcre2_code * | re_compiled ) |
Matches the regex against a string
| re_compiled | the compiled regex from compile_regex |
| value | String value to match against |
| value_len | Value length |