MCPcopy Create free account
hub / github.com/bshoshany/thread-pool / print_header

Function print_header

tests/BS_thread_pool_test.cpp:427–431  ·  view source on GitHub ↗

* @brief Print a stylized header with the specified ANSI styles. * * @param text The text of the header. Will appear between two lines. * @param symbol The symbol to use for the lines. Default is '='. * @param codes The ANSI codes. Default is `ansi_separator`. */

Source from the content-addressed store, hash-verified

425 * @param codes The ANSI codes. Default is `ansi_separator`.
426 */
427void print_header(const std::string_view text, const char symbol = '=', const std::initializer_list<ansi> codes = ansi_separator)
428{
429 const std::string separator(text.length(), symbol);
430 logln_ansi(codes, BS::synced_stream::flush, '\n', separator, '\n', text, '\n', separator);
431}
432
433/**
434 * @brief Print a key followed by values with different ANSI styles.

Callers 2

check_performanceFunction · 0.85
mainFunction · 0.85

Calls 1

logln_ansiFunction · 0.85

Tested by

no test coverage detected