microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
microfmt::itanium_demangler Class Reference

Zero-allocation Itanium (GCC/Clang) name demangler. More...

#include <demangle.hpp>

Public Member Functions

constexpr itanium_demangler (microfmt::string_view mangled) noexcept
 Constructs a demangler over an Itanium-mangled symbol.
 
bool demangle_to (const sink &out) noexcept
 Demangles the symbol into the sink.
 

Static Public Member Functions

static void format_symbol (microfmt::string_view sym, const sink &out) noexcept
 Demangles a symbol, falling back to the raw input on failure.
 

Detailed Description

Zero-allocation Itanium (GCC/Clang) name demangler.

Constructor & Destructor Documentation

◆ itanium_demangler()

constexpr microfmt::itanium_demangler::itanium_demangler ( microfmt::string_view  mangled)
inlineexplicitconstexprnoexcept

Constructs a demangler over an Itanium-mangled symbol.

Parameters
mangledSource symbol (must start with _Z).

Member Function Documentation

◆ demangle_to()

bool microfmt::itanium_demangler::demangle_to ( const sink &  out)
inlinenoexcept

Demangles the symbol into the sink.

Parameters
outDestination sink receiving the demangled form.
Returns
false when the input is not an Itanium-mangled name.

◆ format_symbol()

static void microfmt::itanium_demangler::format_symbol ( microfmt::string_view  sym,
const sink &  out 
)
inlinestaticnoexcept

Demangles a symbol, falling back to the raw input on failure.

Parameters
symMangled symbol to demangle.
outDestination sink.

The documentation for this class was generated from the following file: