|
myMPD
Internal API documentation
|
Search implementation. More...
#include "src/lib/search/search_pcre.h"#include "src/lib/log.h"#include "src/lib/mem.h"#include "src/lib/utf8_wrapper.h"#include <string.h>
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) |
Search implementation.
| 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 |