aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-09-14 19:00:01 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-09-14 19:00:01 +0200
commitab0d97147d8c19eabc41b11698dff13cd04d67ae (patch)
treeb9f7cb00405b41fce77c5df3ac9a7ea0e2ebfc1c /debian
parent07d9cdfd3d1462f5f19cfa1422d9b5710c9e139d (diff)
downloadsciteco-ab0d97147d8c19eabc41b11698dff13cd04d67ae.tar.gz
imported Henry Spencer's regex implementation from Tcl
Source: github.com/garyhouston/hsrex * This version should be a Thompson NFA, using backtracking only for backreferences, so it should be much safer than PCRE (GRegex). Search times should be linear and there should be no way to cause stack overflows (unless we would generate backreferences). * Importing the lib makes sure we don't add another compile-time dependency. Also, we could implement our own regcomp() which translates directly from TECO patterns. * This is still WIP and currently only works with the ASCII version. The widechar version does not define re_comp() and re_exec(). * Apparently we can't have an ASCII and widechar version at the same time, so we must build two libtool libraries and somehow mangle the names. * Ideally the widechar version will also work with UTF-8 strings. * An alternative might be to import the Gnulib regex module. How does it choose the encoding anyway? * Or we could just use Oniguruma - but this would have to be a new external library dependency.
Diffstat (limited to 'debian')
0 files changed, 0 insertions, 0 deletions