Collaboration diagram for demangle_type() and demangle_symbol():
![]() |
Functions | |
void | libcwd::demangle_type (char const *input, std::string &output) |
Demangle mangled type name input and write the result to string output . | |
void | libcwd::demangle_symbol (char const *input, std::string &output) |
Demangle mangled symbol name input and write the result to string output . |
demangle_type() writes the mangled type name input
to the string output
; input
should be the mangled name as returned by typeid(OBJECT).name()
(using gcc-2.95.1 or higher).
demangle_symbol() writes the mangled symbol name input
to the string output
; input
should be the mangled name as returned by asymbol::name
(asymbol
is a structure defined by libbfd), which is what is returned by location_ct::mangled_function_name() and pc_mangled_function_name().
The direct use of these functions should be avoided, instead use the function type_info_of().
Copyright © 2001 - 2004 Carlo Wood. All rights reserved.