cpp-common/bt2c: add `Regex`
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 31 May 2024 19:40:15 +0000 (15:40 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commit6f3c472e6b793025065c48f9576066dbb40a490d
tree5c1866930f34b2c0f30810e16180415f4a9ba807
parentc2797c1468f949c673bb5daa390c1983614e9f7b
cpp-common/bt2c: add `Regex`

Add `Regex`, a class wrapping some features of `GRegex` (from glib).

The constructor aborts if the regex pattern fails to compile.  There is
a single `match()` method that returns whether or not the given string
matches the regex.

Change-Id: Ia4cb1542efa91fcf3849d82d047c871d9bf2dbd2
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12837
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/Makefile.am
src/cpp-common/bt2c/regex.hpp [new file with mode: 0644]
This page took 0.024039 seconds and 4 git commands to generate.