Norihiro Tanaka 6dea75e708 sed: optimize regex processing of lone ^ or $
Optimize /^/ and /$/ patterns and avoid invoking the regular expression
engine if possible.
See https://bugs.gnu.org/24615 .

* sed/regex.c (compile_regex_1): Mark the patterns which consist of ^ or $.
(match_regex): Handle the patterns which consist of ^ or $ manually.
* sed/sed.h (struct regex): New members 'begline' and 'endline'.
* testsuite/newline-anchor.good, testsuite/newline-anchor.sed,
testsuite/newline-anchor.sed: New test.
* testsuite/Makefile.tests: Add the test.
* testsuite/local.mk: Add the test.
2016-11-04 21:03:43 -04:00
2016-10-02 14:16:31 -07:00
2014-11-30 18:59:33 -08:00
2016-10-02 14:16:31 -07:00
2016-10-02 14:16:31 -07:00
2008-04-10 11:14:38 +02:00
2016-10-02 14:16:31 -07:00
2016-08-26 11:54:30 -04:00
2014-11-30 18:59:33 -08:00
2016-08-22 20:57:02 -04:00
2015-05-01 18:09:51 -07:00
2015-05-01 18:09:51 -07:00
2016-09-05 00:27:04 -04:00
2016-08-24 18:39:20 -04:00

This is the GNU implementation of sed, the Unix stream editor.

GNU Sed website: https://www.gnu.org/software/sed/

See the NEWS file for a brief summary and the ChangeLog for
more detailed descriptions of changes.

See the file INSTALL for generic compilation and installation
instructions.

See the file BUGS for instructions about reporting bugs.

See the files AUTHORS and THANKS for a list of authors and other contributors.

After installation run 'sed --help' or 'man sed' for short usage information,
and 'info sed' for the complete manual. The manual is also available on
sed's website.
S
Description
SED (stream editor) - неинтерактивный текстовый редактор командной строки
https://www.gnu.org/software/sed/
Readme GPL-3.0
3 MiB
0 Stars 1 Watchers 0 Forks
Languages
Shell 43%
C 26.4%
Perl 16.5%
sed 7.3%
Makefile 5.2%
Other 1.6%