]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libregex: implement \b and \B (word boundary, not word boundary)
authorkevans <kevans@FreeBSD.org>
Sat, 5 Dec 2020 03:16:05 +0000 (03:16 +0000)
committerkevans <kevans@FreeBSD.org>
Sat, 5 Dec 2020 03:16:05 +0000 (03:16 +0000)
commit85f9ee8840b73315e0b7af2d80eef2562c1957a5
tree11153e51ca240d2b5256c0f35e6d0f9feeaeca1b
parent888082f57b4a5bdde0d5ea697e4bd55791212f7c
libregex: implement \b and \B (word boundary, not word boundary)

This is the last of the needed GNU expressions before we can unleash bsdgrep
by default. \b is effectively an agnostic equivalent of \< and \>, while
\B will match every space that isn't making a transition from
nonchar -> char or char -> nonchar.
contrib/netbsd-tests/lib/libc/regex/data/meta.in
lib/libc/regex/engine.c
lib/libc/regex/regcomp.c
lib/libc/regex/regex2.h
lib/libregex/tests/gnuext.in