50 inline std::ostream& operator<<(std::ostream& os,
string_format_flags value) {
return os <<
xtd::to_string(value, {{
string_format_flags::direction_right_to_left,
"direction_right_to_left"}, {
string_format_flags::direction_vertical,
"direction_vertical"}, {
string_format_flags::fit_black_box,
"fit_black_box"}, {
string_format_flags::display_format_control,
"display_format_control"}, {
string_format_flags::no_font_fallback,
"no_font_fallback"}, {
string_format_flags::measure_trailing_spaces,
"measure_trailing_spaces"}, {
string_format_flags::no_wrap,
"no_wrap"}, {
string_format_flags::line_limit,
"line_limit"}, {
string_format_flags::no_clip,
"no_clip"}});}
51 inline std::wostream& operator<<(std::wostream& os,
string_format_flags value) {
return os <<
xtd::to_string(value, {{
string_format_flags::direction_right_to_left, L
"direction_right_to_left"}, {
string_format_flags::direction_vertical, L
"direction_vertical"}, {
string_format_flags::fit_black_box, L
"fit_black_box"}, {
string_format_flags::display_format_control, L
"display_format_control"}, {
string_format_flags::no_font_fallback, L
"no_font_fallback"}, {
string_format_flags::measure_trailing_spaces, L
"measure_trailing_spaces"}, {
string_format_flags::no_wrap, L
"no_wrap"}, {
string_format_flags::line_limit, L
"line_limit"}, {
string_format_flags::no_clip, L
"no_clip"}});}
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
string_format_flags
Specifies the display and layout information for text strings. This enumeration allows a bitwise comb...
Definition string_format_flags.h:17
@ line_limit
Only entire lines are laid out in the formatting rectangle. By default layout continues until the end...
@ display_format_control
Control characters such as the left-to-right mark are shown in the output with a representative glyph...
@ direction_vertical
Text is vertically aligned.
@ fit_black_box
Parts of characters are allowed to overhang the string's layout rectangle. By default,...
@ measure_trailing_spaces
Includes the trailing space at the end of each line. By default the boundary rectangle returned by th...
@ no_wrap
Text wrapping between lines when formatting within a rectangle is disabled. This flag is implied when...
@ no_clip
Overhanging parts of glyphs, and unwrapped text reaching outside the formatting rectangle are allowed...
@ no_font_fallback
Fallback to alternate fonts for characters not supported in the requested font is disabled....
@ direction_right_to_left
Text is displayed from right to left. text.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::ustring class.