diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-06-27 17:06:10 +0200 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-06-27 17:11:39 +0200 |
| commit | faa449f2c2353aad5ebd61f27181fdc576a6ab78 (patch) | |
| tree | b0921ce37ca84a38d13fd0c8a24f98eae8c595e5 /README.md | |
| parent | 51b272276ff72b2856b2704708644bca143eef64 (diff) | |
| download | terex-faa449f2c2353aad5ebd61f27181fdc576a6ab78.tar.gz | |
renamed re_comp() to tere_comp() and re_exec() to tere_exec()
Fixes inclusion into programs that also include unistd.h on BSD,
which also provides re_comp() and re_exec() implementations.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -14,16 +14,18 @@ It is still kept as a standalone library and may be useful to other projects as Compared to hsrex, this library has the following changes: +* Renamed `re_comp()` to `tere_comp()` and `re_exec()` to `tere_exec()` + to avoid collisions with BSD's functions from unistd.h. * Native UTF-8 support - no need to convert UTF-8 to UTF-32 first. You no longer need to compile a special version of the library. It expects Unicode strings by default unless specifying the `REG_RAW` - compilation flag. + `tere_comp()` compilation flag. ## TODO * Hook into the matching algorithm. Even though runtime cannot be as catastrophically bad as in pure - backtracking engines like PCRE, `re_exec()` calls can still be slow + backtracking engines like PCRE, `tere_exec()` calls can still be slow on extremely large texts. The hook allows interruptions. * Expose enough API to swap out the regular expression lexer. |
