|
| table_cell | uni20::presentation::cell (char const *text, std::size_t span=1, std::optional< table_alignment > alignment=std::nullopt) |
| | Build a table cell from literal text.
|
| |
| table_cell | uni20::presentation::cell (std::string_view text, std::size_t span=1, std::optional< table_alignment > alignment=std::nullopt) |
| | Build a table cell from literal text.
|
| |
| table_cell | uni20::presentation::cell (styled_text content, std::size_t span=1, std::optional< table_alignment > alignment=std::nullopt) |
| | Build a table cell from styled presentation text.
|
| |
| std::string | uni20::presentation::clip_to_width (std::string_view text, std::size_t max_width, output_policy const &policy, std::size_t initial_column=0) |
| | Clip rendered text to a target width without appending a marker.
|
| |
| uni20::real_format_notation | uni20::presentation::core_notation (real_notation notation) |
| |
| std::size_t | uni20::presentation::display_width (std::string_view text, output_policy const &policy, std::size_t initial_column=0) |
| | Measure rendered text width under the selected policy.
|
| |
| std::size_t | uni20::presentation::display_width (styled_text const &text, output_policy const &policy, std::size_t initial_column=0) |
| | Measure rendered styled text width under the selected policy.
|
| |
| template<uni20::Complex T> |
| std::string | uni20::presentation::format_complex (T const &value, numeric_format_options const &options) |
| | Format a complex value as real+imagi.
|
| |
| template<uni20::Real T> |
| std::string | uni20::presentation::format_real (T value, numeric_format_options const &options) |
| | Format a real scalar value according to numeric presentation options.
|
| |
| template<typename T > |
| std::string | uni20::presentation::format_scalar (T const &value, numeric_format_options const &options) |
| | Format an arbitrary scalar-like value for presentation output.
|
| |
| template<typename T > |
| std::string | uni20::presentation::format_scalar_for_output (T const &value, numeric_format_options const &options, output_policy const &policy) |
| | Format a scalar for policy-aware presentation output.
|
| |
| std::string | uni20::presentation::indent_text (std::string_view text, std::size_t spaces, output_policy const &policy, bool indent_first=true) |
| | Indent each rendered line by a fixed number of spaces.
|
| |
| std::string | uni20::presentation::pad_center (std::string_view text, std::size_t target_width, output_policy const &policy) |
| | Center rendered text within a target width.
|
| |
| styled_text | uni20::presentation::pad_center (styled_text const &text, std::size_t target_width, output_policy const &policy) |
| | Center styled text within a target width.
|
| |
| std::string | uni20::presentation::pad_left (std::string_view text, std::size_t target_width, output_policy const &policy) |
| | Left-pad rendered text to a target width.
|
| |
| styled_text | uni20::presentation::pad_left (styled_text const &text, std::size_t target_width, output_policy const &policy) |
| | Left-pad styled text to a target width.
|
| |
| std::string | uni20::presentation::pad_right (std::string_view text, std::size_t target_width, output_policy const &policy) |
| | Right-pad rendered text to a target width.
|
| |
| styled_text | uni20::presentation::pad_right (styled_text const &text, std::size_t target_width, output_policy const &policy) |
| | Right-pad styled text to a target width.
|
| |
| output_policy | uni20::presentation::plain_policy () |
| | Build a policy for plain file/log rendering with no ANSI color.
|
| |
| std::string | uni20::presentation::prefix_lines (std::string_view text, std::string_view prefix, output_policy const &policy, bool prefix_first=true) |
| | Prefix each rendered line with fixed text.
|
| |
| template<uni20::Real T> |
| int | uni20::presentation::real_precision (numeric_format_options const &options) |
| | Select the configured precision for a Uni20 real scalar type.
|
| |
| std::string | uni20::presentation::render (styled_text const &text, output_policy const &policy) |
| | Render styled text with color/style sequences only when policy allows.
|
| |
| std::string | uni20::presentation::render_glyph (semantic_glyph glyph, output_policy const &policy) |
| | Render a semantic glyph according to an output policy.
|
| |
| std::string | uni20::presentation::render_plain (report_builder const &report, output_policy policy=plain_policy()) |
| | Render a high-level report builder without ANSI escape sequences.
|
| |
| std::string | uni20::presentation::render_plain (styled_text const &text, output_policy policy=plain_policy()) |
| | Render styled text without ANSI escape sequences.
|
| |
| styled_text | uni20::presentation::render_report (report_builder const &report, output_policy const &policy) |
| | Format a high-level report builder into styled text.
|
| |
| std::string | uni20::presentation::render_strict_ascii (styled_text const &text, text_charset charset=text_charset::ascii_escape, output_policy policy=strict_ascii_policy()) |
| | Render styled text under strict ASCII fallback.
|
| |
| std::string | uni20::presentation::render_terminal (report_builder const &report, output_policy policy, std::FILE *stream=stdout) |
| | Render a high-level report builder for a terminal stream.
|
| |
| std::string | uni20::presentation::render_terminal (styled_text const &text, output_policy policy, std::FILE *stream=stdout) |
| | Render styled text for a terminal stream.
|
| |
| std::string | uni20::presentation::render_text (std::string_view text, output_policy const &policy) |
| | Render raw UTF-8 text through charset and ASCII fallback policy.
|
| |
| bool | uni20::presentation::should_emit_color (output_policy const &policy) |
| | Return whether a policy currently permits ANSI color output.
|
| |
| output_policy | uni20::presentation::strict_ascii_policy (text_charset charset=text_charset::ascii_escape) |
| | Build a strict ASCII policy.
|
| |
| text_style | uni20::presentation::style (char const *spec) |
| | Create a callable style wrapper from a style specification.
|
| |
| text_style | uni20::presentation::style (std::string_view spec) |
| | Create a callable style wrapper from a style specification.
|
| |
| text_style | uni20::presentation::style (terminal::TerminalStyle style) |
| | Create a callable style wrapper from terminal style metadata.
|
| |
| template<typename T > |
| std::string | uni20::presentation::style_nonfinite_scalar (std::string text, T const &value, output_policy const &policy) |
| | Apply the default non-finite scalar style to already-formatted presentation text.
|
| |
| output_policy | uni20::presentation::terminal_policy (std::FILE *stream=stdout) |
| | Build a policy for terminal rendering.
|
| |
| std::string | uni20::presentation::truncate_left_to_width (std::string_view text, std::size_t max_width, output_policy const &policy, std::string_view marker="", std::size_t initial_column=0) |
| | Truncate rendered text from the left to a target width and optionally prepend a marker.
|
| |
| std::string | uni20::presentation::truncate_to_width (std::string_view text, std::size_t max_width, output_policy const &policy, std::string_view marker="", std::size_t initial_column=0) |
| | Truncate rendered text to a target width and optionally append a marker.
|
| |
| std::vector< std::string > | uni20::presentation::wrap_text (std::string_view text, std::size_t max_width, output_policy const &policy) |
| | Wrap rendered text by display cells or bytes.
|
| |
| std::vector< styled_text > | uni20::presentation::wrap_text (styled_text const &text, std::size_t max_width, output_policy const &policy) |
| | Wrap styled text by display cells or bytes.
|
| |