GNU bug report logs - #40868
Grep C library for multi-string pattern matching?

Previous Next

Package: grep;

Reported by: noloader <at> gmail.com

Date: Sun, 26 Apr 2020 13:59:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bruno Haible <bruno <at> clisp.org>
To: 40868 <at> debbugs.gnu.org, Jeffrey Walton <noloader <at> gmail.com>
Subject: bug#40868: Grep C library for multi-string pattern matching?
Date: Tue, 22 Sep 2020 04:19:06 +0200
> Does Grep provide a library that exposes its multi-string pattern
> matching? If not, can someone recommend an implementation?

I don't know exactly what you mean, but the GNU grep algorithms are
used as a library in GNU gettext:
  https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=tree;f=gettext-tools/libgrep

Although in hindsight, I don't know whether using simply a regex would not
have been just as good.

Bruno





This bug report was last modified 4 years and 240 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.