#include "ffregex.h"
#include "tcrip.h"
#include <stdlib.h>
#include <sys/types.h>
#include <regex.h>
#include <string.h>
Go to the source code of this file.
Functions | |
static ffbool | ffregex_do_match (const ffchar *needle, const ffstring *haystack, ffint32 cflags) |
ffbool | ffregex_match (const ffchar *needle, const ffstring *haystack) |
Matches the given haystack against the given needle regex. | |
ffbool | ffregex_match_ci (const ffchar *needle, const ffstring *haystack) |
Case-insensitively matches the given haystack against the given needle regex. | |
static ffbool | ffregex_do_replace (const ffchar *needle, const ffchar *replace, ffstring *haystack, ffint32 cflags) |
ffbool | ffregex_replace (const ffchar *needle, const ffchar *replace, ffstring *haystack) |
Does regex substitution. | |
ffbool | ffregex_replace_ci (const ffchar *needle, const ffchar *replace, ffstring *haystack) |
Does regex substitution case-insensitively. |
Definition in file ffregex.c.
|
Definition at line 44 of file ffregex.c. References ffstring::str. Referenced by ffregex_match(), and ffregex_match_ci(). |
|
Definition at line 68 of file ffregex.c. References ffstring::len, ffstring::str, and tcregsub(). Referenced by ffregex_replace(), and ffregex_replace_ci(). |
|
Matches the given haystack against the given needle regex.
Definition at line 60 of file ffregex.c. References ffregex_do_match(). Referenced by ffpriv_essive_stem(), ffpriv_genitive_plural(), ffpriv_genitive_stem(), and main(). |
|
Case-insensitively matches the given haystack against the given needle regex.
Definition at line 64 of file ffregex.c. References ffregex_do_match(). Referenced by ffpriv_consonant_gradation(), ffpriv_general_illative(), ffpriv_partitive_plural(), ffpriv_partitive_singular(), ffpriv_partitive_stem(), ffpriv_plural_stem(), and main(). |
|
Does regex substitution.
Definition at line 81 of file ffregex.c. References ffregex_do_replace(). Referenced by main(). |
|
Does regex substitution case-insensitively.
Definition at line 85 of file ffregex.c. References ffregex_do_replace(). Referenced by ffpriv_consonant_gradation(), and ffpriv_plural_stem(). |