#include "colorprint.h"
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <memory>
#include <string>
#include "check.h"
#include "internal_macros.h"
#ifdef BENCHMARK_OS_WINDOWS
#include <io.h>
#include <windows.h>
#else
#include <unistd.h>
#endif
namespace benchmark {
namespace {
#ifdef BENCHMARK_OS_WINDOWS
typedef WORD PlatformColorCode;
#else
PlatformColorCode;
#endif
PlatformColorCode GetPlatformColorCode(LogColor color) { … }
}
std::string FormatString(const char* msg, va_list args) { … }
std::string FormatString(const char* msg, ...) { … }
void ColorPrintf(std::ostream& out, LogColor color, const char* fmt, ...) { … }
void ColorPrintf(std::ostream& out, LogColor color, const char* fmt,
va_list args) { … }
bool IsColorTerminal() { … }
}