All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] regex patches
@ 2025-05-06 14:10 Rasmus Villemoes
  2025-05-06 14:10 ` [PATCH 01/11] cmd: test: add support for =~ operator Rasmus Villemoes
                   ` (12 more replies)
  0 siblings, 13 replies; 19+ messages in thread
From: Rasmus Villemoes @ 2025-05-06 14:10 UTC (permalink / raw)
  To: u-boot; +Cc: Tom Rini, Rasmus Villemoes

This started as a rather simple patch, 1/11, adding the ability to
more conveniently do regex matching in shell.

But with that, it became very easy to see what the slre library can
and especially what it cannot do, and that way I found both outright
bugs and a "wow, doesn't it support that syntax" gotcha. I couldn't
find any tests ('git grep slre -- test/' was empty), so I added a
small test suite and tweaked slre.c.

Rasmus Villemoes (11):
  cmd: test: add support for =~ operator
  slre: add myself as maintainer
  test: slre: add tests for regex library
  slre: drop wrong "anchored" optimization
  test: slre: add more test cases
  test: slre: add some (negative) character class tests
  slre: refactor is_any_but()
  slre: fix matching of escape sequence used inside character class
  test: slre: add test cases for escape char in character class
  slre: implement support for ranges in character classes
  test: slre: add tests for character ranges

 MAINTAINERS       |  7 +++++
 cmd/test.c        | 19 ++++++++++++
 include/slre.h    |  1 -
 lib/slre.c        | 78 ++++++++++++++++++++++++++++++++---------------
 test/lib/Makefile |  1 +
 test/lib/slre.c   | 58 +++++++++++++++++++++++++++++++++++
 6 files changed, 138 insertions(+), 26 deletions(-)
 create mode 100644 test/lib/slre.c

-- 
2.49.0


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2025-05-10 11:26 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-06 14:10 [PATCH 00/11] regex patches Rasmus Villemoes
2025-05-06 14:10 ` [PATCH 01/11] cmd: test: add support for =~ operator Rasmus Villemoes
2025-05-06 16:49   ` Tom Rini
2025-05-06 16:52     ` Tom Rini
2025-05-06 19:07       ` Rasmus Villemoes
2025-05-06 19:24         ` Tom Rini
2025-05-06 21:10           ` Rasmus Villemoes
2025-05-06 14:10 ` [PATCH 02/11] slre: add myself as maintainer Rasmus Villemoes
2025-05-06 14:10 ` [PATCH 03/11] test: slre: add tests for regex library Rasmus Villemoes
2025-05-06 14:10 ` [PATCH 04/11] slre: drop wrong "anchored" optimization Rasmus Villemoes
2025-05-06 14:10 ` [PATCH 05/11] test: slre: add more test cases Rasmus Villemoes
2025-05-06 14:10 ` [PATCH 06/11] test: slre: add some (negative) character class tests Rasmus Villemoes
2025-05-06 14:10 ` [PATCH 07/11] slre: refactor is_any_but() Rasmus Villemoes
2025-05-06 14:10 ` [PATCH 08/11] slre: fix matching of escape sequence used inside character class Rasmus Villemoes
2025-05-06 14:10 ` [PATCH 09/11] test: slre: add test cases for escape char in " Rasmus Villemoes
2025-05-06 14:10 ` [PATCH 10/11] slre: implement support for ranges in character classes Rasmus Villemoes
2025-05-06 14:10 ` [PATCH 11/11] test: slre: add tests for character ranges Rasmus Villemoes
2025-05-06 16:44 ` [PATCH 00/11] regex patches Tom Rini
2025-05-10 11:25 ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.