BSD Ports

wip/re2-git 0.99 NetBSD

Fast, safe, thread-friendly regular expressions library

System
NetBSD
Repository
pkgsrc-wip
Maintainer
[email protected]
License
modified-bsd
Categories
wip, devel

Description

RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python. It is a C++ library.

Backtracking engines are typically full of features and convenient syntactic sugar but can be forced into taking exponential amounts of time on even small inputs. RE2 uses automata theory to guarantee that regular expression searches run in time linear in the size of the input. RE2 implements memory limits, so that searches can be constrained to a fixed amount of memory. RE2 is engineered to use a small fixed C++ stack footprint no matter what inputs or regular expressions it must process; thus RE2 is useful in multithreaded environments where thread stacks cannot grow arbitrarily large.

On large inputs, RE2 is often much faster than backtracking engines; its use of automata theory lets it apply optimizations that the others cannot.

In the other systems

SystemPortVersion
NetBSDwip/re2-git0.99
FreeBSDdevel/re220251105
OpenBSDtextproc/re220251105p1
DragonFlydevel/re220240702_1
HardenedBSDdevel/re220251105
GhostBSDdevel/re220251105
OPNsensedevel/re220251105

Install

From pkgsrc-wip (no binary package):

cd /usr/pkgsrc/wip/re2-git && make install clean

Dependencies

No port depends on this one.