Add static bt2c::Uuid::isValidUuidStr()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 10 May 2024 19:26:11 +0000 (15:26 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commit8c771d53b1175733db8b1a5587db1be5cbd1bc6e
tree952e2eae8972b9ad5b308753400806fe62958844
parent8568d756b5323cf05d92a50c4cff3f2acc398945
Add static bt2c::Uuid::isValidUuidStr()

The bt2c::Uuid(bt2s::string_view) constructor wants the conversion
to work.

This new static method calls bt_uuid_from_str() directly and uses its
return value to validate the UUID string.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I279ac6521b805b0085247c8fbeb16c9ed5018e51
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12762
src/cpp-common/bt2c/uuid.hpp
This page took 0.024285 seconds and 4 git commands to generate.