Module demangle

Module demangle 

Source
Expand description

Demangling helpers for Rust and C++ symbols

Functions§

demangle_by_lang
Demangle a symbol string using language hint when available. Returns None if demangling fails or is not applicable.
demangled_leaf
Return a friendly leaf name from a demangled full name. For Rust, strips the trailing ::hxxxxxxxx hash if present, then returns the last path segment.
is_itanium_cpp_mangled
Heuristic: Itanium C++ mangling starts with “_Z”.
is_rust_mangled
Heuristic: Rust v0 mangling starts with “_R”.