7#ifndef BACKENDS_P4TOOLS_COMMON_LIB_FORMAT_INT_H_
8#define BACKENDS_P4TOOLS_COMMON_LIB_FORMAT_INT_H_
15#include "lib/big_int_util.h"
41std::string formatBinOrHex(
const big_int &value,
45std::string
formatBin(
const big_int &value,
int width,
52std::string
formatHex(
const big_int &value,
int width,
82std::string
insertSeparators(
const std::string &dataStr,
const std::string &separator =
"\\x",
83 size_t stride = 2,
bool skipFirst =
false);
96 bool padLeft =
false);