53 inline std::ostream& operator<<(std::ostream& os,
console_color value) {
return os <<
to_string(value, {{
console_color::black,
"black"}, {
console_color::dark_blue,
"dark_blue"}, {
console_color::dark_green,
"dark_green"}, {
console_color::dark_cyan,
"dark_cyan"}, {
console_color::dark_red,
"dark_red"}, {
console_color::dark_magenta,
"dark_magenta"}, {
console_color::dark_yellow,
"dark_yellow"}, {
console_color::gray,
"gray"}, {
console_color::dark_gray,
"dark_gray"}, {
console_color::blue,
"blue"}, {
console_color::green,
"green"}, {
console_color::cyan,
"cyan"}, {
console_color::red,
"red"}, {
console_color::magenta,
"magenta"}, {
console_color::yellow,
"yellow"}, {
console_color::white,
"white"}});}
54 inline std::wostream& operator<<(std::wostream& os,
console_color value) {
return os <<
to_string(value, {{
console_color::black, L
"black"}, {
console_color::dark_blue, L
"dark_blue"}, {
console_color::dark_green, L
"dark_green"}, {
console_color::dark_cyan, L
"dark_cyan"}, {
console_color::dark_red, L
"dark_red"}, {
console_color::dark_magenta, L
"dark_magenta"}, {
console_color::dark_yellow, L
"dark_yellow"}, {
console_color::gray, L
"gray"}, {
console_color::dark_gray, L
"dark_gray"}, {
console_color::blue, L
"blue"}, {
console_color::green, L
"green"}, {
console_color::cyan, L
"cyan"}, {
console_color::red, L
"red"}, {
console_color::magenta, L
"magenta"}, {
console_color::yellow, L
"yellow"}, {
console_color::white, L
"white"}});}
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition to_string.h:37
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
console_color
Definition console_color.h:17
@ dark_blue
The color dark blue.
@ dark_gray
The color dark gray.
@ magenta
The color magenta (purplish red).
@ dark_green
The color dark green.
@ cyan
The color cyan (blue-green).
@ dark_red
The color dark red.
@ dark_magenta
The color dark magenta (dark purplish-red).
@ dark_cyan
The color dark cyan (dark blue-green).
@ yellow
The color yellow.
@ dark_yellow
The color dark yellow (ochre).
Contains xtd::ustring class.