src/cpp-common: add bt2c::textLocStr() function
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 8 Dec 2023 18:28:53 +0000 (18:28 +0000)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commit850d66dc51d3bf0afefbafb60dfd8beb655a5cf8
treec886c1105fabcd22eef586efcd75d56070b3d23f
parent2a8eb1258a6c3081d1cad4f7a3df0e0ca7880bce
src/cpp-common: add bt2c::textLocStr() function

This new function formats a text location (`bt2c::TextLoc`) according
to some format amongst:

`bt2c::TextLocStrFmt::Offset`:
    Offset only.

`bt2c::TextLocStrFmt::LineColNosAndOffset`:
    Line/column numbers and offset.

`bt2c::TextLocStrFmt::LineColNos`:
    Line/column numbers only.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I8afeb43a71c7103135f903f7d4eeb73ccf9e24c3
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12679
src/Makefile.am
src/cpp-common/bt2c/text-loc-str.cpp [new file with mode: 0644]
src/cpp-common/bt2c/text-loc-str.hpp [new file with mode: 0644]
This page took 0.024471 seconds and 4 git commands to generate.