![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
PCRE helpers for regex matching. More...
Go to the source code of this file.
Data Structures | |
| struct | N_PCRE |
| N_PCRE structure. More... | |
Macros | |
| #define | npcre_print_error(__LEVEL__, __rc__) |
| PCRE error logging function wrapper to get line and func. | |
| #define | PCRE2_CODE_UNIT_WIDTH 8 |
| #define | PCRE2_LIST_FREE_CAST(x) |
| #define | PCRE_ANCHORED PCRE2_ANCHORED |
| #define | PCRE_CASELESS PCRE2_CASELESS |
| #define | PCRE_DOTALL PCRE2_DOTALL |
| #define | PCRE_EXTENDED PCRE2_EXTENDED |
| #define | PCRE_MULTILINE PCRE2_MULTILINE |
| #define | PCRE_UCP PCRE2_UCP |
| #define | PCRE_UTF8 PCRE2_UTF |
Functions | |
| int | _npcre_print_error (int LOG_LEVEL, const char *file, const char *func, int line, int rc) |
| print error helper | |
| int | npcre_clean_match (N_PCRE *pcre) |
| clean match results from a previous npcre_match_capture | |
| int | npcre_delete (N_PCRE **pcre) |
| pcre helper, delete/free a compiled regexp | |
| int | npcre_match (char *str, N_PCRE *pcre) |
| thread-safe pcre match, only returns TRUE/FALSE, no captures stored | |
| int | npcre_match_capture (char *str, N_PCRE *pcre) |
| thread-safe pcre match with captures stored in pcre->match_list | |
| N_PCRE * | npcre_new (char *str, int flags) |
| pcre helper, compile and optimize regexp | |
| N_STR * | npcre_replace (N_PCRE *pcre, const char *subject, size_t subject_len, const char *replacement) |
| thread-safe regex substitute: replace every match in subject (binary-safe, subject_len bytes) using a replacement template with $N / ${N} capture-group references (pcre2_substitute, global). | |
| #define npcre_print_error | ( | __LEVEL__, | |
| __rc__ ) |
PCRE error logging function wrapper to get line and func.
Definition at line 82 of file n_pcre.h.
Referenced by npcre_replace().
| #define PCRE2_LIST_FREE_CAST | ( | x | ) |
Definition at line 78 of file n_pcre.h.
Referenced by npcre_clean_match(), npcre_delete(), and npcre_match_capture().