aboutsummaryrefslogtreecommitdiff
path: root/rege_dfa.c
AgeCommit message (Collapse)AuthorFilesLines
2026-06-29implemented tere_set_is_interrupted_cb()Robin Haberkorn1-0/+12
Allows you to set up a callback that's invoked repeatedly during matching. If it returns non-0 matching will abort and REG_EINTR is returned. Allows you to interrupt long-running regexp executions that would otherwise block the UI or hang the entire application.
2026-06-29added my copyright to all touched filesRobin Haberkorn1-0/+1
* Perhaps I am also obliged to document what I changed in the copyright header? Not sure. * The license header doesn't necessarily have to be reproduced in binary distributions.
2026-06-27fixup REG_ANCHORED: the checks have to be in shortest()Robin Haberkorn1-0/+12
I put them into longest() as well, but it appears that both find() and cfind() will always try shortest() first and should abort if that returns NULL.
2026-06-26allow raw (ASCII) matching via REG_RAW flag, so we no longer need a ↵Robin Haberkorn1-17/+17
compile-time flag You no longer need to build two libraries just for supporting raw/ASCII and UTF-8 patterns. This makes using the library a lot easier and reduces the total binary size. Since strings are always `unsigned char *` now internally and the raw vs. UTF-8 decision is important only in a few select places, it would make no sense to use meta-programming techniques. The test suite has been extended and is now fixed for cases with embedded non-printable characters.
2026-06-21fixed some warnings when building with `-Wall`Robin Haberkorn1-9/+9
2026-06-21Unicode builds now expect UTF-8 stringsRobin Haberkorn1-20/+27
* They are built with `-DREGEX_UTF8` instead of `-DREGEX_WCHAR`. Functions are called reg_ucomp() and reg_uexec() instead for consistency. The library is now called libhsurex.so instead of libhswrex.so. * The `chr` type is now always `unsigned char`. As a result many other uses of the `chr` type had to be changed to pchr (which is always large enough to hold a byte or wide character). Generally we try to keep code changes as small as possible since we may have to backport changes from the Tcl codebase or contribute patches to the Tcl project.
2014-12-26importGary Houston1-0/+816