Files
lix/src/libutil/print-elided.hh
T
Jade Lovelace c58e3f826e pragma once and ///@file everything missing it
Change-Id: Ia1a72348336794b5fb9f2694dd750266089b904e
2024-04-08 15:40:12 -07:00

25 lines
396 B
C++

#pragma once
///@file
#include <ostream>
namespace nix {
/**
* Print an `«... elided»` placeholder.
*
* Arguments are forwarded to `pluralize`.
*
* If `ansiColors` is set, the output will be wrapped in `ANSI_FAINT`.
*/
void printElided(
std::ostream & output,
unsigned int value,
const std::string_view single,
const std::string_view plural,
bool ansiColors
);
}