|
| void | append_optional_parameters (uni20::presentation::styled_text &text, FormattingOptions const &opts, uni20::presentation::styled_text const ¶meters, std::string_view style_kind, bool start_newline=false) |
| |
| void | append_parameter_separator (uni20::presentation::styled_text &text, FormattingOptions const &opts, std::string_view style_kind, bool start_newline) |
| |
| void | append_trace_location (uni20::presentation::styled_text &text, FormattingOptions const &opts, std::string_view label, std::string_view style_kind, const char *file, int line) |
| |
| void | append_trace_module_location (uni20::presentation::styled_text &text, FormattingOptions const &opts, std::string_view label, std::string_view style_kind, const char *module, const char *file, int line) |
| |
| bool | canFormatAsPresentationMatrix (const std::vector< std::vector< std::string > > &elems) |
| |
| template<typename... Args> |
| void | CheckCall (const char *cond, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | CheckEqualCall (const char *a, const char *b, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | CheckFloatingEqCall (const char *a, const char *b, std::int64_t ulps, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | DebugCheckCall (const char *cond, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | DebugCheckEqualCall (const char *a, const char *b, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | DebugCheckFloatingEqCall (const char *a, const char *b, std::int64_t ulps, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | DebugPreconditionCall (const char *cond, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | DebugPreconditionEqualCall (const char *a, const char *b, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | DebugPreconditionFloatingEqCall (const char *a, const char *b, std::int64_t ulps, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | DebugTraceCall (const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | DebugTraceModuleCall (const char *module, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | DebugTraceModuleStackCall (const char *module, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | DebugTraceOnceCall (const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | DebugTraceStackCall (const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | DebugTraceStackOnceCall (const char *exprList, const char *file, int line, const Args &... args) |
| |
| std::size_t | displayWidth (std::string_view str, FormattingOptions const &opts) |
| |
| std::size_t | displayWidth (std::string_view str, uni20::presentation::output_policy const &policy) |
| |
| template<typename... Args> |
| void | ErrorCall (const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | ErrorIfCall (const char *cond, const char *exprList, const char *file, int line, const Args &... args) |
| |
template<class Error >
requires std::derived_from<std::remove_cvref_t<Error>, uni20::diagnostic_error> && detail::HasDiagnosticReport<Error> |
| uni20::presentation::styled_text | format_diagnostic (Error const &error) |
| | Format a structured diagnostic using the active trace presentation policy.
|
| |
template<class Error >
requires std::derived_from<std::remove_cvref_t<Error>, uni20::diagnostic_error> && detail::HasDiagnosticReport<Error> |
| uni20::presentation::styled_text | format_diagnostic (Error const &error, uni20::presentation::output_policy const &policy) |
| | Format a structured diagnostic using its ADL presentation report and attached context.
|
| |
| template<MdspanLike MDS> |
| std::string | format_mdspan_to_string (MDS const &mds, FormattingOptions const &opts) |
| | Format an mdspan-like value using trace scalar formatting and presentation tensor art.
|
| |
| std::string | format_timestamp () |
| |
| std::string | format_trace_prefix (FormattingOptions const &opts) |
| |
| uni20::presentation::styled_text | format_trace_prefix_text (FormattingOptions const &opts) |
| |
| std::string | formatContainerToString (const std::string &elem, FormattingOptions const &opts, size_t max_width=0) |
| |
| std::string | formatContainerToString (const std::string &elem, size_t max_width=0) |
| |
| std::string | formatContainerToString (const std::vector< std::string > &elems, FormattingOptions const &opts, size_t max_width=0) |
| |
| std::string | formatContainerToString (const std::vector< std::string > &elems, size_t max_width=0) |
| |
| std::string | formatContainerToString (const std::vector< std::vector< std::string > > &elems, FormattingOptions const &opts, size_t max_width=0) |
| |
| std::string | formatContainerToString (const std::vector< std::vector< std::string > > &elems, size_t max_width=0) |
| |
| std::string | formatContainerToStringImpl (const std::string &elem, uni20::presentation::output_policy const &policy, size_t max_width=0) |
| |
| std::string | formatContainerToStringImpl (const std::vector< std::string > &elems, uni20::presentation::output_policy const &policy, size_t max_width=0) |
| |
| std::string | formatContainerToStringImpl (const std::vector< std::vector< std::string > > &elems, uni20::presentation::output_policy const &policy, size_t max_width=0) |
| |
| std::string | formatItemString (const std::pair< std::string, bool > &name, const std::string &value, const FormattingOptions &opts, int available_width) |
| |
| template<typename T > |
| std::string | formatItemString (const std::pair< std::string, bool > &name, const std::vector< T > &values, const FormattingOptions &opts, int available_width) |
| |
| std::string | formatItemString (const std::pair< std::string, bool > &name, detail::TraceNameValue const &value, const FormattingOptions &opts, int available_width) |
| |
| uni20::presentation::styled_text | formatItemText (const std::pair< std::string, bool > &name, const std::string &value, const FormattingOptions &opts, int available_width) |
| |
| template<typename T > |
| uni20::presentation::styled_text | formatItemText (const std::pair< std::string, bool > &name, const std::vector< T > &values, const FormattingOptions &opts, int available_width) |
| |
| uni20::presentation::styled_text | formatItemText (const std::pair< std::string, bool > &name, detail::TraceNameValue const &value, const FormattingOptions &opts, int available_width) |
| |
| template<uni20::presentation::mdspan_like MDS> |
| std::string | formatMdspanForTrace (MDS const &mds, FormattingOptions const &opts, int value_width, trace_format_context context, std::string_view label) |
| |
| template<typename... Args> |
| std::string | formatParameterList (const char *exprList, const FormattingOptions &opts, const Args &... args) |
| |
| template<typename... Args> |
| uni20::presentation::styled_text | formatParameterListText (const char *exprList, const FormattingOptions &opts, const Args &... args) |
| |
| template<typename... Args> |
| uni20::presentation::styled_text | formatParameterListTextForContext (const char *exprList, const FormattingOptions &opts, trace_format_context context, const Args &... args) |
| |
| std::string | formatParameters (std::vector< std::pair< std::string, bool > >::const_iterator b, const FormattingOptions &opts) |
| |
| template<typename T , typename... Ts> |
| std::string | formatParameters (std::vector< std::pair< std::string, bool > >::const_iterator b, const FormattingOptions &opts, const T &first, const Ts &... rest) |
| |
| uni20::presentation::styled_text | formatParametersText (std::vector< std::pair< std::string, bool > >::const_iterator b, const FormattingOptions &opts) |
| |
| template<typename T , typename... Ts> |
| uni20::presentation::styled_text | formatParametersText (std::vector< std::pair< std::string, bool > >::const_iterator b, const FormattingOptions &opts, const T &first, const Ts &... rest) |
| |
| uni20::presentation::styled_text | formatParametersTextForContext (std::vector< std::pair< std::string, bool > >::const_iterator b, const FormattingOptions &opts, trace_format_context context) |
| |
| template<typename T , typename... Ts> |
| uni20::presentation::styled_text | formatParametersTextForContext (std::vector< std::pair< std::string, bool > >::const_iterator b, const FormattingOptions &opts, trace_format_context context, const T &first, const Ts &... rest) |
| |
| std::string | formatRectangularContainerAsPresentationMatrix (const std::vector< std::vector< std::string > > &elems, FormattingOptions const &opts) |
| |
| std::string | formatValue (char *s, FormattingOptions const &opts) |
| | Format a mutable C‐string.
|
| |
| std::string | formatValue (const char *s, FormattingOptions const &) |
| | Format a C‐string (null‐terminated) as a normal string.
|
| |
| template<Container ContainerType> |
| auto | formatValue (const ContainerType &c, FormattingOptions const &opts) -> std::vector< decltype(formatValue(*std::begin(c), opts))> |
| | Format each element of a container by recursively calling formatValue.
|
| |
| template<typename Promise > |
| std::string | formatValue (const std::coroutine_handle< Promise > &h, FormattingOptions const &) |
| |
| std::string | formatValue (const std::coroutine_handle<> &h, FormattingOptions const &) |
| |
template<typename T >
requires (!Container<T> && !HasFmtFormatter<T> && HasStdFormatter<T> && !uni20::RealOrComplex<T>) |
| std::string | formatValue (const T &value, FormattingOptions const &) |
| |
template<typename T >
requires (!Container<T> && HasFmtFormatter<T> && !uni20::RealOrComplex<T>) |
| std::string | formatValue (const T &value, FormattingOptions const &opts) |
| | Format a non-container, non-Uni20-scalar type with an fmt formatter.
|
| |
| detail::TraceNameValue | formatValue (detail::TraceNameValue const &nv, FormattingOptions const &opts) |
| | special case for detail::TraceNameValue to return the pre-formatted name,value pair
|
| |
| template<uni20::presentation::mdspan_like MDS> |
| std::string | formatValue (MDS const &mds, FormattingOptions const &opts) |
| | Format an mdspan-like value as presentation-layer tensor art.
|
| |
| std::string | formatValue (std::string_view s, FormattingOptions const &) |
| | Format a C‐string (null‐terminated) as a normal string.
|
| |
template<uni20::Complex T>
requires uni20::Real<uni20::make_real_t<T>> |
| std::string | formatValue (T const &value, FormattingOptions const &opts) |
| | Format any Uni20 complex scalar using its real type's trace precision.
|
| |
| template<HasPresentationMdspanView T> |
| std::string | formatValue (T const &value, FormattingOptions const &opts) |
| | Format tensor/view-like values through their mdspan view.
|
| |
| template<uni20::Real T> |
| std::string | formatValue (T value, FormattingOptions const &opts) |
| | Format any Uni20 real scalar using its configured trace precision.
|
| |
template<typename U >
requires (!std::is_same_v<U, char> && !std::is_same_v<U, const char>) |
| std::string | formatValue (U *ptr, FormattingOptions const &) |
| | Format any non‐character pointer by showing its pointee type and address.
|
| |
| template<uni20::presentation::mdspan_like MDS> |
| std::string | formatValueForContext (MDS const &mds, FormattingOptions const &opts, int value_width, trace_format_context context, std::string_view label) |
| |
| template<HasPresentationMdspanView T> |
| std::string | formatValueForContext (T const &value, FormattingOptions const &opts, int value_width, trace_format_context context, std::string_view label) |
| |
| template<typename T > |
| auto | formatValueForContext (T const &value, FormattingOptions const &opts, int, trace_format_context, std::string_view) |
| |
| FormattingOptions & | get_formatting_options (const std::string &module="") |
| | get the FormattingOptions object for a given module; use "" as the module name (or default parameter) for the global format
|
| |
| int | getMaxLineWidth (const std::string &str) |
| |
| std::size_t | getMaxLineWidth (const std::string &str, uni20::presentation::output_policy const &policy) |
| |
| bool | isMultiline (const std::string &str) |
| |
| template<typename T > |
| bool | isMultiline (const std::vector< T > &str) |
| |
| size_t | maxWidth (const std::string &str) |
| |
| size_t | maxWidth (const std::string &str, uni20::presentation::output_policy const &policy) |
| |
| template<typename T > |
| size_t | maxWidth (const std::vector< T > &elems) |
| |
| template<typename T > |
| size_t | maxWidth (const std::vector< T > &elems, uni20::presentation::output_policy const &policy) |
| |
| template<typename... Args> |
| void | PanicCall (const char *exprList, const char *file, int line, const Args &... args) |
| |
| std::vector< std::pair< std::string, bool > > | parseNames (std::string_view s) |
| |
| template<typename... Args> |
| void | PreconditionCall (const char *cond, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | PreconditionEqualCall (const char *a, const char *b, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | PreconditionFloatingEqCall (const char *a, const char *b, std::int64_t ulps, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | print (fmt::format_string< Args... > fmt_str, Args &&... args) |
| | Print formatted string via the default (empty-module) sink.
|
| |
template<class Exception >
requires std::derived_from<std::remove_cvref_t<Exception>, std::exception> |
| void | raise (Exception &&exception, std::source_location where=std::source_location::current()) |
| | Raise a concrete exception through Uni20's configured error boundary.
|
| |
| bool | should_show_thread_id (FormattingOptions const &opts) |
| |
| template<typename... Args> |
| void | TraceCall (const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | TraceModuleCall (const char *module, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | TraceModuleStackCall (const char *module, const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | TraceOnceCall (const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | TraceStackCall (const char *exprList, const char *file, int line, const Args &... args) |
| |
| template<typename... Args> |
| void | TraceStackOnceCall (const char *exprList, const char *file, int line, const Args &... args) |
| |
| std::string | trim (const std::string &s) |
| |